Skip to content

Commit d63c4a9

Browse files
authored
Merge pull request #263 from sandesvitor/feature/add-nodeselector-st2client
Included nodeSelector, affinity and tolerations to st2client deployment
2 parents eb061b9 + 9b63cf8 commit d63c4a9

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* Some `helm upgrades` do not need to run all the jobs. An upgrade that only touches RBAC config, for example, does not need to run the register-content job. Use `--set 'jobs.skip={apikey_load,key_load,register_content}'` to skip the other jobs. (#255) (by @cognifloyd)
1212
* Refactor deployments/jobs to inject st2 username/password via `envFrom` instead of via `env`. (#257) (by @cognifloyd)
1313
* New feature: Add `envFromSecrets` to `st2actionrunner`, `st2client`, `st2sensorcontainer`, and jobs. This is useful for adding custom secrets to the environment. This complements the `extra_volumes` feature (loading secrets as files) to facilitate loading secrets that are not easily injected via the filesystem. (#259) (by @cognifloyd)
14+
* New feature to include `nodeSelector`, `affinity` and `tolerations` to `st2client`, allowing more flexibility to pod positioning. (#263) (by @sandesvitor)
1415

1516
## v0.70.0
1617
* New feature: Shared packs volumes `st2.packs.volumes`. Allow using cluster-specific persistent volumes to store packs, virtualenvs, and (optionally) configs. This enables using `st2 pack install`. It even works with `st2packs` images in `st2.packs.images`. (#199) (by @cognifloyd)

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)