Kubernetes Persistent Volume Manifest: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 15: | Line 15: | ||
storage: 10Gi | storage: 10Gi | ||
[[#persistentVolumeReclaimPolicy|persistentVolumeReclaimPolicy]]: Retain | [[#persistentVolumeReclaimPolicy|persistentVolumeReclaimPolicy]]: Retain | ||
storageClassName: local-storage | [[#storageClassName|storageClassName]]: local-storage | ||
local: | [[#local|local]]: | ||
path: /mnt/disks/vol1 | path: /mnt/disks/vol1 | ||
nodeAffinity: | [[#nodeAffinity|nodeAffinity]]: | ||
required: | required: | ||
nodeSelectorTerms: | nodeSelectorTerms: | ||
Line 36: | Line 36: | ||
==capacity== | ==capacity== | ||
{{Internal|Kubernetes_Storage_Concepts#Capacity|Capacity}} | {{Internal|Kubernetes_Storage_Concepts#Capacity|Capacity}} | ||
==storageClassName== | |||
==local== | |||
==nodeAffinity== |
Revision as of 18:05, 12 December 2019
Internal
Example
apiVersion: v1 kind: PersistentVolume metadata: name: blue spec: accessModes: - RedWriteOnce storageClassName: test capacity: storage: 10Gi persistentVolumeReclaimPolicy: Retain storageClassName: local-storage local: path: /mnt/disks/vol1 nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: kubernetes.io/hostname operator: In values: - my-node