Update local storage docs for beta (#7473)
This commit is contained in:
committed by
zacharysarah
parent
6bace2fa47
commit
8047477dfc
@@ -520,6 +520,7 @@ kind: PersistentVolume
|
|||||||
metadata:
|
metadata:
|
||||||
name: example-pv
|
name: example-pv
|
||||||
spec:
|
spec:
|
||||||
|
<<<<<<< HEAD
|
||||||
capacity:
|
capacity:
|
||||||
storage: 100Gi
|
storage: 100Gi
|
||||||
# volumeMode field requires BlockVolume Alpha feature gate to be enabled.
|
# volumeMode field requires BlockVolume Alpha feature gate to be enabled.
|
||||||
@@ -538,8 +539,36 @@ spec:
|
|||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- example-node
|
- example-node
|
||||||
|
||||||| merged common ancestors
|
||||||
|
capacity:
|
||||||
|
storage: 100Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
persistentVolumeReclaimPolicy: Delete
|
||||||
|
storageClassName: local-storage
|
||||||
|
local:
|
||||||
|
path: /mnt/disks/ssd1
|
||||||
|
=======
|
||||||
|
capacity:
|
||||||
|
storage: 100Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
persistentVolumeReclaimPolicy: Delete
|
||||||
|
storageClassName: local-storage
|
||||||
|
local:
|
||||||
|
path: /mnt/disks/ssd1
|
||||||
|
nodeAffinity:
|
||||||
|
required:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: kubernetes.io/hostname
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- example-node
|
||||||
|
>>>>>>> Update local storage docs for beta (#7473)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
PersistentVolume `nodeAffinity` is required when using local volumes. It enables
|
PersistentVolume `nodeAffinity` is required when using local volumes. It enables
|
||||||
the Kubernetes scheduler to correctly schedule pods using local volumes to the
|
the Kubernetes scheduler to correctly schedule pods using local volumes to the
|
||||||
correct node.
|
correct node.
|
||||||
@@ -547,6 +576,14 @@ correct node.
|
|||||||
PersistentVolume `volumeMode` can now be set to "Block" (instead of the default
|
PersistentVolume `volumeMode` can now be set to "Block" (instead of the default
|
||||||
value "Filesystem") to expose the local volume as a raw block device. The
|
value "Filesystem") to expose the local volume as a raw block device. The
|
||||||
`volumeMode` field requires `BlockVolume` Alpha feature gate to be enabled.
|
`volumeMode` field requires `BlockVolume` Alpha feature gate to be enabled.
|
||||||
|
||||||| merged common ancestors
|
||||||
|
**Note:** The local PersistentVolume cleanup and deletion requires manual intervention without the external provisioner.
|
||||||
|
{: .note}
|
||||||
|
=======
|
||||||
|
PersistentVolume `nodeAffinity` is required when using local volumes. It enables
|
||||||
|
the Kubernetes scheduler to correctly schedule pods using local volumes to the
|
||||||
|
correct node.
|
||||||
|
>>>>>>> Update local storage docs for beta (#7473)
|
||||||
|
|
||||||
When using local volumes, it is recommended to create a StorageClass with
|
When using local volumes, it is recommended to create a StorageClass with
|
||||||
`volumeBindingMode` set to `WaitForFirstConsumer`. See the
|
`volumeBindingMode` set to `WaitForFirstConsumer`. See the
|
||||||
|
|||||||
Reference in New Issue
Block a user