Selector Struct
Fargate profile selector.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';
const selector: eks.Selector = {
namespace: 'namespace',
// the properties below are optional
labels: {
labelsKey: 'labels',
},
};
Properties
labelsoptional{ [key: string]: string }labelsoptionaltyping.Mapping[str, str]labelsoptionalMap<String, String>LabelsoptionalIDictionary<string, string>Labelsoptional*map[string]*string#The Kubernetes labels that the selector should match.
Default: all pods within the namespace will be selected.
A pod must contain all of the labels that are specified in the selector for it to be considered a match.
The Kubernetes namespace that the selector should match.
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.