Interface ISelector
(experimental) Fargate profile selector.
Namespace: Amazon.CDK.AWS.Eks.V2.Alpha
Assembly: Amazon.CDK.AWS.Eks.V2.Alpha.dll
Syntax (csharp)
public interface ISelector
Syntax (vb)
Public Interface ISelector
Remarks
Stability: Experimental
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Eks.V2.Alpha;
var selector = new Selector {
Namespace = "namespace",
// the properties below are optional
Labels = new Dictionary<string, string> {
{ "labelsKey", "labels" }
}
};
Synopsis
Properties
Labels | (experimental) The Kubernetes labels that the selector should match. |
Namespace | (experimental) The Kubernetes namespace that the selector should match. |
Properties
Labels
(experimental) The Kubernetes labels that the selector should match.
virtual IDictionary<string, string> Labels { get; }
Property Value
System.
Remarks
A pod must contain all of the labels that are specified in the selector for it to be considered a match.
Default: - all pods within the namespace will be selected.
Stability: Experimental
Namespace
(experimental) The Kubernetes namespace that the selector should match.
string Namespace { get; }
Property Value
System.
Remarks
You must specify a namespace for a selector. The selector only matches pods that are created in this namespace, but you can create multiple selectors to target multiple namespaces.
Stability: Experimental