# limitations under the License. #
################################################################################
-kind: Service
-apiVersion: v1
-metadata:
- name: {{ include "common.name.a1controller" . }}
- namespace: {{ include "common.namespace.nonrtric" . }}
- labels:
- app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1controller" . }}
- chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
- release: {{ .Release.Name }}
- heritage: {{ .Release.Service }}
-spec:
- type: ClusterIP
- ports:
- {{if eq .Values.a1controller.service.allowHttp true -}}
- - name: {{ index .Values.a1controller.service.httpName }}
- port: {{ .Values.a1controller.service.internalPort1 }}
- targetPort: {{ .Values.a1controller.service.targetPort1 }}
- protocol: TCP
- {{- end }}
- - name: {{ index .Values.a1controller.service.httpsName }}
- port: {{ .Values.a1controller.service.internalPort2 }}
- targetPort: {{ .Values.a1controller.service.targetPort2 }}
- protocol: TCP
- selector:
- app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1controller" . }}
- release: {{ .Release.Name }}
----
-apiVersion: v1
-kind: Service
-metadata:
- name: dbhost
- namespace: {{ include "common.namespace.nonrtric" . }}
-spec:
- ports:
- - port: 3306
- targetPort: 3306
- selector:
- app: db
----
-apiVersion: v1
-kind: Service
-metadata:
- name: sdnctldb01
- namespace: {{ include "common.namespace.nonrtric" . }}
-spec:
- ports:
- - port: 3306
- targetPort: 3306
- selector:
- app: db
+{{ include "common.service" . }}