KubernetesManifestProps

class aws_cdk.aws_eks.KubernetesManifestProps(*, cluster, manifest)

Bases: object

Properties for KubernetesManifest.

Parameters
  • cluster (ICluster) – The EKS cluster to apply this manifest to. [disable-awslint:ref-via-interface]

  • manifest (List[Any]) – The manifest to apply. Consists of any number of child resources. When the resources are created/updated, this manifest will be applied to the cluster through kubectl apply and when the resources or the stack is deleted, the resources in the manifest will be deleted through kubectl delete.

stability :stability: experimental

Attributes

cluster

The EKS cluster to apply this manifest to.

[disable-awslint:ref-via-interface]

stability :stability: experimental

Return type

ICluster

manifest

The manifest to apply.

Consists of any number of child resources.

When the resources are created/updated, this manifest will be applied to the cluster through kubectl apply and when the resources or the stack is deleted, the resources in the manifest will be deleted through kubectl delete.

stability :stability: experimental

Example:

# Example automatically generated. See https://github.com/aws/jsii/issues/826
[{
    "api_version": "v1",
    "kind": "Pod",
    "metadata": {"name": "mypod"},
    "spec": {
        "containers": [{"name": "hello", "image": "paulbouwer/hello-kubernetes:1.5", "ports": [{"container_port": 8080}]}]
    }
}]
Return type

List[Any]