Welcome to the Linux Foundation Forum!

Install Kubernetes lab issue

I'm using Google Cloud VMs. I think that it's set up correctly. But it seems like there's a firewall or network issue.

Installing Kubernetes exercise 3.1 step 22 fails for me. When I do the following command as both the user that I put in an ssh key at time of VM creation and the non-root user student.

kubectl apply -f /home/student/LFS258/SOLUTIONS/s_03/cilium-cni.yaml

This fails with the following error.

error: error validating "/home/student/LFS258/SOLUTIONS/s_03/cilium-cni.yaml": error validating data: failed to download openapi: Get "https://k8scp:6443/openapi/v2?timeout=32s": dial tcp 10.2.0.6:6443: connect: connection refused; if you choose to ignore these errors, turn validation off with --validate=false

To me, the connection refused points to a problem with the network or firewall.

Any suggestions?

Comments

  • chrispokorni
    chrispokorni Posts: 2,520

    Hi @gdsmit1,

    Please watch the video demo for GCE instances from the introductory chapter. It shows how to properly configure the VPC firewall.

    Regards,
    -Chris

Categories

Upcoming Training