Skip to content

Commit

Permalink
Make sure we get LoadBalancer IP for terraform plan in k8s_tunnel wor…
Browse files Browse the repository at this point in the history
…kload
  • Loading branch information
cderici committed Sep 29, 2023
1 parent aabbffc commit 002d69a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/k8s_tunnel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 002d69a

Please sign in to comment.