Share via


HostAliasV1 Class

Definition

Represents a host alias configuration which maps an IP address to a set of hostnames. This is used for specifying additional host entries in a pod's /etc/hosts file.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class HostAliasV1
[<YamlDotNet.Serialization.YamlSerializable>]
type HostAliasV1 = class
Public NotInheritable Class HostAliasV1
Inheritance
HostAliasV1
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Constructors

HostAliasV1()

Properties

Hostnames

Represents a collection of hostnames associated with a specific IP address. This property contains a list of hostnames used for defining aliases.

Ip

Gets or sets the IP address associated with the HostAlias in the Kubernetes resource definition.

Applies to