StatefulSet
Appears in
.Values.workload.$name
Notes
Value of workload.$name.podSpec.restartPolicy can only be Always for this type of workload
replicas
Define the number of replicas
| Key | workload.$name.replicas | 
| Type | int | 
| Required | ❌ | 
Helm tpl | ❌ | 
| Default | 1 | 
Example
workload:  workload-name:    replicas: 1revisionHistoryLimit
Define the number of history revisions
| Key | workload.$name.revisionHistoryLimit | 
| Type | int | 
| Required | ❌ | 
Helm tpl | ❌ | 
| Default | 3 | 
Example
workload:  workload-name:    revisionHistoryLimit: 3strategy
Define the strategy of the workload
| Key | workload.$name.strategy | 
| Type | string | 
| Required | ❌ | 
Helm tpl | ❌ | 
| Default | RollingUpdate | 
Valid Values:
OnDeleteRollingUpdate
Example
workload:  workload-name:    strategy: RollingUpdaterollingUpdate
Define the rollingUpdate options
| Key | workload.$name.rollingUpdate | 
| Type | map | 
| Required | ❌ | 
Helm tpl | ❌ | 
| Default | {} | 
Example
workload:  workload-name:    rollingUpdate:      maxUnavailable: 1      maxSurge: 1rollingUpdate.maxUnavailable
Define the maxUnavailable
| Key | workload.$name.rollingUpdate.maxUnavailable | 
| Type | int | 
| Required | ❌ | 
Helm tpl | ❌ | 
| Default | unset | 
Example
workload:  workload-name:    rollingUpdate:      maxUnavailable: 1rollingUpdate.partition
Define the partition
| Key | workload.$name.rollingUpdate.partition | 
| Type | int | 
| Required | ❌ | 
Helm tpl | ❌ | 
| Default | unset | 
Example
workload:  workload-name:    rollingUpdate:      partition: 1Notes:
View common keys of workload in workload Documentation.
Value of
workload.[workload-name].podSpec.restartPolicycan only beAlwaysfor this type of workload
Full Examples
workload:  workload-name:    enabled: true    primary: true    type: StatefulSet    replicas: 1    revisionHistoryLimit: 3    strategy: RollingUpdate    rollingUpdate:      maxUnavailable: 1      partition: 1    podSpec: {}
  other-workload-name:    enabled: true    primary: false    type: StatefulSet    replicas: 1    revisionHistoryLimit: 3    strategy: RollingUpdate    rollingUpdate:      maxUnavailable: 1      partition: 1    podSpec: {}