Fixed external port in Policy service.
[it/dep.git] / nonrtric / helm / a1simulator / templates / service.yaml
index 3bc1399..4c16903 100644 (file)
@@ -18,9 +18,9 @@ kind: Service
 apiVersion: v1
 metadata:
   name: {{ .Values.a1simulator.instanceName }}
-  namespace: nonrtric
+  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 }}
@@ -28,9 +28,10 @@ spec:
   ports:
   - name: http
     protocol: TCP
-    port: {{ include "common.serviceport.a1simulator.http" . }}
-    targetPort: {{ include "common.serviceport.a1simulator.http" . }}
+    port: {{ .Values.a1simulator.service.internalPort }}
+    targetPort: {{ .Values.a1simulator.service.internalPort }}
   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