Kubernetes Persistent Volume Manifest: Difference between revisions
Jump to navigation
Jump to search
Line 45: | Line 45: | ||
==nodeAffinity== | ==nodeAffinity== | ||
{{Internal|Kubernetes_Storage_Concepts#Node_Affinity|Node Affinity}} | {{Internal|Kubernetes_Storage_Concepts#Node_Affinity|Node Affinity}} | ||
==volumeMode== | |||
==mountOptions== | |||
{{External|https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options}} |
Revision as of 22:46, 30 March 2021
External
Internal
Example
apiVersion: v1 kind: PersistentVolume metadata: name: blue spec: accessModes: - ReadWriteOnce capacity: storage: 10Gi # local volumes only support "Retain" persistentVolumeReclaimPolicy: Retain storageClassName: local-storage local: path: /mnt/disks/vol1 volumeMode: mountOptions: nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: kubernetes.io/hostname operator: In values: - my-node