Questions tagged [kubeadm]

117 questions
15
votes
9 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…
best_of_man
  • 367
  • 1
  • 3
  • 12
11
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
  • 644
  • 4
  • 10
  • 27
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
  • 7
4
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
  • 71
  • 2
  • 6
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
  • 1
  • 5
4
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…
3
votes
2 answers

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
  • 133
  • 4
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
  • 1
  • 2
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…
Bartek Gmerek
  • 33
  • 1
  • 3
2
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
  • 33
  • 1
  • 1
  • 3
2
votes
1 answer

It seems like the kubelet isn't running or healthy. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with erro

I am trying to do sudo kubeadm init of kubeadm 1.26.0 on an Ubuntu 22.04 machine. But I get the following result: [init] Using Kubernetes version: v1.26.0 [preflight] Running pre-flight checks [preflight] Pulling images required for setting up a…
best_of_man
  • 367
  • 1
  • 3
  • 12
2
votes
1 answer

Kubernetes Cluster on CentOS 7 with kubeadm 1.24 - calico => coredns stuck in ContainerCreating

In order to install a master kubernetes node on centos7 with containerd and calico : I followed this steps : https://computingforgeeks.com/install-kubernetes-cluster-on-centos-with-kubeadm/ After the kubeadm init --pod-network-cidr=192.168.0.0/16 …
awot83
  • 71
  • 2
  • 6
2
votes
0 answers

Pod coredns stuck in ContainerCreating state with Weave on k8s

First of all, let me thank you for this amazing guide. I'm very new to kubernetes and having a guide like this to follow helps a lot when trying to setup my first cluster! That said, I'm having some issues with creating deploytments, as there are…
Clebson
  • 123
  • 2
  • 6
2
votes
1 answer

K8s: discovery Failed to request cluster-info (forbidden)

The command kubeadm join 192.168.178.38:6443 ... fails The host/port is reachable. I tested it with telnet. But I get this on the node: [discovery] Failed to request cluster-info, will try again: configmaps "cluster-info" is forbidden: …
guettli
  • 3,591
  • 17
  • 72
  • 123
2
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
  • 143
  • 1
  • 2
  • 11
1
2 3 4 5 6 7 8