Files
website/content/id/examples/service/networking/hostaliases-pod.yaml
T
Irvi Aini a09479928a 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.
2019-09-29 03:39:37 -07:00

23 lines
351 B
YAML

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"