kubernetes v1.33

PodTemplate.template.spec.hostAliases

HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.

2 fields
PodTemplate.template.spec.hostAliases fields and descriptions
Field / TypeDescription
string[]

Hostnames for the above IP address.

  • x-kubernetes-list-type: "atomic"
ip
string required

IP address of the host file entry.