Unverified Commit 412b9864 authored by Matthew Fisher's avatar Matthew Fisher Committed by GitHub

Merge pull request #5433 from JeLuF/history-max

Documentation: Fix "helm init" parameters
parents ef7b54b0 b480badd
...@@ -54,10 +54,10 @@ Once you have Helm ready, you can initialize the local CLI and also ...@@ -54,10 +54,10 @@ Once you have Helm ready, you can initialize the local CLI and also
install Tiller into your Kubernetes cluster in one step: install Tiller into your Kubernetes cluster in one step:
```console ```console
$ helm init --max-history 200 $ helm init --history-max 200
``` ```
**TIP:** Setting `--max-history` on helm init is recommended as configmaps and other objects in helm history can grow large in number if not purged by max limit. Without a max history set the history is kept indefinitely, leaving a large number of records for helm and tiller to maintain. **TIP:** Setting `--history-max` on helm init is recommended as configmaps and other objects in helm history can grow large in number if not purged by max limit. Without a max history set the history is kept indefinitely, leaving a large number of records for helm and tiller to maintain.
This will install Tiller into the Kubernetes cluster you saw with This will install Tiller into the Kubernetes cluster you saw with
`kubectl config current-context`. `kubectl config current-context`.
......
...@@ -43,7 +43,7 @@ _Note: The cluster-admin role is created by default in a Kubernetes cluster, so ...@@ -43,7 +43,7 @@ _Note: The cluster-admin role is created by default in a Kubernetes cluster, so
$ kubectl create -f rbac-config.yaml $ kubectl create -f rbac-config.yaml
serviceaccount "tiller" created serviceaccount "tiller" created
clusterrolebinding "tiller" created clusterrolebinding "tiller" created
$ helm init --service-account tiller --max-history 200 $ helm init --service-account tiller --history-max 200
``` ```
### Example: Deploy Tiller in a namespace, restricted to deploying resources only in that namespace ### Example: Deploy Tiller in a namespace, restricted to deploying resources only in that namespace
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment