Skip to content

Commit 85c21ed

Browse files
authored
Merge pull request #114 from AngryDeveloper/inject-hostaliases-actionrunner
Allow injecting of hostAliases in the actionrunner deployment
2 parents db55716 + c2b563e commit 85c21ed

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## In Development
44
* Change ingress name from `<release name>-ingress` to <release name>-st2web-ingress, useful when using `stackstorm-ha` as a requirement for another chart. (#112) (by @erenatas)
55
* Fix st2web ingress which should have been defined as an Integer instead of a String (#111) (by @erenatas)
6+
* Add an option to inject hostAliases in the st2actionrunner containers (#114)
67

78
## v0.24.0
89
* Fix st2web ingress to use `/` path by default instead of `/*`, useful for nginx ingress controller (#103) (by @erenatas)

templates/deployments.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,10 @@ spec:
947947
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
948948
checksum/ssh: {{ include (print $.Template.BasePath "/secrets_ssh.yaml") . | sha256sum }}
949949
spec:
950+
{{- if .Values.st2actionrunner.hostAliases }}
951+
hostAliases:
952+
{{ toYaml .Values.st2actionrunner.hostAliases | indent 8 }}
953+
{{- end }}
950954
imagePullSecrets:
951955
{{- if .Values.enterprise.enabled }}
952956
- name: {{ .Release.Name }}-st2-license

values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,16 @@ st2actionrunner:
313313
nodeSelector: {}
314314
tolerations: []
315315
affinity: {}
316+
# Allow the injection of hostAliases (https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/#adding-additional-entries-with-hostaliases)
317+
# records in the st2actionrunner containers to handle edge case in DNS accessibility/topology
318+
hostAliases: []
319+
# - hostnames:
320+
# - foo
321+
# ip: 1.1.1.1
322+
# - hostnames:
323+
# - bar
324+
# ip: 8.8.8.8
325+
316326
# https://docs.stackstorm.com/reference/ha.html#st2garbagecollector
317327
# Optional service that cleans up old executions and other operations data based on setup configurations.
318328
# By default this process does nothing and needs to be setup in st2.conf to perform any work.

0 commit comments

Comments
 (0)