GitHub Action Course

Hello Team,

I am going through GitHub Actions course, and in one of the lab you provided kubeconfig file from your lab server and asked us to use as a secret in github, while running github workflow on GitHub runner that kubeconfig is not working as its having localhost in server address.

Do you have a link to the lab please?

I think in this lab there isn’t really a Kubernetes cluster available to run the actions against. You are right, in a real world scenario localhost would not work.

However, it would be likely that. a different setup would be used. I wouldn’t expect a real Kubernetes cluster to be exposed over the internet, which would be required for a GitHub runner to connect to.

Kubernetes cluster is there on the lab instance, but not exposed to github runner. I did a telnet and got connection timeout.

The cluster is not reachable from github. It’s a private IP address of the control plane:

alpine-host ~ ➜  kubectl get nodes -o wide
NAME          STATUS   ROLES                  AGE   VERSION        INTERNAL-IP   EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION   CONTAINER-RUNTIME
alpine-host   Ready    control-plane,master   43m   v1.28.1+k3s1   192.36.50.3   <none>        Alpine Linux v3.16   5.4.0-1106-gcp   containerd://1.7.3-k3s2

Then how should we complete lab exercise?

Hello @mangilal23 , thanks for reporting the issue, I’m checking this with the lab dev team!

ANy update on solution

Also having the same issue.
Started testing self-hosted github actions runner but now getting the following error -
“Error from server (NotFound): namespaces “ingress-nginx” not found”
I’ve created manually ingress-nginx namespace but now have the following issue

" Error from server (NotFound): services “ingress-nginx-controller” not found"

How can I proceed with it?