You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Grégory Lebreton 5d2994b216 | 11 months ago | |
---|---|---|
kubernetes | 11 months ago | |
scripts | 11 months ago | |
.gitignore | 11 months ago | |
LICENSE.md | 11 months ago | |
README.md | 11 months ago | |
Vagrantfile | 11 months ago | |
settings.yaml | 11 months ago |
README.md
Kubernetes cluster avec Vagrant
Pré requis
Install Vagrant
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update -y && sudo apt install vagrant -y
config Virtualbox
sudo mkdir -p /etc/vbox/
echo "* 0.0.0.0/0 ::/0" | sudo tee -a /etc/vbox/networks.conf
Créer cluster 🔨
vagrant up
☕ Laisser le temps à Vagrant de construire les machines ⌚ 15 min approximativement
Kube config
cp configs/config ~/.kube/
Déployer app 🚀
kubectl apply -f devops.yml
- commandes utiles:
kubectl get svc
kubectl get all