01. September 2023
Solution TP 13
TP13 : Kustomize
Must be updated because this solutions is outdated !
🇫🇷 Version Française
Correction du TP13
mkdir TP13
cd TP13
wget http://k8s-training.westeurope.cloudapp.azure.com/tp13/file/kustomize-tp13.tar.gz
tar -xf kustomize-tp13.tar.gz
cd kustomize
Launch kustomize
Vous pouvez lancer l’installation de votre application avec la commande :
kubectl apply -k dev/
Local installation (facultatif)
Il y a un dossier local, il peut etre installé sur un minikube local (ou docker desktop avec kubernetes activé si vous avez la licence)
Pour une installation en local il faudra déployé un ingress controlleur manuellement, pour ça vous pouvez utiliser la commande suivante :
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.2.0/deploy/static/provider/cloud/deploy.yaml
The dossier local est le meme que le dossier dev ou acc mais avec un chose en plus : une ingress class qui fait reference à l’ingress controller déployé juste avant
C’est utilisé pour dire à vos ingress quel ingress controller il doit utiliser kubernetes.io/ingress.class: "nginx" "
🇬🇧 English version
TP13 Solution
mkdir TP13
cd TP13
wget http://k8s-training.westeurope.cloudapp.azure.com/tp13/file/kustomize-tp13.tar.gz
tar -xf kustomize-tp13.tar.gz
cd kustomize
Launch kustomize
Then you can launch the install of your application with the command :
kubectl apply -k dev/
Local installation (optional)
There is a local folder, it can be used to deploy a version on a local minikube (or docker desktop if you have the license) on your computer.
for local installation you have to install manually an ingress controller used as an entry point of your cluster to do that you can launch this command :
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.2.0/deploy/static/provider/cloud/deploy.yaml
The local folder is exactly the same as the dev and acc folder but with one more thing : the ingress class annotation in the ingress,
It’s used to tell to the ingress “use the ingress controller with the class kubernetes.io/ingress.class: "nginx" "