Automated Kubernetes Cluster Setup on Vagrant
I created this repo last year for my own local k8s development setup using simple shell scripts & vagrant.
The current Kubernetes version for CKA, CKAD & CKS is 1.22
I have updated the vagrant Kubernetes setup to k8s version 1.22.
It is a simple, easy-to-understand script that uses kubeadm for the cluster setup.
All you have to do is clone the repo and execute vagrant up.?
Once the cluster is set up, the kubeconfig file gets generated and added to the Vagrant folder.
Calico plugin and dashboard are also part of the installation.
You will have a local kubeadm cluster to play around with.
If you are a MAC user and updated OS to Monterey, you need to upgrade Virtualbox to the latest version and add the following in the /etc/vbox/networks.conf file.
*?0.0.0.0/0?::/0
So that vagrant can create networks other than 198* series.
Github Repo:?https://lnkd.in/g2ry59W
Video Documentation & Script Explanation: ??
Blog Documentation & Script Explanation ??
Note:?If you just want to play around with k8s, minikube, kind, and k3s are great options.
Manger, Product Engineering at Cordata Healthcare Innovations, LLC
2 年when running the top command, I get: Error from server (ServiceUnavailable): the server is currently unable to handle the request (get pods.metrics.k8s.io)
DevOps Engineer | Automating Cloud Infrastructure | AWS | Azure | Ansible | Docker | CI/CD | Jenkins | GitLab | Linux | Terraform | Kubernetes | Python | Shell | Immediate Joiner | Open to Relocate Anywhere in India
3 年Sir how to do using aws services
Senior Cloud DevOps Engineer | Kubernetes Expert (CKA, CKS) | AWS | Azure | Istio | SRE | DevSecOps | Databricks | Terraform | Blogger
3 年That’s cool ! I use virtual box to setup my personal on-prem Kubernetes cluster.
DevOps Engineer
3 年Much appreciated buddy
Agile,Devops & Release Manager - PMP,AWS-2X,PSM-1,PSM-2
3 年This is a real boon - it was a lot of painstaking work for me to setup a k8s cluster on my own - though i eventually managed to do it. This script worked like a charm so i now have 2 sets of k8s cluster to use :)