import { Karpenter } from 'cdk-eks-karpenter'
new Karpenter(scope: Construct, id: string, props: KarpenterProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
KarpenterProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: KarpenterProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
addEC2NodeClass |
addEC2NodeClass adds a EC2NodeClass to the Karpenter configuration. |
addManagedPolicyToKarpenterRole |
addManagedPolicyToKarpenterRole adds Managed Policies To Karpenter Role. |
addNodePool |
addNodePool adds a NodePool to the Karpenter configuration. |
addNodeTemplate |
addNodeTemplate adds a node template manifest to the cluster. |
addProvisioner |
addProvisioner adds a provisioner manifest to the cluster. |
public toString(): string
Returns a string representation of this construct.
public addEC2NodeClass(id: string, ec2NodeClassSpec: {[ key: string ]: any}): {[ key: string ]: any}
addEC2NodeClass adds a EC2NodeClass to the Karpenter configuration.
- Type: string
must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character.
- Type: {[ key: string ]: any}
spec of Karpenters EC2NodeClass API.
public addManagedPolicyToKarpenterRole(managedPolicy: IManagedPolicy): void
addManagedPolicyToKarpenterRole adds Managed Policies To Karpenter Role.
- Type: aws-cdk-lib.aws_iam.IManagedPolicy
iam managed policy to add to the karpenter role.
public addNodePool(id: string, nodePoolSpec: {[ key: string ]: any}): {[ key: string ]: any}
addNodePool adds a NodePool to the Karpenter configuration.
- Type: string
must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character.
- Type: {[ key: string ]: any}
spec of Karpenters NodePool API.
public addNodeTemplate(id: string, nodeTemplateSpec: {[ key: string ]: any}): void
addNodeTemplate adds a node template manifest to the cluster.
Currently the node template spec parameter is relatively free form.
- Type: string
must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character.
- Type: {[ key: string ]: any}
spec of Karpenters Node Template object.
public addProvisioner(id: string, provisionerSpec: {[ key: string ]: any}): void
addProvisioner adds a provisioner manifest to the cluster.
Currently the provisioner spec parameter is relatively free form.
- Type: string
must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character.
- Type: {[ key: string ]: any}
spec of Karpenters Provisioner object.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { Karpenter } from 'cdk-eks-karpenter'
Karpenter.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
cluster |
aws-cdk-lib.aws_eks.Cluster |
No description. |
helmExtraValues |
any |
No description. |
namespace |
string |
No description. |
nodeRole |
aws-cdk-lib.aws_iam.Role |
No description. |
serviceAccountName |
string |
No description. |
version |
string |
No description. |
helmChartValues |
{[ key: string ]: any} |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly cluster: Cluster;
- Type: aws-cdk-lib.aws_eks.Cluster
public readonly helmExtraValues: any;
- Type: any
public readonly namespace: string;
- Type: string
public readonly nodeRole: Role;
- Type: aws-cdk-lib.aws_iam.Role
public readonly serviceAccountName: string;
- Type: string
public readonly version: string;
- Type: string
public readonly helmChartValues: {[ key: string ]: any};
- Type: {[ key: string ]: any}
import { KarpenterProps } from 'cdk-eks-karpenter'
const karpenterProps: KarpenterProps = { ... }
Name | Type | Description |
---|---|---|
cluster |
aws-cdk-lib.aws_eks.Cluster |
The EKS Cluster to attach to. |
version |
string |
The helm chart version to install. |
helmExtraValues |
{[ key: string ]: any} |
Extra values to pass to the Karpenter Helm chart. |
namespace |
string |
The Kubernetes namespace to install to. |
nodeRole |
aws-cdk-lib.aws_iam.Role |
Custom NodeRole to pass for Karpenter Nodes. |
serviceAccountName |
string |
The Kubernetes ServiceAccount name to use. |
public readonly cluster: Cluster;
- Type: aws-cdk-lib.aws_eks.Cluster
The EKS Cluster to attach to.
public readonly version: string;
- Type: string
- Default: latest
The helm chart version to install.
public readonly helmExtraValues: {[ key: string ]: any};
- Type: {[ key: string ]: any}
Extra values to pass to the Karpenter Helm chart.
public readonly namespace: string;
- Type: string
- Default: karpenter
The Kubernetes namespace to install to.
public readonly nodeRole: Role;
- Type: aws-cdk-lib.aws_iam.Role
Custom NodeRole to pass for Karpenter Nodes.
public readonly serviceAccountName: string;
- Type: string
- Default: karpenter
The Kubernetes ServiceAccount name to use.