Adding entries to Pod /etc/hosts with HostAliases for ID localization. (#16009)

* Adding entries to Pod /etc/hosts with HostAliases for ID localization.

* Fix language consistency based on input.

* Fix broken build.
This commit is contained in:
Irvi Aini
2019-09-29 12:39:37 +02:00
committed by Kubernetes Prow Robot
parent 38cac04b06
commit a09479928a
2 changed files with 153 additions and 0 deletions
@@ -0,0 +1,22 @@
apiVersion: v1
kind: Pod
metadata:
name: hostaliases-pod
spec:
restartPolicy: Never
hostAliases:
- ip: "127.0.0.1"
hostnames:
- "foo.local"
- "bar.local"
- ip: "10.1.2.3"
hostnames:
- "foo.remote"
- "bar.remote"
containers:
- name: cat-hosts
image: busybox
command:
- cat
args:
- "/etc/hosts"