Welcome to the Linux Foundation Forum!

LFS258

Hi I am having some issue when install kubes everything seemd to go well but when i run the kubectl get nodes i get this which is the same from the worker node i have checked my

root@kubes-ctl:~# kubectl get node
E0310 16:11:35.504068 3372 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.1:8080: connect: connection refused"
E0310 16:11:35.505723 3372 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.1:8080: connect: connection refused"
E0310 16:11:35.507189 3372 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.1:8080: connect: connection refused"
E0310 16:11:35.508559 3372 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.1:8080: connect: connection refused"
E0310 16:11:35.510121 3372 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.1:8080: connect: connection refused"
The connection to the server localhost:8080 was refused - did you specify the right host or port?

Comments

  • chrispokorni
    chrispokorni Posts: 2,592
    edited March 10

    Hi @johnnym1978,

    Course specific issues, such as issues with LFS258 lab exercises, should be posted in the respective course's dedicated forum. Moving this discussion to it's dedicated forum for better visibility and support.

    You are deviating from the provided instructions and attempting to incorrectly run kubectl. In the lab guide the CLI is not configure for root, and you should not run it as root either.

    Regards,
    -Chris

Categories

Upcoming Training