Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zaidsasa/vagrant-kubernetes-cluster
A Kubernetes practice cluster for CKA, CKAD, and CKS certifications using Vagrant and Ansible.
https://github.com/zaidsasa/vagrant-kubernetes-cluster
ansible certification cka ckad cks kubeadm practice vagrant
Last synced: about 1 month ago
JSON representation
A Kubernetes practice cluster for CKA, CKAD, and CKS certifications using Vagrant and Ansible.
- Host: GitHub
- URL: https://github.com/zaidsasa/vagrant-kubernetes-cluster
- Owner: zaidsasa
- License: mit
- Created: 2024-03-15T15:07:06.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-08-14T08:58:43.000Z (3 months ago)
- Last Synced: 2024-08-25T11:58:11.832Z (3 months ago)
- Topics: ansible, certification, cka, ckad, cks, kubeadm, practice, vagrant
- Language: Ruby
- Homepage:
- Size: 115 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vagrant Kubernetes Cluster
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/zaidsasa/kubernetes-practice-environment/blob/main/LICENSE)
A Kubernetes practice cluster for CKA, CKAD, and CKS certifications using Vagrant and Ansible.
## Prerequisites
1. [vagrant]
2. [virtualbox][vagrant]: https://developer.hashicorp.com/vagrant/install
[virtualbox]: https://www.virtualbox.org/wiki/Downloads## What is included?
1. Container Runtime Interface (CRI): cri-o
2. Container Network Interface (CNI): calico 3.28.0 (Default)
3. Kubernetes: 1.29 (Default)
4. [Kubernetes Dashboard](#kubernetes-dashboard): 7.5.0## Create a Kubernetes practice cluster
To create the cluster, execute the following commands.
```
git clone https://github.com/zaidsasa/kubernetes-practice-environment.git
cd kubernetes-practice-environment
vagrant up
```## Set Kubeconfig variable
```
export KUBECONFIG=$(pwd)/.vagrant/k8s/config
```## Kubernetes Dashboard
### Install Kubernetes Dashboard
you can enable it in settings.yaml and running the following:
```
vagrant provision
```### Access Kubernetes Dashboard
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/
```## To shutdown the cluster
```
vagrant halt
```## To destroy the cluster
```
vagrant destroy -f
```## Contributing
Please feel free to submit issues, fork the repository and send pull requests!
## License
This project is licensed under the terms of the MIT license.