PodSpecV1.HostAliases Property

Definition

Gets the list of HostAliasV1 objects that define custom mapping of IP addresses to hostnames. This property can be used to provide additional entries for the Pod's /etc/hosts file, enabling the Pod to resolve specified hostnames to the corresponding IP addresses without DNS.

[YamlDotNet.Serialization.YamlMember(Alias="hostAliases")]
public System.Collections.Generic.List<Aspire.Hosting.Kubernetes.Resources.HostAliasV1> HostAliases { get; }
[<YamlDotNet.Serialization.YamlMember(Alias="hostAliases")>]
member this.HostAliases : System.Collections.Generic.List<Aspire.Hosting.Kubernetes.Resources.HostAliasV1>
Public ReadOnly Property HostAliases As List(Of HostAliasV1)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to