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=cb6ad89535c96482f32d1c440e650796953f4996;hpb=7e09001c5b58dab96d014fe3f9c41f89b53f3cc3;p=it%2Fdep.git diff --git a/nonrtric/helm/a1controller/templates/service.yaml b/nonrtric/helm/a1controller/templates/service.yaml index cb6ad895..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: {{ .Values.a1controller.service.externalPort }} + {{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: {{ .Values.a1controller.service.internalPort }} selector: app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1controller" . }} release: {{ .Release.Name }}