Aide-mémoire CKAD
exemple helm install k8s
Trouver le chart avec helm search repo, installer repo/chart, toujours -n. Un .tgz est le repli.
helm repo add local http://127.0.0.1:8080
helm repo update
helm search repo local
helm install web local/web -n app --set replicaCount=2
helm upgrade --install web local/web -n app --version 0.2.0 --set replicaCount=3
helm rollback web 1 -n app
helm uninstall web -n app
helm install web ./web-0.1.0.tgz -n app --set replicaCount=2
helm upgrade web ./web-0.2.0.tgz -n app --set replicaCount=3
helm list -n app -a
helm status web -n app
helm get values web -n app
helm history web -n app
helm uninstall web -n app --no-hooks
helm list -n app -a
Champs
- helm repo
- add + update avant search. L’URL est dans la question. Le repo peut déjà être là.
- helm search
- Affiche repo/chart et les versions. C’est ce nom que install veut.
- helm install
- repo/chart, ou un chemin. Toujours -n. --set pour les values.
- helm upgrade
- Même réf de chart que install. --install crée la release si elle n’existe pas.
- helm list
- -a montre failed et pending. Sans ça ils sont cachés.
- helm uninstall
- pending-install : uninstall, puis réinstaller. --no-hooks s’il reste coincé.
- helm rollback
- Numéro de révision via helm history. 1 est le premier install.
- --set
- Clé du chart. replicaCount est courant, pas replicas.
Pièges
- helm list cache failed / pending sans -a. Toujours -n.
- Le chart est repo/nom (local/web) après helm search repo. Un chemin .tgz marche aussi.
- pending-install : helm uninstall <rel> -n <ns>, puis réinstaller. --no-hooks s’il reste coincé.
Doc officielle Using Helm