karpenter-crds

by Snowplow

Helm chartv0.1.0App 1.13.0Verified publisher

Karpenter CRDs Helm chart for Kubernetes

About this chart

karpenter-crds

A helm chart for the custom resource definitions behind Karpenter. This allows the CRDs to be installed with Helm and avoids needing to use kubectl to install the resource definitions, which is important for a fully automated deployment with IaC tooling like Terraform.

The CRDs are stored under templates/ so they render as regular manifest chunks that are compatible with helm template consumers (e.g. Terraform data "helm_template"). They are pulled entirely from the upstream Karpenter chart: https://github.com/aws/karpenter-provider-aws/tree/main/charts/karpenter/crds

Installing the Chart

Add the repository to Helm:

helm repo add snowplow-devops https://snowplow-devops.github.io/helm-charts

Install or upgrade the chart:

helm upgrade --install karpenter-crds --namespace karpenter snowplow-devops/karpenter-crds --create-namespace

Uninstalling the Chart

To uninstall/delete the karpenter-crds release:

helm delete karpenter-crds --namespace karpenter

Note: Because the CRDs are stored under templates/, deleting this release will also delete the CRDs and any custom resources that use them.

Deploy karpenter-crds with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has karpenter-crds on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkarpenter-crds is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply