@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:18.575Z") @Stability(value=Experimental) public interface ClusterOptions extends software.amazon.jsii.JsiiSerializable, CommonClusterOptions
| Modifier and Type | Interface and Description |
|---|---|
static class |
ClusterOptions.Builder
A builder for
ClusterOptions |
static class |
ClusterOptions.Jsii$Proxy
An implementation for
ClusterOptions |
| Modifier and Type | Method and Description |
|---|---|
static ClusterOptions.Builder |
builder() |
default Map<String,String> |
getClusterHandlerEnvironment()
(experimental) Custom environment variables when interacting with the EKS endpoint to manage the cluster lifecycle.
|
default CoreDnsComputeType |
getCoreDnsComputeType()
(experimental) Controls the "eks.amazonaws.com/compute-type" annotation in the CoreDNS configuration on your cluster to determine which compute type to use for CoreDNS.
|
default EndpointAccess |
getEndpointAccess()
(experimental) Configure access to the Kubernetes API server endpoint..
|
default Map<String,String> |
getKubectlEnvironment()
(experimental) Environment variables for the kubectl execution.
|
default ILayerVersion |
getKubectlLayer()
(experimental) An AWS Lambda Layer which includes `kubectl`, Helm and the AWS CLI.
|
default Size |
getKubectlMemory()
(experimental) Amount of memory to allocate to the provider's lambda function.
|
default IRole |
getMastersRole()
(experimental) An IAM role that will be added to the `system:masters` Kubernetes RBAC group.
|
default Boolean |
getOutputMastersRoleArn()
(experimental) Determines whether a CloudFormation output with the ARN of the "masters" IAM role will be synthesized (if `mastersRole` is specified).
|
default Boolean |
getPlaceClusterHandlerInVpc()
(experimental) If set to true, the cluster handler functions will be placed in the private subnets of the cluster vpc, subject to the `vpcSubnets` selection strategy.
|
default Boolean |
getPrune()
(experimental) Indicates whether Kubernetes resources added through `addManifest()` can be automatically pruned.
|
default IKey |
getSecretsEncryptionKey()
(experimental) KMS secret for envelope encryption for Kubernetes secrets.
|
getClusterName, getOutputClusterName, getOutputConfigCommand, getRole, getSecurityGroup, getVersion, getVpc, getVpcSubnets@Stability(value=Experimental) @Nullable default Map<String,String> getClusterHandlerEnvironment()
Default: - No environment variables.
@Stability(value=Experimental) @Nullable default CoreDnsComputeType getCoreDnsComputeType()
Default: CoreDnsComputeType.EC2 (for `FargateCluster` the default is FARGATE)
@Stability(value=Experimental) @Nullable default EndpointAccess getEndpointAccess()
Default: EndpointAccess.PUBLIC_AND_PRIVATE
https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html@Stability(value=Experimental) @Nullable default Map<String,String> getKubectlEnvironment()
Only relevant for kubectl enabled clusters.
Default: - No environment variables.
@Stability(value=Experimental) @Nullable default ILayerVersion getKubectlLayer()
By default, the provider will use the layer included in the "aws-lambda-layer-kubectl" SAR application which is available in all commercial regions.
To deploy the layer locally, visit https://github.com/aws-samples/aws-lambda-layer-kubectl/blob/master/cdk/README.md for instructions on how to prepare the .zip file and then define it in your app as follows:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
LayerVersion layer = new LayerVersion(this, "kubectl-layer", new LayerVersionProps()
.code(lambda.Code.fromAsset(String.format("%s/layer.zip", __dirname))));
Object compatibleRuntimes;
Default: - the layer provided by the `aws-lambda-layer-kubectl` SAR app.
https://github.com/aws-samples/aws-lambda-layer-kubectl@Stability(value=Experimental) @Nullable default Size getKubectlMemory()
Default: Size.gibibytes(1)
@Stability(value=Experimental) @Nullable default IRole getMastersRole()
Default: - a role that assumable by anyone with permissions in the same account will automatically be defined
https://kubernetes.io/docs/reference/access-authn-authz/rbac/#default-roles-and-role-bindings@Stability(value=Experimental) @Nullable default Boolean getOutputMastersRoleArn()
Default: false
@Stability(value=Experimental) @Nullable default Boolean getPlaceClusterHandlerInVpc()
Default: false
@Stability(value=Experimental) @Nullable default Boolean getPrune()
When this is enabled (default), prune labels will be
allocated and injected to each resource. These labels will then be used
when issuing the kubectl apply operation with the --prune switch.
Default: true
@Stability(value=Experimental) @Nullable default IKey getSecretsEncryptionKey()
Default: - By default, Kubernetes stores all secret object data within etcd and all etcd volumes used by Amazon EKS are encrypted at the disk-level using AWS-Managed encryption keys.
@Stability(value=Experimental) static ClusterOptions.Builder builder()
builder in interface CommonClusterOptionsClusterOptions.Builder of ClusterOptionsCopyright © 2021. All rights reserved.