PodAffinityTermV1.Namespaces 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.
The Namespaces property represents a list of strings that define the specific namespaces within which the label selector or namespace selector should apply. This property is particularly useful when specifying criteria for selecting pods or other Kubernetes resources constrained to particular namespaces.
[YamlDotNet.Serialization.YamlMember(Alias="namespaces")]
public System.Collections.Generic.List<string> Namespaces { get; }
[<YamlDotNet.Serialization.YamlMember(Alias="namespaces")>]
member this.Namespaces : System.Collections.Generic.List<string>
Public ReadOnly Property Namespaces As List(Of String)
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute
Remarks
If the Namespaces property is null or empty, the selector will apply across all namespaces. This property enables fine-grained control over resource selection within the Kubernetes environment.