Skip to content

Commit

Permalink
Merge pull request #152 from erost/feat/add-host-aliases
Browse files Browse the repository at this point in the history
feat(hostAliases): enable configuring hostAliases in rasa components
  • Loading branch information
miraai authored Aug 22, 2023
2 parents d6117c5 + ff7c001 commit c024b3b
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/rasa-action-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.7
version: 1.0.8
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
4 changes: 4 additions & 0 deletions charts/rasa-action-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.hostAliases }}
hostAliases:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
Expand Down
6 changes: 6 additions & 0 deletions charts/rasa-action-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ applicationSettings:
# -- Specify the number of Action Server replicas
replicaCount: 1

# -- Specify the hostAliases of the Action Server pods
hostAliases: []
# - ip: 127.0.0.1
# hostnames:
# - "localhost"

# -- Override the default arguments for the container
args: []

Expand Down
2 changes: 1 addition & 1 deletion charts/rasa/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.17.6
version: 1.17.7
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
4 changes: 4 additions & 0 deletions charts/rasa/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.hostAliases }}
hostAliases:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
Expand Down
6 changes: 6 additions & 0 deletions charts/rasa/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ applicationSettings:
# -- Specify the number of Rasa Open Source replicas
replicaCount: 1

# -- Specify the hostAliases of Rasa Open Source pods
hostAliases: []
# - ip: 127.0.0.1
# hostnames:
# - "localhost"

networkPolicy:
# -- Enable Kubernetes Network Policy
enabled: false
Expand Down

0 comments on commit c024b3b

Please sign in to comment.