Questions tagged [kubeadm]
89 questions
8
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
- 584
- 4
- 9
- 25
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
- 6
3
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…
Diddi Oskarsson
- 33
- 3
2
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
- 31
- 1
- 5
2
votes
2 answers
How do I configure Kubernetes to use kubenet with kubeadm?
I deployed a Kubernetes cluster using kubeadm.
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
ip-172-31-33-9.us-east-2.compute.internal NotReady 48m …
timkay
- 129
- 2
2
votes
1 answer
Kubernets 1.21.3 The recommended value for "clusterCIDR" in "KubeProxyConfiguration"
I am trying to join new node to existing v1.21.3 cluster with Calico CNI. join command giving clusterCIDR warning.
How to fix this subnet warning message?
# kubeadm join master-vip:8443 --token xxx --discovery-token-ca-cert-hash…
sfgroups
- 193
- 3
- 13
2
votes
3 answers
How can I find which kubernetes certificate has expired?
I have a kubeadm installed kubernetes cluster. Recently it stopped working. kubelet is running but seems stuck in initialization phases. I think the root cause is this recurring log in kube-apiserver:
1 authentication.go:63] "Unable to authenticate…
Antoine
- 281
- 3
- 8
2
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
- 21
- 2
2
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
- 23
- 1
- 3
2
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
- 131
- 5
2
votes
1 answer
Warnings in kubeadm after migrating from docker to containerd
I run a kubernetes cluster, installed with kubeadm. I recently upgraded from 1.19 to 1.20 and migrated the container runtime from docker to containerd, since docker is now deprecated.
I configured containerd and kubelet to use it, and uninstalled…
Antoine
- 281
- 3
- 8
2
votes
1 answer
Kube-apiserver crashing
I am trying to create a kubernetes cluster on my local machine.
I created 3 vm's (two master and a slave).
I am using kubespray(v2.15.0) to create my cluster, But my kube-apiserver contianer keeps crashing with following…
Vishak Vinod
- 23
- 4
2
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
- 123
- 6
2
votes
1 answer
AWS Cloud Provider Integration with Kubernetes - Nodes stuck with "uninitialized: true" taint after bootstrapping
Summary
I am attempting to bootstrap a Kubernetes cluster on AWS using Kubeadm. Please before you suggest them, I am not interested in using EKS or another bootstrapping solution like Kops, Kubespray, etc.
It appears that there is a lot of…
TJ Zimmerman
- 241
- 5
- 17
1
vote
1 answer
kube-apiserver high much ram usage
I have a Kubernetes cluster with 4 nodes and around 100 pods and kube-apiserver start with flag --target-ram-mb=512
kube-apiserver consumes ~3GB of RAM and it is growing
(pprof) top
Showing nodes accounting for 1.42GB, 82.29% of 1.73GB…
user2265148
- 11
- 1
- 2