UNPKG

@lbrlabs/pulumi-eks

Version:

This repo provides a [multi-language](https://www.pulumi.com/blog/pulumiup-pulumi-packages-multi-language-components/) component that creates a "batteries included" cluster ready for you to attach your EKS nodes to.

162 lines (161 loc) 5.27 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as pulumiAws from "@pulumi/aws"; export declare class Cluster extends pulumi.ComponentResource { /** * Returns true if the given object is an instance of Cluster. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Cluster; /** * The cluster name */ readonly clusterName: pulumi.Output<string>; /** * The Cluster control plane */ readonly controlPlane: pulumi.Output<pulumiAws.eks.Cluster>; /** * The role created for karpenter nodes. */ readonly karpenterNodeRole: pulumi.Output<pulumiAws.iam.Role | undefined>; /** * Name of the SQS queue that Karpenter uses for interruption events. */ readonly karpenterQueueName: pulumi.Output<string | undefined>; /** * The kubeconfig for this cluster. */ readonly kubeconfig: pulumi.Output<string>; /** * The OIDC provider for this cluster. */ readonly oidcProvider: pulumi.Output<pulumiAws.iam.OpenIdConnectProvider>; /** * The system node group. */ readonly systemNodes: pulumi.Output<pulumiAws.eks.NodeGroup>; /** * Create a Cluster resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ClusterArgs, opts?: pulumi.ComponentResourceOptions); } /** * The set of arguments for constructing a Cluster resource. */ export interface ClusterArgs { /** * The ARN of the AWS principal that should get admin access. */ adminAccessPrincipal?: pulumi.Input<string>; /** * The version of the cert-manager helm chart to deploy. */ certManagerVersion?: pulumi.Input<string>; /** * The ARN of the certificate to use for the ingress controller. */ certificateArn?: pulumi.Input<string>; /** * Indicates whether or not the Amazon EKS private API server endpoint is enabled. */ clusterEndpointPrivateAccess?: pulumi.Input<boolean>; /** * Indicates whether or not the Amazon EKS public API server endpoint is enabled. */ clusterEndpointPublicAccess?: pulumi.Input<boolean>; clusterSubnetIds: pulumi.Input<pulumi.Input<string>[]>; /** * The version of the EKS cluster to create. */ clusterVersion?: pulumi.Input<string>; /** * The version of the eks-iam-auth-controller helm chart to deploy. */ eksIamAuthControllerVersion?: pulumi.Input<string>; /** * Whether to enable cert-manager with route 53 integration. */ enableCertManager?: boolean; /** * Whether to enable cloudwatch container insights for EKS. */ enableCloudWatchAgent?: boolean; /** * Whether to enable external dns with route 53 integration. */ enableExternalDns?: boolean; /** * Whether to create an ingress controller for external traffic. */ enableExternalIngress?: boolean; /** * Whether to create an ingress controller for internal traffic. */ enableInternalIngress?: boolean; /** * Whether to enable karpenter. */ enableKarpenter?: boolean; /** * Whether to enable the OTEL Distro for EKS. */ enableOtel?: boolean; enabledClusterLogTypes?: pulumi.Input<pulumi.Input<string>[]>; /** * The version of the external-dns helm chart to deploy. */ externalDNSVersion?: pulumi.Input<string>; /** * Configuration for the ingress controller. */ ingressConfig?: pulumi.Input<inputs.IngressConfigArgs>; /** * The version of karpenter to deploy. */ karpenterVersion?: pulumi.Input<string>; /** * The type of loadbalancer to provision. */ lbType?: pulumi.Input<string>; /** * The email address to use to issue certificates from Lets Encrypt. */ letsEncryptEmail?: string; /** * The container registry to pull images from. */ nginxIngressRegistry?: pulumi.Input<string>; /** * The tag to use for the nginx ingress controller images. */ nginxIngressTag?: pulumi.Input<string>; /** * The version of the nginx ingress controller helm chart to deploy. */ nginxIngressVersion?: pulumi.Input<string>; /** * The initial number of nodes in the system autoscaling group. */ systemNodeDesiredCount?: pulumi.Input<number>; systemNodeInstanceTypes?: pulumi.Input<pulumi.Input<string>[]>; /** * The maximum number of nodes in the system autoscaling group. */ systemNodeMaxCount?: pulumi.Input<number>; /** * The minimum number of nodes in the system autoscaling group. */ systemNodeMinCount?: pulumi.Input<number>; systemNodeSubnetIds: pulumi.Input<pulumi.Input<string>[]>; /** * Key-value map of tags to apply to the cluster. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; }