Skip to content

statefulset or deployment

You can switch between statefulset and deployment by changing the follwing value statefulset to true or false.

chart:
  ...
  statefulset: true

Depending on your choice, you need to modify your values in statefulsetVolume or deploymentVolume.

chart:
  ...
  # if statefulset: true
  statefulsetVolume:
    volumeMounts:
      - name: foo
        ...
    volumeClaimTemplates:
      - name: bar
        ...
    volumes:
      - name: foo2
        ...
  # if statefulset: false        
  deploymentVolume:
    volumeMounts:
      - name: foo
        ...
    volumes:
      - name: foo2
        ...        

Last update: December 13, 2021