X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fhelm%2Fa1controller%2Ftemplates%2Fservice.yaml;h=5259bb84934edb485f6ed163cdd10ed03b11df82;hb=036da7f5f128cdf4f0255a6bc51d8769b78ab9ac;hp=72d37938db888492fb58700e6b2481dde91892b0;hpb=250396e51a04a674636d14c8d9c59b7b10dc229d;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 }}