X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fhelm%2Fpolicymanagementservice%2Ftemplates%2Fservice.yaml;h=6d820e21c149c91fa872672d5b1c99c47c1cd430;hb=refs%2Fchanges%2F76%2F5676%2F1;hp=f7bde7cd4ed4474e6b9474dd9e3e6c87e2d17741;hpb=7e09001c5b58dab96d014fe3f9c41f89b53f3cc3;p=it%2Fdep.git diff --git a/nonrtric/helm/policymanagementservice/templates/service.yaml b/nonrtric/helm/policymanagementservice/templates/service.yaml index f7bde7cd..6d820e21 100644 --- a/nonrtric/helm/policymanagementservice/templates/service.yaml +++ b/nonrtric/helm/policymanagementservice/templates/service.yaml @@ -26,11 +26,17 @@ metadata: heritage: {{ .Release.Service }} spec: ports: - - name: {{ .Values.policymanagementservice.service.name }} - protocol: TCP - port: {{ .Values.policymanagementservice.service.internalPort }} - nodePort: {{ .Values.policymanagementservice.service.externalPort }} + {{if eq .Values.policymanagementservice.service.allowHttp true -}} + - name: {{ index .Values.policymanagementservice.service.httpName }} + port: {{ .Values.policymanagementservice.service.internalPort1 }} + targetPort: {{ .Values.policymanagementservice.service.targetPort1 }} + protocol: TCP + {{- end }} + - name: {{ index .Values.policymanagementservice.service.httpsName }} + port: {{ .Values.policymanagementservice.service.internalPort2 }} + targetPort: {{ .Values.policymanagementservice.service.targetPort2 }} + protocol: TCP selector: app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.policymanagementservice" . }} release: {{ .Release.Name }} - type: NodePort + type: ClusterIP