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:
committed by
Kubernetes Prow Robot
parent
38cac04b06
commit
a09479928a
@@ -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"
|
||||
Reference in New Issue
Block a user