Questions tagged [kubeadm]
The kubeadm tag has no usage guidance.
119
questions
0
votes
1
answer
199
views
The connection to the server 172.31.58.39:6443 was refused - did you specify the right host or port?
I have created 3 nodes on aws ec2. In these three nodes, I have one master node with type t2.medium and 2 worker nodes with type t2.micro
I'm facing an issue The connection to the server 172.31.58.39:...
0
votes
1
answer
91
views
Why do kubernetes components enter a crash loop back-off when server restarts after installation?
I have installed kubernetes on a single-node server using kubeadm. I have found that by performing the installation in a specific order everything gets up and running fine. This includes the main kube ...
0
votes
1
answer
101
views
Unable to Install Kubelet, Kubeadm Because It Requires Later Version of Cri-Tools
-1
I am taking a Coursera class for CKA Prep and as part of that we are provisioning an instance of a node on Amazon EC2, installing the container runtime (which is containerd in this case) and now I ...
0
votes
0
answers
242
views
Error retrieving resource lock kube-system/kube-controller-manager: Connection Refused - Kube Controller Manager
LOGS Kube controller Manager
Fetching last 1000 lines of logs from kube-controller-manager-raspberrypi pod in kube-system namespace: ...
0
votes
0
answers
36
views
Custer does not start. etcd and kube-apiserver do not start. Kubelet starts
After a blackout, the cluster does not start.
3 workers + 2 Control Planes.
Installed with kubeadm. Version 1.27.1
containerd 1.6.22
Ubuntu 22.04.3 LTS
It has been running fine for more than one year, ...
0
votes
0
answers
21
views
extraPortMappings for kubeadm
I am be able map my NodePort service to localhost using a configuration file like this:
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraPortMappings:
- ...
0
votes
1
answer
41
views
kubernetes control plane goes down often
I did setup a kubernetes cluster using kubeadm. Somehow kubectl refuses to connect to that cluster in non-periodic occasions with an error message as in the following;
The connection to the server 192....
0
votes
2
answers
412
views
Unable to initialize Kubernetes cluster upon sudo kubeadm init line command
Trying to deploy Kubernetes on AWS EC2 instance. I'm seeing the following errors/warning when running sudo kubeadm init --pod-network-cidr=10.244.0.0/16 --ignore-preflight-errors=all
Errors:
[WARNING ...
0
votes
0
answers
176
views
Dual Stack Kubernetes cluster assigning single stack IPs to pods & services
I am creating a dual stack Kubernetes cluster with kubeadm, and installing Calico. I am using the below configuration file for kubeadm:
apiVersion: kubeadm.k8s.io/v1beta3
kind: InitConfiguration
...
0
votes
1
answer
521
views
kubeadm config images pull fails
I am trying to install k8s on a new machine running Ubuntu 20.04 using containerd and kubeadm is failing to load the images:
# kubeadm config images pull --kubernetes-version=1.21.0 --image-repository ...
0
votes
1
answer
143
views
Kubeadm - Kubernetes: Failed to fetch https://packages.cloud.google.com/apt/dists/kubernetes-xenial/main/binary-arm64
I am trying to deploy kubernetes (kubeadm cluster) on ARM64 based Ubuntu 20.04 virtual machine.
I am getting the follwoing error when deploying kubeadm:
xxx@controller01:~$ sudo mkdir -p /etc/apt/...
0
votes
0
answers
51
views
Migrate a hand-made kubernetes cluster to kubeadm
I have an existing production kubernetes cluster that was installed by hand, and for easier administration, I would like to upgrade it to a kubeadm installation. I know this will be hard and painful, ...
0
votes
0
answers
292
views
Kubernetes connection refuses often
I have configured Kubernetes using kubeadm in cent os stream 9. When I issue kubectl commands i am getting this error often
The connection to the server xx.xxx.xx.xx:6443 was refused - did you ...
-1
votes
1
answer
556
views
Why does kubernetes readiness probe fail, when manually calling the exec command returns success code?
I used kubeadm to deploy a bare-metal cluster with one control plane node and one worker node on the same LAN. After initializing the cluster (kubeadm init on the cp and kubeadm join on the worker ...
0
votes
1
answer
457
views
Error checking external CA condition for ca certificate authority
Not sure how to solve the problem with the certificates, maybe someone has encountered this problem?
kernel
uname -a
Linux node2 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 ...
0
votes
0
answers
160
views
Multi cloud provider kubernetes cluster pod logs got timeout
Hi all i have master node in digital ocean and worker node in google cloud, nodes are connected using public ip of master node and pods are in running status but when i run kubectl logs i'm getting ...
-1
votes
2
answers
3k
views
kubeadm is showing [ERROR CRI]:
kubeadm init
[init] Using Kubernetes version: v1.26.2
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR CRI]: container runtime is ...
1
vote
0
answers
292
views
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 ...
0
votes
0
answers
454
views
kubeadm : unable to register node with api server x509 certificate signed by unknown authority kubeadm
I am trying to create a K8S cluster in HA. I have created 2 VMs, one acting as a load balancer and the second as the master node.
The load balancer has a simple NGINX server with the following ...
0
votes
1
answer
160
views
kubeadm not creating controller-manager.conf when using external CA
I'm trying to initialise a kubernetes cluster using kubeadm, unfortunately this isn't working as expected. This is the kubeadm config file:
apiVersion: kubeadm.k8s.io/v1beta2
kind: ...
0
votes
0
answers
10
views
How to add "Kind" settings to "/.kube/config" file?
I have installed kubeadm previously and configured it using kubeadm --init and the configs are inside /.kube/config file by now. I recently installed kind and want to know how should I configure it?
...
2
votes
2
answers
7k
views
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:
...
0
votes
1
answer
281
views
Kubeadmin: Why do we need to upgrade the kubelet and kubectl seperately?
Kubeadmin is a tool to manage and maintain the Kubernetes cluster. Based on the Kubernetes Doc, there are rough four steps to upgrade the controlplane node.
upgrade the version of kubeadmin itself
...
16
votes
9
answers
33k
views
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 '...
2
votes
1
answer
5k
views
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
[...
0
votes
1
answer
1k
views
kubeadm 1.25 init failed on Debian 11 with containerd -> connection refused
I try to init a kubernetes master node running on a Debian GNU/Linux 11 (bullseye) system with kubeadm version 1.25.4-00.
I followed the official guideline on kubernetes.io. I installed containerd and ...
0
votes
0
answers
3k
views
Kubelet node not found
I'm trying to set up a kubernetes cluster. My kubeadm init times out with The kubelet is unhealthy due to a misconfiguration of the node in some way. Looking at Kubelet I find that is continuously ...
0
votes
0
answers
1k
views
kube-apiserver.service failing after complete reinstall of kubernetes and kubectl plugins
I'm having an issue where kube-apiserver.service will always fail on my local Fedora 36.
Getting the namespaces from a context I was experiencing certificate issues that prevented me from succeeding. ...
1
vote
1
answer
652
views
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 ...
0
votes
0
answers
1k
views
Kubeadm : can't pull flannel docker image from docker.io but pulling images from registry.k8s.io is ok
I want to deploy a little k8s test cluster using 3 VMS running on my host, one master and two workers.
On all of them, needed software are installed : docker, kubeadm, kubectl, kubelet .
I've followed ...
0
votes
1
answer
188
views
Install HA Kube
I've tried following various different guides on installing HA kube and I cant get anything to work.
My basic setup is to have 3 master nodes with Keepalived creating a virtual IP (10.10.20.30) and ...
0
votes
0
answers
481
views
"kubeadm upgrade node" on a worker node fails with failed to getAPIEndpoint error
I have been trying to upgrade Kubernetes bare metal cluster (3 masters, 3 workers from version 1.21.2 to 1.22.6) and was successful in upgrading all the master nodes.
Coming to the first worker node, ...
0
votes
0
answers
457
views
Maintaining same version of kubectl client and server version same in CentOs
Recently we upgraded the kubeadm in of kubernetes cluster. Unfortunately it happened to be both my client and server kubectl got upgraded to 2 different versions. I tried to downgrade, for some reason ...
-1
votes
1
answer
626
views
Sonarqube app pod is not connecting with PostgreSQL DB pod when deploying to Kubernetes
I am trying to setup SonarQube in a Kubernetes cluster. The cluster was made using KubeADM in the AWS cloud. I have the following files for the setup.
Sonarqube App Deployment file
Sonarqube App ...
0
votes
1
answer
2k
views
Fix the KubeletHasDiskPressure in Kubernetes on a very limited server
I have a question regarding our local Kubernetes installation (Kubelet version == 1.24.4).
We're having a Kubernetes installation installed using Kubespray.
I'm aware of a few related questions/...
4
votes
2
answers
2k
views
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 ...
0
votes
0
answers
1k
views
Calico CNI calio-apiserver issues, on-premises kubeadm based kubernetes v1.24.2 cluster
I am unable to get calico CNI fully functional on a on-premises kubeadm based kubernetes v1.24.2 cluster.
The calio-apiserver pods (in the calio-apiserver namespace) have the status "...
1
vote
0
answers
21
views
kubeadm has a empty token list
I'm running a k8s cluster to study and when I run kubeadm token list on the master node doesn't do anything, just jump to another line. And there is no file /etc/kubernetes/pki/tokens.csv on the ...
0
votes
0
answers
2k
views
kubeadm based kubernetes (v1.24.2) worker nodes are still in "NotReady" status even after installing calico CNI ("Error querying BIRD")
kubeadm based kubernetes (v1.24.2) worker nodes are still in "NotReady" status even after installing calico CNI ("dial unix /var/run/bird/bird.ctl: connect: no such file or directory&...
1
vote
1
answer
727
views
kubeadm based kubelet 1.24.2 calico CNI issues
I have installed a kubeadm based kubernetes cluster (v1.24.2) on Centos7.
I have attempted to install calico CNI as per the instructions at "https://projectcalico.docs.tigera.io/getting-started/...
0
votes
1
answer
1k
views
kubeadm based kubernetes Get "https://10.96.0.1:443/api?timeout=32s": dial tcp 10.96.0.1:443: connect: no route to host
I have deployed a kubeadm based kubernetes cluster v1.24.3 which consists of one control-plane node and 3 worker nodes (all Centos 7 VMs). These are all "on premises" on a single physical ...
1
vote
1
answer
1k
views
Kubeadm won't pull images (unable to determine version and cri-dockerd not found)
I did fresh install for several Ubuntu 22.04 servers with the latest (1.24.3) kubeadm, kubelet, and kubectl installed. I am also using containerd as the CRI.
The error happens when I was trying to ...
1
vote
1
answer
953
views
How to create a container-disk image for VMs provisioned using KubeVirt
I am trying to create a VM setup in my Kubernetes cluster using KubeVirt. I have two EC2 instances(Master node: t2.xlarge and worker node: m5.metal) in AWS cloud and I have setup the cluster using ...
0
votes
1
answer
2k
views
Cannot properly edit and save worker node specs in Kubernetes
I have a Kubernetes cluster setup using KubeAdm (Setup in EC2 instances in AWS Cloud). The CNI used is Flannel and the cluster is running quite well. My requirement is that I am trying to setup ...
0
votes
0
answers
376
views
Calico deployment not saving tolerance for master node
I was trying to setup a Kubernetes Cluster using Amazon EC2 and Kubeadm.
I created a 't2.large' EC2 instance based on Ubuntu 18.04 AMI. Setup kubeadm, kubelet, kubectl and docker as the container ...
0
votes
1
answer
745
views
Kubernetes pull from image private network / fails to respect /etc/hosts of server
(Reposted from original post at: https://stackoverflow.com/questions/73012913/kubernetes-pull-from-image-private-network-fails-to-respect-etc-hosts-of-serv as this is a more appropriate place to ask ...
1
vote
1
answer
977
views
"kubeadm-config" in the kube-system namespace used for getting configuration information was not found
I have a Kubernetes cluster created by Kubeadm.
My current version of the cluster is v1.19.2 and trying to upgrade to v1.20.15-0
Now I am trying to upgrade the kubeadm cluster via kubeadm upgrade plan ...
2
votes
1
answer
5k
views
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 ...
4
votes
1
answer
2k
views
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-...
4
votes
2
answers
9k
views
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 ...