Having issues at Lab 3.3. Finish Cluster Setup
Hi there,
I recently started the LFS258 course and successfully completed Labs 3.1 and 3.2 without any issues. I'm conducting the labs on two AWS EC2 instances, which I shut down after each session for cost management. Today, I started my CP and WORKER instances (where I completed Lab 3.2), but now the cluster is not functioning properly.
The first command of Lab 3.3 gives me an error after restarting both EC2 servers:
kubectl get node
E0530 18:51:05.593093 3090 memcache.go:265] 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
E0530 18:51:05.593463 3090 memcache.go:265] 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
E0530 18:51:05.594928 3090 memcache.go:265] 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
E0530 18:51:05.596499 3090 memcache.go:265] 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
E0530 18:51:05.598026 3090 memcache.go:265] 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?
What is happening here? there is nothing on the class regarding stopping or starting the servers.
Please help!
Comments
-
Hi @NondualIT,
There are a few concerning behaviors here.
Firstly, the fact that GET is issued against the
localhost, instead of the control plane node IP address that is hosting the API server.Second, the port is incorrect. It targets port 8080, when the API server typically is exposed on ports such as 6443 or 8443.
On both EC2 VMs, please check that the
kubeletandcontainerdservices are running respectively:sudo systemctl status kubeletsudo systemctl status containerdPlease validate that the
~/.kubedirectory and theconfigfile generated in step 22 of lab exercise 3.1 still exist in the home directory of the regular (non-root) user issuing thekubectlcommands. By closely following the lab guide, the commands should be issued by a regular user from the control plane node, that is the control plane EC2 VM.Regards,
-Chris1 -
Thank you for your reply. I believe I have identified the problem, and I have a suggestion for the LAB and the Linux Foundation to address this.
When I started the lab, I launched both EC2 instances simultaneously on AWS. I think you should start the Control Plane (CP) first and then the worker node; otherwise, things might get messed up. I followed this order, and now everything is working correctly.
Additionally, all the required resources were present. I can now continue with the lab.
0
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 750 Linux Foundation IT Professional Programs
- 373 Cloud Engineer IT Professional Program
- 169 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 4 DevOps & GitOps IT Professional Program
- 99 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 1 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 4 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 1 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 769 Linux Distributions
- 81 Debian
- 68 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 955 Programming and Development
- 310 Kernel Development
- 627 Software Development
- 983 Software
- 375 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)