Upgraded test env with Kubernetes support
Issue-ID: NONRTRIC-356
Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
Change-Id: I942b37c05077b3ba753b3327455d6babed8f6061
diff --git a/test/simulator-group/prodstub/app.yaml b/test/simulator-group/prodstub/app.yaml
new file mode 100644
index 0000000..9fb5ad5
--- /dev/null
+++ b/test/simulator-group/prodstub/app.yaml
@@ -0,0 +1,28 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: $PROD_STUB_APP_NAME
+ namespace: $KUBE_SIM_NAMESPACE
+ labels:
+ run: $PROD_STUB_APP_NAME
+ autotest: PRODSTUB
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ run: $PROD_STUB_APP_NAME
+ template:
+ metadata:
+ labels:
+ run: $PROD_STUB_APP_NAME
+ autotest: PRODSTUB
+ spec:
+ containers:
+ - name: $PROD_STUB_APP_NAME
+ image: $PROD_STUB_IMAGE
+ imagePullPolicy: Never
+ ports:
+ - name: http
+ containerPort: $PROD_STUB_INTERNAL_PORT
+ - name: https
+ containerPort: $PROD_STUB_INTERNAL_SECURE_PORT
diff --git a/test/simulator-group/prodstub/svc.yaml b/test/simulator-group/prodstub/svc.yaml
new file mode 100644
index 0000000..1fe4048
--- /dev/null
+++ b/test/simulator-group/prodstub/svc.yaml
@@ -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