|
| 1 | +# Tuning Component Settings |
| 2 | + |
| 3 | +Helm Charts are a set of Kubernetes manifests that reflect best practices to deploy an application |
| 4 | +or service. Helm is heavily influenced by [Homebrew](http://brew.sh/), including the |
| 5 | +[formula model](https://github.com/Homebrew/homebrew-core). A Helm chart is to Helm as a Formula |
| 6 | +is to Homebrew. |
| 7 | + |
| 8 | +When you run `helmc fetch deis/workflow-beta3`, you can customize the chart with |
| 9 | +`helmc edit workflow-beta3`. To customize the respective component, edit |
| 10 | +`manifests/deis-<component>-rc.yaml` and modify the `env` section of the component to tune these |
| 11 | +settings. |
| 12 | + |
| 13 | +For example, to allow only administrators to register new accounts in the controller, |
| 14 | +edit `manifests/deis-controller-rc.yaml` and add the following under the `env` section: |
| 15 | + |
| 16 | +``` |
| 17 | +env: |
| 18 | + - name: REGISTRATION_MODE |
| 19 | + value: "admin_only" |
| 20 | +``` |
| 21 | + |
| 22 | + |
| 23 | +## Customizing the Controller |
| 24 | + |
| 25 | +The following environment variables are tunable for the [Controller][] component: |
| 26 | + |
| 27 | +Setting | Description |
| 28 | +------------------- | --------------------------------- |
| 29 | +REGISTRATION_MODE | set registration to "enabled", "disabled", or "admin_only" (default: "enabled") |
| 30 | +GUNICORN_WORKERS | number of [gunicorn][] workers spawned to process requests (default: 8) |
| 31 | +DEIS_RESERVED_NAMES | a comma-separated list of names which applications cannot reserve for routing (default: "deis") |
| 32 | + |
| 33 | + |
| 34 | +## Customizing the Database |
| 35 | + |
| 36 | +The following environment variables are tunable for the [Database][] component: |
| 37 | + |
| 38 | +Setting | Description |
| 39 | +----------------- | --------------------------------- |
| 40 | +BACKUP_FREQUENCY | how ofter the database should perform a base backup (default: "12h") |
| 41 | +BACKUPS_TO_RETAIN | number of base backups the backing store should retain (default: 5) |
| 42 | + |
| 43 | + |
| 44 | +[controller]: ../understanding-workflow/components.md#controller |
| 45 | +[database]: ../understanding-workflow/components.md#database |
| 46 | +[gunicorn]: http://gunicorn.org/ |
0 commit comments