X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fdep.git;a=blobdiff_plain;f=smo-install%2Foran_oom%2Fa1controller%2Ftemplates%2Fservice.yaml;fp=smo-install%2Foran_oom%2Fa1controller%2Ftemplates%2Fservice.yaml;h=be38ac4659a87b2274b3dc6a9f58d2879e67ddad;hp=5259bb84934edb485f6ed163cdd10ed03b11df82;hb=918108f729c368db61fe904024129f21269e19b7;hpb=c9ace66e2b4635918c4c4c473dfc7bcbeb41b7ae diff --git a/smo-install/oran_oom/a1controller/templates/service.yaml b/smo-install/oran_oom/a1controller/templates/service.yaml index 5259bb84..be38ac46 100644 --- a/smo-install/oran_oom/a1controller/templates/service.yaml +++ b/smo-install/oran_oom/a1controller/templates/service.yaml @@ -14,53 +14,4 @@ # 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" . }}