X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fhelm%2Fa1simulator%2Ftemplates%2Fservice.yaml;h=d22654c98c9c1d5aa72fdf133e316cea725352ef;hb=1298e998c417da23f0725fb8b47e34f88d52541d;hp=3bc1399450d2f5143a5ae2454f5cee5de4d58886;hpb=d397e12d21261ecb9aa1d8f6381aaf5b168e4b81;p=it%2Fdep.git diff --git a/nonrtric/helm/a1simulator/templates/service.yaml b/nonrtric/helm/a1simulator/templates/service.yaml index 3bc13994..d22654c9 100644 --- a/nonrtric/helm/a1simulator/templates/service.yaml +++ b/nonrtric/helm/a1simulator/templates/service.yaml @@ -17,20 +17,25 @@ kind: Service apiVersion: v1 metadata: - name: {{ .Values.a1simulator.instanceName }} - namespace: nonrtric + name: {{ .Values.a1simulator.name }} + namespace: {{ include "common.namespace.nonrtric" . }} labels: - app: nonrtric-{{ include "common.name.a1simulator" . }} + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: ports: - - name: http - protocol: TCP - port: {{ include "common.serviceport.a1simulator.http" . }} - targetPort: {{ include "common.serviceport.a1simulator.http" . }} + - name: {{ index .Values.a1simulator.service.httpName }} + port: {{ .Values.a1simulator.service.internalPort1 }} + targetPort: {{ .Values.a1simulator.service.targetPort1 }} + protocol: TCP + - name: {{ index .Values.a1simulator.service.httpsName }} + port: {{ .Values.a1simulator.service.internalPort2 }} + targetPort: {{ .Values.a1simulator.service.targetPort2 }} + protocol: TCP selector: - app: nonrtric-{{ include "common.name.a1simulator" . }} + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }} release: {{ .Release.Name }} type: ClusterIP + clusterIP: None \ No newline at end of file