helm create chart-test ## this would create a helm
helm install -f myvalues.yaml myredis ./redis
helm list --pending -A
helm uninstall -n namespace release_name
helm upgrade -f myvalues.yaml -f override.yaml redis ./redis
Add, list, remove, update and index chart repos
helm repo add [NAME] [URL] [flags]
helm repo list / helm repo ls
helm repo remove [REPO1] [flags]
helm repo update / helm repo up
helm repo update [REPO1] [flags]
helm repo index [DIR] [flags]
helm pull [chart URL | repo/chartname] [...] [flags] ## this would download a helm, not install
helm pull --untar [rep/chartname] # untar the chart after downloading it
helm repo add bitnami https://charts.bitnami.com/bitnami
bitnami/node
chart to standard outputhelm show values bitnami/node
bitnami/node
chart setting the number of replicas to 5To achieve this, we need two key pieces of information:
To identify the name of the attribute in the values.yaml file, we could get all the values, as in the previous task, and then grep to find attributes matching the pattern replica
helm show values bitnami/node | grep -i replica
which returns
## @param replicaCount Specify the number of replicas for the application
replicaCount: 1
We can use the --set
argument during installation to override attribute values. Hence, to set the replica count to 5, we need to run
helm install mynode bitnami/node --set replicaCount=5