Add nodeAffinity for mixed clusters
This commit is contained in:
@@ -46,6 +46,19 @@ spec:
|
|||||||
heritage: "{{ .Release.Service }}"
|
heritage: "{{ .Release.Service }}"
|
||||||
QM_IDENTIFIER: "{{ .Release.Name }}"
|
QM_IDENTIFIER: "{{ .Release.Name }}"
|
||||||
spec:
|
spec:
|
||||||
|
affinity:
|
||||||
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: beta.kubernetes.io/arch
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- amd64
|
||||||
|
- key: beta.kubernetes.io/os
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- linux
|
||||||
{{- if .Values.image.pullSecret }}
|
{{- if .Values.image.pullSecret }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: {{ .Values.image.pullSecret }}
|
- name: {{ .Values.image.pullSecret }}
|
||||||
|
|||||||
@@ -46,6 +46,19 @@ spec:
|
|||||||
heritage: "{{ .Release.Service }}"
|
heritage: "{{ .Release.Service }}"
|
||||||
QM_IDENTIFIER: "{{ .Release.Name }}"
|
QM_IDENTIFIER: "{{ .Release.Name }}"
|
||||||
spec:
|
spec:
|
||||||
|
affinity:
|
||||||
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: beta.kubernetes.io/arch
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- amd64
|
||||||
|
- key: beta.kubernetes.io/os
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- linux
|
||||||
{{- if .Values.image.pullSecret }}
|
{{- if .Values.image.pullSecret }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: {{ .Values.image.pullSecret }}
|
- name: {{ .Values.image.pullSecret }}
|
||||||
|
|||||||
Reference in New Issue
Block a user