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 }}
+ protocol: TCP
+ {{- end }}
+ - name: {{ index .Values.policymanagementservice.service.httpsName }}
+ port: {{ .Values.policymanagementservice.service.internalPort2 }}
+ targetPort: {{ .Values.policymanagementservice.service.targetPort2 }}
+ protocol: TCP
selector:
- app: nonrtric-{{ include "common.name.policymanagementservice" . }}
+ app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.policymanagementservice" . }}
release: {{ .Release.Name }}
type: ClusterIP