This is an introduction to Helm.
-
Mac OS X: Official documentation
-
Mac OS Brew:
brew install google-cloud-sdk
-
Linux: Official documentation
-
Debian and Ubuntu: Official documentation
-
RedHat and Centos: Official documentation
gcloud init
Fill with this:
project: sandbox-wescale
region: europe-west1
zone: europe-west1-d
- Mac OS Brew:
brew install kubernetes-cli
- Gcloud:
gcloud components install kubectl
gcloud auth application-default login
gcloud container clusters get-credentials handson-helm-wescale --zone europe-west1-d --project sandbox-wescale
Verify it is working:
kubectl get ns
It should display all the namespaces available on the cluster. If it is not working come see me !
- Mac OS Brew:
brew install kubernetes-helm
- Others: Official documentation
your-username: 1st letter of first name + last name
Example: bpetit
Init helm with this script: ./helm-init.sh <your-username>
Do this on every shell you use (Or add it to your .bashrc
or .zshrc
):
export TILLER_NAMESPACE=<your-username>
If you forgot to do this shit I am going to hit you with a stick.
helm install <name-of-app>
Install the application
helm install --name=<deployment-name> <name-of-app>
Install the application with the release-name specified
helm upgrade <release-name> <name-of-app>
Upgrade the release 'release-name' of the application
helm delete <release-name>
Delete the application link to this release
helm ls
List all the application installed in your cluster
helm create <my-app>
Create Helm chart
helm version
See what version is installed locally and in the cluster