Helm: The package manager for Kubernetes
Install from script
$ curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
First step: initialize the local CLI and also install Tiller into your Kubernetes cluster
$ kubectl create serviceaccount --namespace kube-system tiller
$ kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
$ helm init --service-account tiller
You will see the deployment is created.
$ kubectl get po -n=kube-system
tiller-deploy-352283156-24v2g 1/1 Running 0 <invalid>
Charts:
A chart is a collection of files that describe a related set of Kubernetes resources. Charts are created as files laid out in a particular directory tree, then they can be packaged into versioned archives to be deployed.
More detail look here: https://docs.helm.sh/developing_charts/#charts
wordpress/
Chart.yaml # A YAML file containing information about the chart
LICENSE # OPTIONAL: A plain text file containing the license for the chart
README.md # OPTIONAL: A human-readable README file
requirements.yaml # OPTIONAL: A YAML file listing dependencies for the chart
values.yaml # The default configuration values for this chart
charts/ # OPTIONAL: A directory containing any charts upon which this chart depends.
templates/ # OPTIONAL: A directory of templates that, when combined with values,
# will generate valid Kubernetes manifest files.
templates/NOTES.txt # OPTIONAL: A plain text file containing short usage notes
Usage:
# If you want to use your own release name, simply use the --name flag on helm install
$ helm install ./charts # Chart.yaml folder path
$ helm ls
$ helm upgrade --set image.tag=0.3.8 [release_name] ./charts
$ helm rollback [release_name] [revision_number]
$ helm delete [release_name]