Asking for help? Comment out what you need so we can get more information to help you!
Cluster information:
Kubernetes version: latest
Cloud being used: bare-metal
Installation method:
Host OS:
Ubuntu 22.04
Hello, I’m trying to deploy a kubernetes cluster between 3 ubuntu 22.04 virtualbox VM.
Here a the commands I’ve used :
sudo apt update
sudo apt upgrade -y
sudo apt install docker.io -y
sudo systemctl start docker sudo systemctl enable docker
Disable swap
Install cri-dockerd
Step 4: Install Kubernetes Tools Install the necessary Kubernetes tools on all three virtual machines:
bash
sudo apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubelet kubeadm kubectl
- Pull container images:
#Using Docker and cridockerd
sudo kubeadm config images pull --cri-socket unix:///var/run/cri-dockerd.sock
- Init with kubeadm
sudo kubeadm init --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=192.168.56.2 --cri-socket unix:///var/run/cri-dockerd.sock
However it’s not working when I try “kubectl get nodes” it says :
root@ubuntugitlabserver:~# kubectl get nodes
NAME STATUS ROLES AGE VERSION
ubuntugitlabserver NotReady control-plane 2d18h v1.28.2
Thank you for your help