Skip to content

Commit

Permalink
update affinity for volume
Browse files Browse the repository at this point in the history
  • Loading branch information
antonovchtd committed Nov 17, 2022
1 parent ba9c3c9 commit c2a7b8c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wproofreader/templates/volumes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ spec:
- ReadWriteMany
local:
path: {{ .Values.dictionaries.localPath }}
{{- .Values.affinity | toYaml | replace "requiredDuringSchedulingIgnoredDuringExecution" "required" | nindent 2 }}
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: {{ .Values.affinityLabel }}
operator: Exists

---
apiVersion: v1
Expand Down

0 comments on commit c2a7b8c

Please sign in to comment.