X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fhelm%2Fpolicymanagementservice%2Ftemplates%2Fservice.yaml;h=2358692883ed24190c57d4db39916aa534d83fc3;hb=7c30e282eda7a481c3cded8377af65d92ccd56ac;hp=211ffdfd9aa2ad74bb6f40e577fae0a137291db7;hpb=e35df180b7afa3e2fe403874dc1457142de73181;p=it%2Fdep.git diff --git a/nonrtric/helm/policymanagementservice/templates/service.yaml b/nonrtric/helm/policymanagementservice/templates/service.yaml index 211ffdfd..23586928 100644 --- a/nonrtric/helm/policymanagementservice/templates/service.yaml +++ b/nonrtric/helm/policymanagementservice/templates/service.yaml @@ -26,11 +26,19 @@ metadata: heritage: {{ .Release.Service }} spec: ports: - - name: http - protocol: TCP - port: {{ include "common.serviceport.policymanagementservice.http" . }} - targetPort: {{ include "common.serviceport.policymanagementservice.http" . }} + {{if eq .Values.policymanagementservice.service.allowHttp true -}} + - name: {{ index .Values.policymanagementservice.service.httpName }} + port: {{ .Values.policymanagementservice.service.internalPort1 }} + targetPort: {{ .Values.policymanagementservice.service.targetPort1 }} + nodePort: {{ .Values.policymanagementservice.service.externalPort1 }} + protocol: TCP + {{- end }} + - name: {{ index .Values.policymanagementservice.service.httpsName }} + port: {{ .Values.policymanagementservice.service.internalPort2 }} + targetPort: {{ .Values.policymanagementservice.service.targetPort2 }} + nodePort: {{ .Values.policymanagementservice.service.externalPort2 }} + protocol: TCP selector: - app: nonrtric-{{ include "common.name.policymanagementservice" . }} + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.policymanagementservice" . }} release: {{ .Release.Name }} - type: ClusterIP + type: NodePort