blob: f172c1c773a2eab47d8e224566eee8c40e39c63a [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
name: $SDNC_APP_NAME
namespace: $KUBE_SDNC_NAMESPACE
labels:
run: $SDNC_APP_NAME
autotest: SDNC
spec:
type: ClusterIP
ports:
- port: $SDNC_EXTERNAL_PORT
targetPort: $SDNC_INTERNAL_PORT
protocol: TCP
name: http
- port: $SDNC_EXTERNAL_SECURE_PORT
targetPort: $SDNC_INTERNAL_SECURE_PORT
protocol: TCP
name: https
selector:
run: $SDNC_APP_NAME
---
apiVersion: v1
kind: Service
metadata:
name: dbhost
namespace: $KUBE_SDNC_NAMESPACE
labels:
run: $SDNC_DB_APP_NAME
autotest: SDNC
spec:
type: ClusterIP
ports:
- port: 3306
targetPort: 3306
protocol: TCP
name: http
selector:
run: $SDNC_DB_APP_NAME
---
apiVersion: v1
kind: Service
metadata:
name: sdnctldb01
namespace: $KUBE_SDNC_NAMESPACE
labels:
run: $SDNC_DB_APP_NAME
autotest: SDNC
spec:
type: ClusterIP
ports:
- port: 3306
targetPort: 3306
protocol: TCP
name: http
selector:
run: $SDNC_DB_APP_NAME