Questions tagged [kubeadm]

150 questions
22
votes
10 answers

failed to run Kubelet: validate service connection: CRI v1 runtime API is not implemented for endpoint

I have installed kubelet 1.26.0 on Ubuntu 22.04 using apt install kubelet command, but when I try journalctl -xeu kubelet I get the following result: ░░ ░░ The unit kubelet.service has entered the 'failed' state with result 'exit-code'. Dec 14…
12
votes
4 answers

How do I check the max pod capacity of a Kubernetes node

I am busy setting up new k8s cluster. I am using rke with the --max-pods: 200 kubelet: # https://rancher.com/docs/rke/latest/en/config-options/services/services-extras/#extra-args extra_args: - max-pods: 200 #…
nelaaro
  • 654
  • 5
  • 10
  • 28
5
votes
2 answers

Kubeadm 1.24 with containerd. Kubeadm init fail (centos 7)

I try to install a single node cluster on centos 7, with kubadm 1.24 and with containerd, i followed the installation steps, and i did: containerd config default > /etc/containerd/config.toml and passed : SystemdCgroup = true but the kubeadm init…
awot83
  • 91
5
votes
2 answers

What is the proper way to modify kubelet and control-plane configuration with kubeadm?

I've installed a kubernetes (v1.20.0) cluster with 3 masters and 3 nodes using kubeadm init and kubeadm join, all on Ubuntu 20.04. Now I need to update the configuration and Add --cloud-provider=external kubelet startup flag on all nodes as I'm…
4
votes
1 answer

All kube-system pods keep crashing, etcd receives sigterm

I'm trying to set up an on-premises Kubernetes cluster. For starters I used kubeadm to initialize my control plane on one node. But all kube-system pods constantly crash. I took a deep look into the pod logs via crictl and it turns out that most…
Be Ku
  • 143
4
votes
1 answer

Kubernetes: Pod IP address is out of range specified in --pod-network-cidr

After upgrading to v1.24.0 (after Dockershim removal), I had to install cri-dockerd, then I did the following: sudo kubeadm init --pod-network-cidr=10.244.0.0/16 --cri-socket=unix:///var/run/cri-dockerd.sock…
TheDHM
  • 101
4
votes
3 answers

Kubernetes API server not able to register master node

I was trying to create a Kubernetes Cluster using kubeadm. I had spin up an Ubuntu 18.04 server, installed docker (made it sure that docker.service was running), installed kubeadm kubelet and kubectl. The following are the steps that I did: sudo…
arjunbnair
  • 43
  • 1
  • 3
  • 17
4
votes
3 answers

kubernetes coredns is in CrashLoopBackOff status with "no nameservers found" error

I have tried to build kubernetes using kubeadm on my bare-metal server with containerd as cri, but it seemed that coredns failed to start after installing cni (weave-net). Two coredns containers are now in "CrashLoopBackOff" state, and the logs of…
Daigo
  • 393
4
votes
1 answer

Which certificate does kubelet use?

This is a kubeadm based 1.16 cluster. The way I understand mTLS work between an apiserver & kubelet is: apiserver -> kubelet --kubelet-client-certificate & --kubelet-client-key => The certs & key given here(apiserver) is for apiserver(client) to…
swetad90
  • 151
3
votes
2 answers

Is it possible to change CIDR network flannel and Kubernetes

Is it possible to change CIDR network flannel on running Kubernetes cluster? If yes what will happen with the launched pods? Thanks
Kris454
  • 43
3
votes
1 answer

Kubernetes cluster via kubeadm - CoreDNS buffer size too small / Pods network problems

I am new to deploying on-premise Kubernetes clusters. I managed to deploy one using kubeadm with weave CNI. Internet connection inside Pods is somewhat sluggish / non-working. I am trying to deploy Self-Hosted GitHub Actions Runner which is…
3
votes
1 answer

How to change the hostname on the single-node K8s node

Environments: OS: Ubuntu 18.04.5 LTS Kubernetes: v1.16.15 deployment tool: kubeadm v1.16.15 I initialize a single-node K8s on my workstation with the following configuraions: --- apiVersion: kubeadm.k8s.io/v1beta2 kind:…
huang06
  • 31
3
votes
1 answer

coredns pods stuck in Pending state

I'm trying to learn k8s and since I happen to have access to OpenStack cloud I figured I'll try to install k8s on it, following this wiki. So far I was able to initialize cluster, install weave CNI, connected an external worker and install…
3
votes
1 answer

Update apiserver certificates for HA k8s cluster

I have HA k8s cluster that was created by kubeadm. I would like to update API server certificate to add additional SANs. For this purpose I followed some steps described in another post, but what I did for HA cluster: Removed API server…
Anatoli
  • 133
2
votes
0 answers

Changing out all Control Plane Nodes safely - Best Practice

I have a 3 control plane node HA kubeadm cluster that I need to completely replace. I have already replaced the worker nodes. How do I completely replace the control plane without downtime? I use a LB in front for the api endpoint. This is a…
Daxcor
  • 21
  • 2
1
2 3
9 10