No config file generated when running k8sMaster.sh
I am following Lab2.2 to run the shell script "k8sMaster.sh" on my cloud instance with OS Ubuntu 18.04, when running "kubeadm init", I confirmed every port is available, but still get an error with warning like this: "W0603 01:50:38.774021 16094 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io] "
After this, I checked the path "~/.kube", it's empty, no config file. So the problem maybe caused by no config file, but how can I get it?
Comments
-
Hi @ssghost,
The
~/.kube/configfile is generated in one of the last steps of thek8sMaster.shscript, and it is needed by the CLI client in later steps. So it is very unlikely that it is the cause of theWarningmessage you see.How exactly did you confirm that "every port is available"?
Typically cluster bootstrapping issues are caused by a shortage in resources, misconfigured network, or firewall rules blocking some critical ports that either Kubernetes or its plugins need to use.
Details of your infrastructure's configuration may help in determining the cause of your
Warningand the missing.kube/configfile.Regards,
-Chris0 -
@chrispokorni, thanks for your help.
I used a brand new cloud instance, no ports have been used before. The ready-for shell script shows no shortages of the infrastructure.
I shot the screen when the problem is happening. All information is recorded here, please help me to find the reason and fix it.

›
0 -
Hi @ssghost,
Thanks for the detailed output. In such scenarios, of concern should be the
[ERROR ...]messages, and not so much the[WARNING ...]messages, which have more of informational value.In your scenario, the
[ERROR NumCPU]is self-explanatory. The instance has 1 single CPU, while at least 2 CPUs are required. This is consistent with the CPU count from the first paragraph of the "Overview and Preliminaries" section of Lab exercise 2.1.Regards,
-Chris0
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 754 Linux Foundation IT Professional Programs
- 374 Cloud Engineer IT Professional Program
- 170 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 5 DevOps & GitOps IT Professional Program
- 100 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 2 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 5 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
- 2 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 794 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 89 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
- 112 Mobile Computing
- 20 Android
- 77 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 393 Off Topic
- 121 Introductions
- 182 Small Talk
- 29 Study Material
- 976 Programming and Development
- 310 Kernel Development
- 648 Software Development
- 990 Software
- 382 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)