PodSpecV1.HostNetwork Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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