Selector

class aws_cdk.aws_eks.Selector(*, namespace, labels=None)

Bases: object

__init__(*, namespace, labels=None)

Fargate profile selector.

Parameters
  • namespace (str) – 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.

  • labels (Optional[Mapping[str, str]]) – The Kubernetes labels that the selector should match. 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 :stability: experimental

Attributes

labels

The Kubernetes labels that the selector should match.

A pod must contain all of the labels that are specified in the selector for it to be considered a match.

default :default: - all pods within the namespace will be selected.

stability :stability: experimental

Return type

Optional[Mapping[str, str]]

namespace

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.

stability :stability: experimental

Return type

str