A Kubernetes practice cluster for CKA, CKAD, and CKS certifications using Vagrant and Ansible.
- Container Runtime Interface (CRI): cri-o
- Container Network Interface (CNI): calico 3.28.0 (Default)
- Kubernetes: 1.29 (Default)
- Kubernetes Dashboard: 7.5.0
To create the cluster, execute the following commands.
git clone https://github.com/zaidsasa/kubernetes-practice-environment.git
cd kubernetes-practice-environment
vagrant up
export KUBECONFIG=$(pwd)/.vagrant/k8s/config
you can enable it in settings.yaml and running the following:
vagrant provision
To get the login token, run the following command:
kubectl -n kubernetes-dashboard create token admin-user
Make the dashboard accessible:
kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-kong-proxy 8443:443
Open the site in your browser:
https://localhost:8443/
vagrant halt
vagrant destroy -f
Please feel free to submit issues, fork the repository and send pull requests!
This project is licensed under the terms of the MIT license.