KubernetesManifestProps

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

Bases: object

(experimental) Properties for KubernetesManifest.

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

  • manifest (List[Any]) – (experimental) 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

experimental

Attributes

cluster

(experimental) The EKS cluster to apply this manifest to.

[disable-awslint:ref-via-interface]

Stability

experimental

Return type

ICluster

manifest

(experimental) 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

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]