Skip to content

Commit

Permalink
Add debug logs in k8s tunnel script
Browse files Browse the repository at this point in the history
  • Loading branch information
cderici committed Sep 29, 2023
1 parent 73e16e7 commit cde0035
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/k8s_tunnel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,23 @@ jobs:
echo "EOF" >> $GITHUB_ENV
- run: go mod download
- run: |
# Make sure we have sufficient permissions to access microk8s
sudo usermod -a -G microk8s runner
sudo chown -R runner ~/.kube
# enable ingress and metallb to
sudo microk8s enable ingress
echo "Ingress enabled."
# determine a subnet for metallb
subnet="$(ip route get 1 | head -n 1 | awk '{print $7}' | awk -F. '{print $1 "." $2 "." $3 ".240/24"}')"; echo "$subnet"
# enable metallb
sudo microk8s enable metallb:$subnet
# get the service layout (for debugging purposes)
microk8s.kubectl get services -n controller-$CONTROLLER controller-service
# Make sure we have sufficient permissions to access microk8s
echo "Adding runner user microk8s group"
sudo usermod -a -G microk8s runner
sudo chown -R runner ~/.kube
echo "Services layout:"
sudo microk8s.kubectl get services -n controller-$CONTROLLER controller-service
# bring up the load balancer service
sudo microk8s.kubectl apply -f - <<EOF
Expand Down

0 comments on commit cde0035

Please sign in to comment.