Enable https in nonrtric A1 simulator
[it/dep.git] / nonrtric / helm / a1simulator / templates / service.yaml
index 3bc1399..d22654c 100644 (file)
 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