Upgraded test env with Kubernetes support
[nonrtric.git] / test / simulator-group / prodstub / svc.yaml
diff --git a/test/simulator-group/prodstub/svc.yaml b/test/simulator-group/prodstub/svc.yaml
new file mode 100644 (file)
index 0000000..1fe4048
--- /dev/null
@@ -0,0 +1,21 @@
+apiVersion: v1
+kind: Service
+metadata:
+  name: $PROD_STUB_APP_NAME
+  namespace: $KUBE_SIM_NAMESPACE
+  labels:
+    run: $PROD_STUB_APP_NAME
+    autotest: PROD_STUB
+spec:
+  type: ClusterIP
+  ports:
+  - port: $PROD_STUB_EXTERNAL_PORT
+    targetPort: $PROD_STUB_INTERNAL_PORT
+    protocol: TCP
+    name: http
+  - port: $PROD_STUB_EXTERNAL_SECURE_PORT
+    targetPort: $PROD_STUB_INTERNAL_SECURE_PORT
+    protocol: TCP
+    name: https
+  selector:
+    run: $PROD_STUB_APP_NAME
\ No newline at end of file