Skip to content

Commit

Permalink
Update local storage docs for beta (#7473)
Browse files Browse the repository at this point in the history
  • Loading branch information
msau42 authored and zacharysarah committed Apr 16, 2018
1 parent 6bace2f commit 8047477
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions docs/concepts/storage/volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ kind: PersistentVolume
metadata:
name: example-pv
spec:
<<<<<<< HEAD
capacity:
storage: 100Gi
# volumeMode field requires BlockVolume Alpha feature gate to be enabled.
Expand All @@ -538,15 +539,51 @@ spec:
operator: In
values:
- 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
the Kubernetes scheduler to correctly schedule pods using local volumes to the
correct node.

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
`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
`volumeBindingMode` set to `WaitForFirstConsumer`. See the
Expand Down

0 comments on commit 8047477

Please sign in to comment.