Questions tagged [kubeadm]

OFF-TOPIC most likely. Kubeadm is a tool built to provide kubeadm init and kubeadm join as best-practice “fast paths” for creating Kubernetes clusters. Questions about installing or configuring Kubernetes clusters are generally not on-topic for Stack Overflow and should be asked on another site.

kubeadm is a tool to create Kubernetes clusters.

Questions about creating Kubernetes clusters are most likely off-topic for Stack Overflow and should be asked on another site:

If a developer needs to create their own Kubernetes cluster, they will typically use a higher-level tool such as , , or , rather than directly invoking kubeadm.

606 questions
87
votes
7 answers

How do I find the join command for kubeadm on the master?

I've lost the original 'kubeadm join' command when I previously ran kubeadm init. How can I retrieve this value again?
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
87
votes
7 answers

How to completely uninstall kubernetes

I installed kubernetes cluster using kubeadm following this guide. After some period of time, I decided to reinstall K8s but run into troubles with removing all related files and not finding any docs on official site how to remove cluster installed…
Kirill Liubun
  • 1,965
  • 1
  • 17
  • 35
78
votes
7 answers

How to add roles to nodes in Kubernetes?

When I provision a Kubernetes cluster using kubeadm, I get my nodes tagged as "none". It's a known bug in Kubernetes and currently a PR is in progress. However, I would like to know if there is an option to add a Role name manually for the…
Jeel
  • 2,227
  • 5
  • 23
  • 38
76
votes
16 answers

Nginx Ingress Controller - Failed Calling Webhook

I set up a k8s cluster using kubeadm (v1.18) on an Ubuntu virtual machine. Now I need to add an Ingress Controller. I decided for nginx (but I'm open for other solutions). I installed it according to the docs, section "bare-metal": kubectl apply -f…
PhotonTamer
  • 1,047
  • 1
  • 8
  • 9
52
votes
12 answers

kubeadm init shows kubelet isn't running or healthy

I am trying to run Kubernetes and trying to use sudo kubeadm init. Swap is off as recommended by official doc. The issue is it displays the warning: [kubelet-check] It seems like the kubelet isn't running or healthy. [kubelet-check] The HTTP call…
Akshay Sood
  • 6,366
  • 10
  • 36
  • 59
52
votes
14 answers

Container runtime network not ready: cni config uninitialized

I'm installing kubernetes(kubeadm) on centos VM running inside Virtualbox, so with yum I installed kubeadm, kubelet and docker. Now while trying to setup cluster with kubeadm init --pod-network-cidr=192.168.56.0/24…
BOUKANDOURA Mhamed
  • 941
  • 1
  • 9
  • 25
43
votes
9 answers

Invalid x509 certificate for kubernetes master

I am trying reach my k8s master from my workstation. I can access the master from the LAN fine but not from my workstation. The error message is: % kubectl --context=employee-context get pods Unable to connect to the server: x509: certificate is…
user1208081
  • 1,057
  • 4
  • 15
  • 29
33
votes
2 answers

What's the kube-public namespace for?

Just curious about the intent for this default namespace.
Steven Barragán
  • 1,144
  • 1
  • 11
  • 21
32
votes
10 answers

Failed create pod sandbox: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod network

Issue Redis POD creation on k8s(v1.10) cluster and POD creation stuck at "ContainerCreating" Type Reason Age From Message ---- ------ ---- ---- …
suboss87
  • 479
  • 2
  • 10
  • 14
30
votes
7 answers

Can't find kubeadm token after initializing master

When i run kubeadm init it shows a token that I should use from the other hosts to connect to this host. Where is that token stored? I'm trying to figure out more ways to automate this by adding kubeadm inside of Terraform. Thanks for any help!
vallard
  • 1,028
  • 1
  • 9
  • 14
25
votes
1 answer

How can I determine an appropriate pod CIDR value for a Kubernetes cluster?

I'm initiating a kubernetes cluster with: kubeadm init --pod-network-cidr=192.168.1.0/16 --apiserver-advertise-address=192.168.0.33 I'm not too familiar with networking concepts or CIDR, how do I determine an appropriate value for the pod CIDR? I…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
23
votes
11 answers

kubelet failed with kubelet cgroup driver: "cgroupfs" is different from docker cgroup driver: "systemd"

Configuration for cgroup driver is right in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf Environment="KUBELET_CGROUP_ARGS=--cgroup-driver=systemd" I also checked the Environment with cli $ systemctl show --property=Environment kubelet |…
Yuwen Yan
  • 4,777
  • 10
  • 33
  • 63
23
votes
3 answers

User "system:anonymous" cannot get path "/"

I just setup a kubenetes cluster base on this link https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/#multi-platform I check with kubectl get nodes, then the master node is Ready, but when I access to the link…
Tien Dung Tran
  • 1,127
  • 4
  • 16
  • 32
20
votes
1 answer

I encountered when executing kubeadm init error issue

I encountered as below when executing sudo kubeadm init Help me~~ $ sudo kubeadm init [init] Using Kubernetes version: v1.24.1 [preflight] Running pre-flight checks [WARNING SystemVerification]: missing optional cgroups: blkio error…
Jaehyun Lee
  • 247
  • 1
  • 2
  • 4
18
votes
4 answers

Remove node-role.kubernetes.io/master:NoSchedule taint

What CLI command can I type to remove the node-role.kubernetes.io/master:NoSchedule taint from the master node in a Kubernetes cluster? The following command is failing: [lnxcfg@ip-10-0-0-193 ~]$ kubectl taint nodes $(kubectl get nodes…
CodeMed
  • 9,527
  • 70
  • 212
  • 364
1
2 3
40 41