Environment Build - Testing
Submitted by dave on Wed, 04/26/2023 - 13:25
- Download and run Vagrantfile from bmuschko's CKA Crash Course here.
- Initialize Kubernetes using these steps
- Set Kubelet IP addresses for each node (plan, worker1, worker2):
sudo vi /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
Add:
Environment="KUBELET_EXTRA_ARGS=--node-ip=xx.xx.xx.xx"
Then:
sudo systemctl daemon-reload sudo systemctl restart kubelet
When all are set, go to COntrol Plane node and run:
kubectl get nodes -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME kube-control-plane Ready control-plane,master 25h v1.23.4 192.168.56.10 Ubuntu 18.04.6 LTS 4.15.0-208-generic docker://19.3.14 kube-worker-1 Ready 25h v1.23.4 192.168.56.21 Ubuntu 18.04.6 LTS 4.15.0-208-generic docker://19.3.14 kube-worker-2 Ready 25h v1.23.4 192.168.56.22 Ubuntu 18.04.6 LTS 4.15.0-208-generic docker://19.3.14