mirror of
https://github.com/truenas/charts.git
synced 2024-04-21 15:21:45 +00:00
1.8 KiB
1.8 KiB
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 |
❌ | ❌ | Define the maxUnavailable, Only when strategy is RollingUpdate | |
| workload.[workload-name].rollingUpdate.maxSurge | int |
❌ | ❌ | Define the maxSurge, Only when strategy is RollingUpdate |
Notes:
View common keys of workload in workload Documentation.
Value of
workload.[workload-name].podSpec.restartPolicycan only beAlwaysfor this type of workload
Examples:
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: {}