X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fhelm%2Fpolicymanagementservice%2Ftemplates%2Fservice.yaml;h=6d820e21c149c91fa872672d5b1c99c47c1cd430;hb=b692f2151e75f6c444e5cce5d9265591402cd37c;hp=f7bde7cd4ed4474e6b9474dd9e3e6c87e2d17741;hpb=0faae789812e0f84949d26c415e8cb2cce1d94d5;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