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
Description
Languages
JavaScript
44.7%
Vue
24.3%
Shell
16.8%
Python
11.8%
Dockerfile
1.8%
Other
0.6%