kubeadm init hangs
I'm just following the first lab to get it all installs and it hangs at the init stage:
root@ubuntu01:~# kubeadm init --config=kubeadm-config.yaml --upload-certs
[init] Using Kubernetes version: v1.26.1
[preflight] Running pre-flight checks
[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
I'm running it on a Vmware with 32GB mem, 8CPU and ubuntu 22.04. I am behind a proxy though that is configured correctly and everything has worked until this point.
root@ubuntu01:~# env | grep proxy
no_proxy=10.8../24,10.96.0.0/12,127.0.0,192.168.0.0/16
https_proxy=http://****************:8080
http_proxy=http://*****************:8080
Containerd is up and running:
root@ubuntu01:~# systemctl status containerd
● containerd.service - containerd container runtime
Loaded: loaded (/lib/systemd/system/containerd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-08-24 12:06:32 UTC; 6min ago
Docs: https://containerd.io
Kubelet is not:
root@ubuntu01:~# systemctl status kubelet
● kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/lib/systemd/system/kubelet.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: activating (auto-restart) (Result: exit-code) since Thu 2023-08-24 12:13:10 UTC; 7s ago
Any ideas?
Comments
-
Hi @snoop2048,
The VM seems to have more than enough CPU and RAM for the lab. Any firewall for the lab VMs should allow inbound traffic from all sources, all protocols to all ports.
The OS however, may cause some issues. Ubuntu 22.04 LTS may have some dependency requirements which that are not yet included in the lab. That is why the recommended release is 20.04 LTS.The init does take a few minutes though. After how much time did it hang and what was the last message it displayed? Any errors or warnings?
Regards,
-Chris0 -
It hangs permanently - I will rebuild to 20.04 anyway as don't really want to hit other issues if there are potential compatibility issues in further labs - will report back if this persists.
0 -
Execute this command... "kubeadm config images pull"
It can be firewall issue, where its not able to download the images needed to setup the control plane.
If the above command goes thru, then re-execute the kubeadm init command and check, if you get additional errors, then please let us know.
0
Categories
- All Categories
- 178 LFX Mentorship
- 178 LFX Mentorship: Linux Kernel
- 775 Linux Foundation IT Professional Programs
- 384 Cloud Engineer IT Professional Program
- 175 Advanced Cloud Engineer IT Professional Program
- 75 DevOps IT Professional Program - Discontinued
- 7 DevOps & GitOps IT Professional Program
- 103 Cloud Native Developer IT Professional Program
- 7.7K Training Courses & Learning Paths
- 13 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 35 Cloud & Containers Training
- 3 Cybersecurity Training
- 3 DevOps & Site-Reliability Training
- 2 Linux Kernel Development Training
- 2 Networking Training
- 2 Open Source Best Practice Training
- 5 System Administration Training
- 1 System Engineering Training
- 6 Web & Application Development Training
- 798 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 92 Storage
- 773 Linux Distributions
- 81 Debian
- 68 Fedora
- 24 Linux Mint
- 13 Mageia
- 24 openSUSE
- 151 Red Hat Enterprise
- 32 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 472 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 103 Linux Security
- 79 Network Management
- 102 System Management
- 46 Web Management
- 166 Mobile Computing
- 32 Android
- 119 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 407 Off Topic
- 128 Introductions
- 35 Study Material
- 1.1K Programming and Development
- 311 Kernel Development
- 723 Software Development
- 1K Software
- 418 Applications
- 183 Command Line
- 5 Compiling/Installing
- 71 Games
- 320 Installation
- Archived
- 183 Small Talk
- 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)
