persistency¶
persistency
value in Kubedeploy defines StatefulSets persistent volume claims parameters.
Note
persistency
will be only taken into account if the deploymetMode
is set to Statefulset
.
Available values for persistency
in Kubedeploy:
persistency:
storageClassName: # (1)
enabled: false # (2)
capacity:
storage: 5Gi # (3)
accessModes: # (4)
- ReadWriteOnce
mountPath: "/data" # (5)
- (string) Define custom name for persistent storage class name @default -- uses cluster default storageClassName
- Enable support for persistent volumes. Supported only if deploymentMode=Statefulset.
- Define storage capacity
- Define storage access modes. Must be supported by available storageClass
- Define where persistent volume will be mounted in containers.
Define persistent volume for statefulsets
values.yaml | |
---|---|
The above example will create a StatefulSet with 20Gi persistent volume mounted at /var/www/data
.
See also: