Fix nodeSelector for local volumes in blog post (#8507)

This commit is contained in:
Matthias Loibl
2018-05-23 01:05:25 +02:00
committed by k8s-ci-robot
parent c4f92128df
commit b065ecd5f4
@@ -71,7 +71,8 @@ spec:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values: my-node
values:
- my-node
```
Note that theres a new nodeAffinity field in the PersistentVolume object: this is how the Kubernetes scheduler understands that this PersistentVolume is tied to a specific node. nodeAffinity is a required field for local PersistentVolumes.