Kubernetes Persistent Volume Manifest: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
[[#accessModes|accessModes]]: | [[#accessModes|accessModes]]: | ||
- RedWriteOnce | - RedWriteOnce | ||
[[#capacity|capacity]]: | [[#capacity|capacity]]: | ||
storage: 10Gi | storage: 10Gi |
Revision as of 18:41, 20 August 2020
Internal
Example
apiVersion: v1 kind: PersistentVolume metadata: name: blue spec: accessModes: - RedWriteOnce capacity: storage: 10Gi # local volumes only support "Retain" persistentVolumeReclaimPolicy: Retain storageClassName: local-storage local: path: /mnt/disks/vol1 nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: kubernetes.io/hostname operator: In values: - my-node