Skip to content

Commit 427e49a

Browse files
author
Vaughn Dice
authored
docs(tuning-component-settings): elaborate with practical examples (#749)
1 parent ec087fb commit 427e49a

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

src/managing-workflow/tuning-component-settings.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,27 @@ application or service on Kubernetes.
55

66
After you add the Deis Chart Repository, you can customize the chart using
77
`helm inspect values deis/workflow | sed -n '1!p' > values.yaml` before using `helm install` to complete the
8-
installation. To customize the respective component, edit `values.yaml` and modify the section of
9-
the component to tune these settings.
8+
installation.
9+
10+
There are a few ways to customize the respective component:
11+
12+
- If the value is exposed in the `values.yaml` file as derived above, one may modify the section of the component to tune these settings. The modified value(s) will then take effect at chart installation or release upgrade time via either of the two respective commands:
13+
14+
$ helm install deis/workflow --namespace deis -f values.yaml
15+
$ helm upgrade deis -f values.yaml
16+
17+
- If the value hasn't yet been exposed in the `values.yaml` file, one may edit the component deployment with the tuned setting. Here we edit the `deis-controller` deployment:
18+
19+
$ kubectl --namespace deis edit deployment deis-controller
20+
21+
Add/edit the setting via the appropriate environment variable and value under the `env` section and save. The updated deployment will recreate the component pod with the new/modified setting.
22+
23+
- Lastly, one may also fetch and edit the chart as served by version control/the chart repository itself:
24+
25+
$ helm fetch deis/workflow --untar
26+
$ $EDITOR workflow/charts/controller/templates/controller-deployment.yaml
27+
28+
Then run `helm install ./workflow --namespace deis --name deis` to apply the changes, or `helm upgrade deis ./workflow` if the cluster is already running.
1029

1130
## Setting Resource limits
1231

0 commit comments

Comments
 (0)