Kubernetes déploiement via Minikube, Kind et Vagrant
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 maj branch vagrant 11 months ago
kubernetes maj branch vagrant 11 months ago
scripts maj branch vagrant 11 months ago
.gitignore maj branch vagrant 11 months ago
LICENSE.md maj branch vagrant 11 months ago
README.md maj branch vagrant 11 months ago
Vagrantfile maj branch vagrant 11 months ago
settings.yaml maj branch vagrant 11 months ago

README.md

Kubernetes cluster avec Vagrant

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

http://localhost/devops