KubernetesResourceProps

class aws_cdk.aws_eks_legacy.KubernetesResourceProps(*, cluster, manifest)

Bases: object

__init__(*, cluster, manifest)
Parameters
  • cluster (Cluster) – The EKS cluster to apply this configuration to. [disable-awslint:ref-via-interface]

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

stability :stability: deprecated

Attributes

cluster

The EKS cluster to apply this configuration to.

[disable-awslint:ref-via-interface]

stability :stability: deprecated

Return type

Cluster

manifest

The resource manifest.

Consists of any number of child resources.

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

stability :stability: deprecated

Example:

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

List[Any]