From c2a7b8c4735002c1099e2c445cdae34bc640aa09 Mon Sep 17 00:00:00 2001 From: Anton Ovcharenko Date: Thu, 17 Nov 2022 22:33:10 +0200 Subject: [PATCH] update affinity for volume --- wproofreader/templates/volumes.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wproofreader/templates/volumes.yaml b/wproofreader/templates/volumes.yaml index f962000..88df3fc 100644 --- a/wproofreader/templates/volumes.yaml +++ b/wproofreader/templates/volumes.yaml @@ -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