From 2469bd2aafea0010cd04b0835e9c6f28c350a910 Mon Sep 17 00:00:00 2001 From: gifrerenom <lluis.gifre@cttc.es> Date: Thu, 29 Jun 2023 15:50:46 +0000 Subject: [PATCH] OECC/PSC'22 - Tests: - Added script to expose interdomain grpc port on the node --- src/tests/oeccpsc22/expose_interdomain_dom2.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 src/tests/oeccpsc22/expose_interdomain_dom2.sh diff --git a/src/tests/oeccpsc22/expose_interdomain_dom2.sh b/src/tests/oeccpsc22/expose_interdomain_dom2.sh new file mode 100755 index 000000000..7bdddae0b --- /dev/null +++ b/src/tests/oeccpsc22/expose_interdomain_dom2.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +PATCH='{"data": {"10010": "tfs-dom2/interdomainservice:10010"}}' +kubectl patch configmap nginx-ingress-tcp-microk8s-conf-dom2 --namespace ingress --patch "${PATCH}" + +CONTAINER='{"name": "nginx-ingress-microk8s", "ports": [{"containerPort": 10010, "hostPort": 10010, "protocol": "TCP"}]}' +PATCH='{"spec": {"template": {"spec": {"containers": ['${CONTAINER}']}}}}' +kubectl patch daemonset nginx-ingress-microk8s-controller-dom2 --namespace ingress --patch "${PATCH}" -- GitLab