Skip to content

Commit

Permalink
Merge pull request #172 from madorn/patch-1
Browse files Browse the repository at this point in the history
add nodeAffinity rule to inline volume example
  • Loading branch information
k8s-ci-robot authored Apr 14, 2020
2 parents 8a66919 + 55ac22a commit 448a28b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion examples/csi-app-inline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ apiVersion: v1
metadata:
name: my-csi-app-inline
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: topology.hostpath.csi/node
operator: Exists
containers:
- name: my-frontend
image: busybox
Expand All @@ -13,4 +20,4 @@ spec:
volumes:
- name: my-csi-volume
csi:
driver: hostpath.csi.k8s.io
driver: hostpath.csi.k8s.io

0 comments on commit 448a28b

Please sign in to comment.