Skip to content

Commit 43c15b3

Browse files
authored
affinity stanzas in provider pods (#725)
* affinity stanzas in provider pods * fix provider affinity macro Co-authored-by: hunhoffe
1 parent d5addf9 commit 43c15b3

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

helm/openwhisk/templates/_affinity.tpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ nodeAffinity:
7373
operator: NotIn
7474
values:
7575
- {{ .Values.affinity.invokerNodeLabel }}
76-
preferredDuringSchedulingIgnoredDuringExecution:
7776
- weight: 80
7877
preference:
7978
matchExpressions:

helm/openwhisk/templates/provider-alarm-pod.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ spec:
4747
{{- else }}
4848
emptyDir: {}
4949
{{- end }}
50+
51+
{{- if .Values.affinity.enabled }}
52+
affinity:
53+
{{ include "openwhisk.affinity.provider" . | indent 8 }}
54+
{{- end }}
55+
5056
initContainers:
5157
# Wait for a controller to be up (which implies couchdb is up as well).
5258
{{ include "openwhisk.readiness.waitForController" . | indent 6 }}

helm/openwhisk/templates/provider-kafka-pod.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ spec:
3535
{{ include "openwhisk.label_boilerplate" . | indent 8 }}
3636
spec:
3737
restartPolicy: {{ .Values.providers.kafka.restartPolicy }}
38+
{{- if .Values.affinity.enabled }}
39+
affinity:
40+
{{ include "openwhisk.affinity.provider" . | indent 8 }}
41+
{{- end }}
3842
initContainers:
3943
# Wait for a controller to be up (which implies couchdb and kafka are up as well).
4044
{{ include "openwhisk.readiness.waitForController" . | indent 6 }}

0 commit comments

Comments
 (0)