Commit 2469bd2a authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

OECC/PSC'22 - Tests:

- Added script to expose interdomain grpc port on the node
parent 6c1e72d8
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
#!/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}"