Corrigé de l'exercice 050-helmfile-kustomize pour IB / Lacroix-Sofrel
Go to file
Glenn Y. Rolland 2a0e06a15b Update 'README.md' 2023-03-21 17:00:02 +00:00
helm Add content 2023-03-21 17:50:27 +01:00
k3d Add content 2023-03-21 17:50:27 +01:00
kubernetes Add content 2023-03-21 17:50:27 +01:00
README.md Update 'README.md' 2023-03-21 17:00:02 +00:00
helmfile.yaml Add content 2023-03-21 17:50:27 +01:00

README.md

Corrigé de 050-helmfile-kustomize

Prerequis

  • k3d
  • kubectl
  • helm
  • helm-diff
  • helmfile

Créer le cluster

k3d cluster create -c k3d/k3d-cluster.yaml

Installer les charts helm (avec helmfile)

helmfile apply 

Intaller les différents services (avec kustomize)

Option 1 : configuration basée sur Ingress (standard kubernetes)

kubectl delete -f kubernetes/ingress-route/
kubectl apply -f kubernetes/ingress/

Option 2 : configuration basée sur IngressRoute (traefik)

kubectl delete -f kubernetes/ingress/
kubectl apply -f kubernetes/ingress-route/

Vérifier les objets

Option 1 : configuration basée sur Ingress (standard kubernetes)

k9s -n web -c ingress

Option 2 : configuration basée sur IngressRoute (traefik)

k9s -n web -c ingress-route

Tester le fonctionnement

w3m http://localhost/dokuwiki
w3m http://localhost/wordpress