Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
allow the modification of the hosts file inside a container
Browse files Browse the repository at this point in the history
  • Loading branch information
Veselin Iordanov authored and diemol committed Sep 2, 2019
1 parent aa16f95 commit 80aee2c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/zalenium/templates/_pod-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ spec:
mountPath: /home/seluser/videos
- name: {{ template "zalenium.fullname" . }}-data
mountPath: /tmp/mounted
{{- if .Values.hostAliases }}
hostAliases:
{{ toYaml .Values.hostAliases | indent 4 }}
{{- end }}
serviceAccountName: {{ template "zalenium.serviceAccountName" . }}
{{- if .Values.nodeSelector.enabled }}
nodeSelector:
Expand Down
6 changes: 6 additions & 0 deletions charts/zalenium/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,9 @@ nodeSelector:
# values:
# - <key-value>
# topologyKey: "kubernetes.io/hostname"
## hostAliases allow the modification of the hosts file inside a container
##
hostAliases: []
# - ip: "127.0.0.1"
# hostnames:
# - "cosbench.local"

0 comments on commit 80aee2c

Please # to comment.