Questions tagged [kubeadm]

117 questions
2
votes
2 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
  • 343
  • 7
  • 20
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
  • 243
  • 2
  • 4
  • 14
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
  • 1
  • 3
  • 12
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
  • 1
  • 3
  • 12
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…
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
  • 1
  • 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
  • 251
  • 6
  • 18
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
1
vote
2 answers

kubeadm - ERROR start version '' not supported

Recently I upgraded Kubernetes cluster from version 1.5.3 to 1.6.1 using kubeadm. Now I would like to upgrade from version 1.6.1 to 1.6.2 but I'm facing this error: [root@master ~]#kubeadm upgrade plan --v=5 I1113 14:14:31.046080 8368 plan.go:67]…
cgrim
  • 121
  • 2
  • 7
1
vote
1 answer

Disable Source NAT for Calico

The default settings that kubeadm + calico use is to NAT any incoming connection that is not from a pod_ip. I have calico publishing the service network to my outside LAN, and would rather the service pods utilize the actual client IPs and not a…
Matt Ruge
  • 11
  • 2
1
vote
0 answers

kubeadm fails to init with timed out waiting for the condition

I've set up a new server in digital ocean, ubuntu 16.04. installed docker from the ubuntu repos and set up kuberenetes according to this guide: https://kubernetes.io/docs/setup/independent/install-kubeadm/ I've tried several times, to kubeadm init…
Tom Klino
  • 621
  • 1
  • 8
  • 15
1
vote
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
  • 11
  • 1
1
vote
2 answers

Error in configuration: context was not found for specified context: kind-kind

This is my skaffold.yaml file: apiVersion: skaffold/v2alpha3 kind: Config deploy: kubeContext: kind-kind kubectl: manifests: - ./infra/k8s/* build: local: push: false artifacts: - image: learnertester/auth context:…
best_of_man
  • 367
  • 1
  • 3
  • 12
1
vote
1 answer

kube-apiserver started to die on start-up after a few months of good work - how can I check its logs?

The stage: a control plane machine, kubernetes 1.24.3 on a baremetal Ubuntu 22.04, installed with kubeadm, there is also one worker node. The whole set-up worked like a charm for 4 months until some unknown silent kaboom yesterday (I actually don't…
Mikha
  • 123
  • 4