mirror of
https://github.com/truenas/charts.git
synced 2026-02-10 13:56:38 +08:00
* Adapt charts CI and improve/fix common * add check on permissions contaienr * add postgres template * update comments * Update create_app.sh * add check * update script * auto gen item.yaml from Chart,yaml * rename readme on dest * duplicate readme from the same source * correct comment * reoder * remove extra space * keep both README and app-readme * update regex, to also allow 2 letter names, which is also valid * No need to check host network if there aren't any pod values * use same pattern as the pod.name label (not prepending release-name * update deps * add chart dirs to ci * Add a validation to check if there is any yaml errors after merging files * update charts path on ci * common/1.0.0/ -> common/ * update common-test dep path * temp update create_app script * make permissions container name configurable, incase we want to change order of execution * update naming convention * fix typo and a missed name change * do not allow `--` in names
50 lines
2.0 KiB
Markdown
50 lines
2.0 KiB
Markdown
# Deployment
|
|
|
|
| Key | Type | Required | Helm Template | Default | Description |
|
|
| :---------------------------------------------------- | :------: | :------: | :-----------: | :---------------------------------------------: | :------------------------------------------------------------------- |
|
|
| workload.[workload-name].strategy | `string` | ❌ | ❌ | `Recreate` | Define the strategy of the workload (Recreate, RollingUpdate) |
|
|
| workload.[workload-name].rollingUpdate | `dict` | ❌ | ❌ | `{}` | Holds the rollingUpdate options, Only when strategy is RollingUpdate |
|
|
| workload.[workload-name].rollingUpdate.maxUnavailable | `int` | ❌ | ❌ | `{{ .Values.fallbackDefaults.maxUnavailable }}` | Define the maxUnavailable, Only when strategy is RollingUpdate |
|
|
| workload.[workload-name].rollingUpdate.maxSurge | `int` | ❌ | ❌ | `{{ .Values.fallbackDefaults.maxSurge }}` | Define the maxSurge, Only when strategy is RollingUpdate |
|
|
|
|
---
|
|
|
|
Notes:
|
|
|
|
View common `keys` of `workload` in [workload Documentation](README.md).
|
|
|
|
> Value of `workload.[workload-name].podSpec.restartPolicy` can only be `Always` for this type of workload
|
|
|
|
---
|
|
|
|
Examples:
|
|
|
|
```yaml
|
|
workload:
|
|
workload-name:
|
|
enabled: true
|
|
primary: true
|
|
type: Deployment
|
|
replicas: 1
|
|
revisionHistoryLimit: 3
|
|
strategy: Recreate
|
|
rollingUpdate:
|
|
maxUnavailable: 1
|
|
maxSurge: 1
|
|
podSpec: {}
|
|
|
|
other-workload-name:
|
|
enabled: true
|
|
primary: false
|
|
type: Deployment
|
|
labels: {}
|
|
annotations: {}
|
|
replicas: 1
|
|
revisionHistoryLimit: 3
|
|
strategy: Recreate
|
|
rollingUpdate:
|
|
maxUnavailable: 1
|
|
maxSurge: 1
|
|
podSpec: {}
|
|
```
|