Allow rule workers on the small workload node
Build and publish rule engine / release (push) Successful in 2m34s
Build and publish rule engine / release (push) Successful in 2m34s
This commit is contained in:
@@ -26,6 +26,27 @@ spec:
|
|||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: {{ . | quote }}
|
- name: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.pod.tolerations }}
|
||||||
|
tolerations: {{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
podAffinityTerm:
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: {{ .Chart.Name }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
topologySpreadConstraints:
|
||||||
|
- maxSkew: 1
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
whenUnsatisfiable: ScheduleAnyway
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: {{ .Chart.Name }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
containers:
|
containers:
|
||||||
- name: rule-engine
|
- name: rule-engine
|
||||||
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
|
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
|
||||||
|
|||||||
@@ -8,6 +8,12 @@ deployment:
|
|||||||
maxSurge: 1
|
maxSurge: 1
|
||||||
minReadySeconds: 5
|
minReadySeconds: 5
|
||||||
progressDeadlineSeconds: 600
|
progressDeadlineSeconds: 600
|
||||||
|
pod:
|
||||||
|
tolerations:
|
||||||
|
- key: workload-tier
|
||||||
|
operator: Equal
|
||||||
|
value: small
|
||||||
|
effect: NoSchedule
|
||||||
service:
|
service:
|
||||||
port: 8080
|
port: 8080
|
||||||
nats:
|
nats:
|
||||||
|
|||||||
Reference in New Issue
Block a user