From 002d69a467b7e579429a8b875e994ed85e00dc2b Mon Sep 17 00:00:00 2001 From: Caner Derici Date: Fri, 29 Sep 2023 10:03:47 -0600 Subject: [PATCH] Make sure we get LoadBalancer IP for terraform plan in k8s_tunnel workload --- .github/workflows/k8s_tunnel.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/k8s_tunnel.yml b/.github/workflows/k8s_tunnel.yml index 698dc722..e61a0104 100644 --- a/.github/workflows/k8s_tunnel.yml +++ b/.github/workflows/k8s_tunnel.yml @@ -121,8 +121,11 @@ jobs: type: LoadBalancer EOF + echo "Services layout with the Load Balancer:" + sudo microk8s.kubectl get services -n controller-$CONTROLLER controller-service + # get the external IP of the load balancer service - export LB_IP=$(microk8s.kubectl get services -n controller-$CONTROLLER | grep -o 'controller-service-lb.*' | awk '{print $4}') + LB_IP="$(microk8s.kubectl get services -n controller-$CONTROLLER | grep -o 'controller-service-lb.*' | awk '{print $4}')"; echo "$LB_IP" # write a plan using this IP echo "