Skip to content

Commit f2ca7dc

Browse files
committed
Included nodeSelector, affinity and tolerations to st2client deployment
1 parent eb061b9 commit f2ca7dc

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

templates/deployments.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,6 +1599,15 @@ spec:
15991599
- name: st2-post-start-script-vol
16001600
configMap:
16011601
name: {{ .Release.Name }}-st2client-post-start-script
1602+
{{- with .Values.st2client.nodeSelector }}
1603+
nodeSelector: {{- toYaml . | nindent 8 }}
1604+
{{- end }}
1605+
{{- with .Values.st2client.affinity }}
1606+
affinity: {{- toYaml . | nindent 8 }}
1607+
{{- end }}
1608+
{{- with .Values.st2client.tolerations }}
1609+
tolerations: {{- toYaml . | nindent 8 }}
1610+
{{- end }}
16021611

16031612
{{ if .Values.st2chatops.enabled -}}
16041613
---

values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,10 @@ st2client:
641641
## Note that Helm templating is supported in 'mount' and 'volume'
642642
extra_volumes: []
643643
# see examples under st2actionrunner.extra_volumes
644+
# Additional advanced settings to control pod/deployment placement
645+
nodeSelector: {}
646+
tolerations: []
647+
affinity: {}
644648

645649
# https://docs.stackstorm.com/reference/ha.html#st2garbagecollector
646650
# Optional service that cleans up old executions and other operations data based on setup configurations.

0 commit comments

Comments
 (0)