Adaptations to execute in multi-node kube cluster
Issue-ID: NONRTRIC-480
Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
Change-Id: If0df0a9ab83811f1373f50dc154ad90d830e1321
diff --git a/test/simulator-group/control_panel/app.yaml b/test/simulator-group/control_panel/app.yaml
index a962f3d..2b2b84b 100644
--- a/test/simulator-group/control_panel/app.yaml
+++ b/test/simulator-group/control_panel/app.yaml
@@ -20,7 +20,7 @@
containers:
- name: $CONTROL_PANEL_APP_NAME
image: $CONTROL_PANEL_IMAGE
- imagePullPolicy: Never
+ imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
ports:
- name: http
containerPort: $CONTROL_PANEL_INTERNAL_PORT
diff --git a/test/simulator-group/control_panel/nginx.conf b/test/simulator-group/control_panel/nginx.conf
index 0014ffb..5b1e895 100644
--- a/test/simulator-group/control_panel/nginx.conf
+++ b/test/simulator-group/control_panel/nginx.conf
@@ -18,7 +18,9 @@
http {
include /etc/nginx/mime.types;
- resolver 127.0.0.11;
+
+ resolver ${CP_NGINX_RESOLVER};
+
server {
listen 8080;
server_name localhost;
diff --git a/test/simulator-group/control_panel/svc.yaml b/test/simulator-group/control_panel/svc.yaml
index 85a4682..61dc5de 100644
--- a/test/simulator-group/control_panel/svc.yaml
+++ b/test/simulator-group/control_panel/svc.yaml
@@ -7,15 +7,17 @@
run: $CONTROL_PANEL_APP_NAME
autotest: CP
spec:
- type: ClusterIP
+ type: NodePort
ports:
- port: $CONTROL_PANEL_EXTERNAL_PORT
targetPort: $CONTROL_PANEL_INTERNAL_PORT
protocol: TCP
name: http
+ nodePort:
- port: $CONTROL_PANEL_EXTERNAL_SECURE_PORT
targetPort: $CONTROL_PANEL_INTERNAL_SECURE_PORT
protocol: TCP
name: https
+ nodePort:
selector:
run: $CONTROL_PANEL_APP_NAME
\ No newline at end of file