X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fhelm%2Fa1controller%2Ftemplates%2Fservice.yaml;h=5259bb84934edb485f6ed163cdd10ed03b11df82;hb=d052a253e88bd1d15557b21e8c97334092d0771a;hp=72d37938db888492fb58700e6b2481dde91892b0;hpb=164dbb725e18a30aea5e342efbb0cc3b0b6a7d35;p=it%2Fdep.git diff --git a/nonrtric/helm/a1controller/templates/service.yaml b/nonrtric/helm/a1controller/templates/service.yaml index 72d37938..5259bb84 100644 --- a/nonrtric/helm/a1controller/templates/service.yaml +++ b/nonrtric/helm/a1controller/templates/service.yaml @@ -27,9 +27,16 @@ metadata: spec: type: ClusterIP ports: - - port: {{ include "common.serviceport.a1controller.external" . }} + {{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 - targetPort: {{ include "common.serviceport.a1controller.internal" . }} selector: app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1controller" . }} release: {{ .Release.Name }}