Kubernetes Persistent Volume Manifest
Jump to navigation
Jump to search
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