To follow Vagrant tutorial, you need:
- VirtualBox - Follow installation guide on https://www.virtualbox.org/wiki/Downloads to install VirtualBox
- Vagrant - Follow installation guide on https://www.vagrantup.com/docs/installation/index.html to install Vagrant
make vagrant-start
vagrant ssh master
kubectl get all --all-namespaces
make vagrant-destroy
- Open
var/log/syslog
cat var/log/syslog | grep dockershim
kubectl drain node-2 --ignore-daemonsets
- Password
kubeadmin
ssh root@node-2
systemctl stop kubelet
systemctl stop docker
apt remove --purge docker-ce docker-ce-cli
- Comment
#disabled_plugins=["cri"]
vi /etc/containerd/config.toml
systemctl restart containerd
- Add
--container-runtime=remote --container-runtime-endpoint=unix:///run/containerd/containerd.sock
vi /var/lib/kubelet/kubeadm-flags.env
systemctl start kubelet
exit
kubectl uncordon node-2
kubectl create deploy nginx --image=nginx --replicas=4
kubectl get pods -o wide
- To see that the pods are running in both nodes