Share via


PodAffinityTermV1.Namespaces Property

Definition

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.

Applies to