deployment, daemonset and statefulset¶
You can chose between deployment
daemonset
and statefulset
by changing the follwing value to true
or false
.
chart:
...
deployment: true
chart:
...
daemonset: true
chart:
...
statefulset: true
ohMyHelm versions <=
1.14.0
used a single boolean value to switch betweenstatefulSet
anddeployment
. For backwards compatibility, we also support this in our current ohMyHelm charts.
# This create a deployment
chart:
...
statefulset: false
# This create a statefulset
chart:
...
statefulset: true
Depending on your choice, you need to modify your values in deploymentVolume
or daemonsetVolume
statefulsetVolume
.
chart:
...
# if deployment: true
deploymentVolume:
volumeMounts:
- name: foo
...
volumes:
- name: foo2
...
# if daemonset: true
daemonsetVolume:
volumeMounts:
- name: foo
...
volumes:
- name: foo2
...
# if statefulset: true
statefulsetVolume:
volumeMounts:
- name: foo
...
volumeClaimTemplates:
- name: bar
...
volumes:
- name: foo2
...