Skip to content

Commit

Permalink
feat: Add support for setting hostAliases for the rasa-x deployment (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Czekajlo authored Jan 24, 2022
1 parent 264fcd1 commit 8102a33
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/rasa-x/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v2

version: "4.2.0"
version: "4.3.0"

appVersion: "1.0.1"

Expand Down Expand Up @@ -42,4 +42,4 @@ annotations:
# See: https://artifacthub.io/docs/topics/annotations/helm/#supported-annotations
artifacthub.io/changes: |
- kind: added
description: Add support for changing value of the RASA_X_HOST environment variable defined in the rasa-x deployment
description: Add support for setting hostAliases for the rasa-x deployment
4 changes: 4 additions & 0 deletions charts/rasa-x/templates/rasa-x-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ spec:
checksum/rasa-x-config: {{ include (print $.Template.BasePath "/rasa-x-config-files-configmap.yaml") . | sha256sum }}
checksum/rasa-secret: {{ include (print $.Template.BasePath "/rasa-secret.yaml") . | sha256sum }}
spec:
{{- if .Values.rasax.hostAliases }}
hostAliases:
{{ toYaml .Values.rasax.hostAliases | indent 6 }}
{{- end }}
hostNetwork: {{ .Values.rasax.hostNetwork }}
dnsPolicy: {{ include "rasa-x.dnsPolicy" . }}
automountServiceAccountToken: {{ .Values.rasax.automountServiceAccountToken }}
Expand Down
4 changes: 4 additions & 0 deletions charts/rasa-x/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ rasax:
# ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
dnsPolicy: ""

# hostAliases defines additional entries to the hosts file.
# ref: https://kubernetes.io/docs/tasks/network/customize-hosts-file-for-pods/#adding-additional-entries-with-hostaliases
hostAliases: {}

# overrideHost overrides values of the RASA_X_HOST variable defined for the deployment
overrideHost: ""

Expand Down

0 comments on commit 8102a33

Please sign in to comment.