mirror of
https://github.com/truenas/charts.git
synced 2024-04-21 15:21:45 +00:00
2.1 KiB
2.1 KiB
Deployment
| Key | Type | Required | Helm Template | Default | Description |
|---|---|---|---|---|---|
| controllers.[controller-name].strategy | string |
❌ | ❌ | Recreate |
Define the strategy of the controller (Recreate, RollingUpdate) |
| controllers.[controller-name].rollingUpdate | dict |
❌ | ❌ | {} |
Holds the rollingUpdate options, Only when strategy is RollingUpdate |
| controllers.[controller-name].rollingUpdate.maxUnavailable | int |
❌ | ❌ | Define the maxUnavailable, Only when strategy is RollingUpdate | |
| controllers.[controller-name].rollingUpdate.maxSurge | int |
❌ | ❌ | Define the maxSurge, Only when strategy is RollingUpdate |
Notes:
View common keys of controllers in Controllers Documentation.
Value of
controllers.[controller-name].podSpec.restartPolicycan only beAlwaysfor this type of controller
Examples:
controllers:
controller-name:
enabled: true
primary: true
type: Deployment
replicas: 1
revisionHistoryLimit: 3
strategy: Recreate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
podSpec: {}
other-controller-name:
enabled: true
primary: false
type: Deployment
labels: {}
annotations: {}
replicas: 1
revisionHistoryLimit: 3
strategy: Recreate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
podSpec: {}