PodSpecV1.HostNetwork Property

Definition

Gets or sets a value indicating whether the pod uses the host network namespace. If set to true, the pod will have access to the host's network interfaces and IP. This is useful for applications requiring access to the host network but can have implications for security and network isolation.

[YamlDotNet.Serialization.YamlMember(Alias="hostNetwork")]
public bool? HostNetwork { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="hostNetwork")>]
member this.HostNetwork : Nullable<bool> with get, set
Public Property HostNetwork As Nullable(Of Boolean)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to