From b065ecd5f49cdcc8397fdbbf9ea15cdb73dcc9fd Mon Sep 17 00:00:00 2001 From: Matthias Loibl Date: Wed, 23 May 2018 01:05:25 +0200 Subject: [PATCH] Fix nodeSelector for local volumes in blog post (#8507) --- .../en/blog/_posts/2018-04-13-local-persistent-volumes-beta.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/en/blog/_posts/2018-04-13-local-persistent-volumes-beta.md b/content/en/blog/_posts/2018-04-13-local-persistent-volumes-beta.md index dd89200b8b..334446f79c 100644 --- a/content/en/blog/_posts/2018-04-13-local-persistent-volumes-beta.md +++ b/content/en/blog/_posts/2018-04-13-local-persistent-volumes-beta.md @@ -71,7 +71,8 @@ spec: - matchExpressions: - key: kubernetes.io/hostname operator: In - values: my-node + values: + - my-node ``` Note that there’s 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.