Baremetal Kubernetes Cluster Setup On Windows: Prerequisites
Baremetal Kubernetes Cluster Setup On Windows: Prerequisites
Baremetal Kubernetes Cluster Setup On Windows: Prerequisites
com/kunchalavikram1427 1
Prerequisites
• Hyper-V disabled on Windows Pro machines
• Admin rights
• VirtualBox installed
https://www.virtualbox.org/wiki/Downloads
• Host network adapter in VirtualBox
➢ Go to file -> Host Network Manager
BABU-KUNCHALA VIKRAM 1
github.com/kunchalavikram1427 2
Give a name to your VM and select options as in screenshot and click Next
I have chosen name as k8s-master as this node will be acting as Kubernetes master
BABU-KUNCHALA VIKRAM 2
github.com/kunchalavikram1427 3
5. Choose the image that is downloaded and extracted from osboxes.org website and
click create
BABU-KUNCHALA VIKRAM 3
github.com/kunchalavikram1427 4
BABU-KUNCHALA VIKRAM 4
github.com/kunchalavikram1427 5
BABU-KUNCHALA VIKRAM 5
github.com/kunchalavikram1427 6
BABU-KUNCHALA VIKRAM 6
github.com/kunchalavikram1427 7
BABU-KUNCHALA VIKRAM 7
github.com/kunchalavikram1427 8
5. Repeat Steps 11 & 13 used in setting up master VM. But this time use
K8s-slave01 instead of k8s-master
192.168.56.3 instead of 192.168.56.2
Basically, we must change the hostname and hosts file with name of the slave
chosen and giving static IP to VM which is different from static IP assigned to master
6. Shutdown this VM
BABU-KUNCHALA VIKRAM 8
github.com/kunchalavikram1427 9
3. Run below commands on all 3 VMs(prefer opening multiple putty sessions and running
these commands on all nodes at once).
These commands include turning off swap memory and installing Kubernetes
components
➢ swapoff -a
➢ nano /etc/fstab (comment out swap line)
BABU-KUNCHALA VIKRAM 9
github.com/kunchalavikram1427 10
References
➢ https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-
kubeadm/
➢ https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-
cluster-kubeadm/
BABU-KUNCHALA VIKRAM 10
If you like my work, Kindly consider supporting me.
This will help me come up with more tutorials on DevOps tools and help me in
launching my own YouTube Channel.
Direct all your support to the below mentioned payment channels.
Your support is highly appreciated.
Check my Github for other tutorials on Docker, Kubernetes, K3s, Helm, Git, Ansible,
Jenkins, Terraform, AWS etc.,