Upgraded test env with Kubernetes support
[nonrtric.git] / test / simulator-group / control_panel / svc.yaml
diff --git a/test/simulator-group/control_panel/svc.yaml b/test/simulator-group/control_panel/svc.yaml
new file mode 100644 (file)
index 0000000..85a4682
--- /dev/null
@@ -0,0 +1,21 @@
+apiVersion: v1
+kind: Service
+metadata:
+  name: $CONTROL_PANEL_APP_NAME
+  namespace: $KUBE_NONRTRIC_NAMESPACE
+  labels:
+    run: $CONTROL_PANEL_APP_NAME
+    autotest: CP
+spec:
+  type: ClusterIP
+  ports:
+  - port: $CONTROL_PANEL_EXTERNAL_PORT
+    targetPort: $CONTROL_PANEL_INTERNAL_PORT
+    protocol: TCP
+    name: http
+  - port: $CONTROL_PANEL_EXTERNAL_SECURE_PORT
+    targetPort: $CONTROL_PANEL_INTERNAL_SECURE_PORT
+    protocol: TCP
+    name: https
+  selector:
+    run: $CONTROL_PANEL_APP_NAME
\ No newline at end of file