karpenter-crds

by arieotech

Helm chartv0.1.0App 1.14.0Apache-2.0Verified publisher

CRD-only companion chart for Karpenter 1.14.0. Installs NodePool, NodeClaim, NodeOverlay (karpenter.sh/v1alpha1), EC2NodeClass (karpenter.k8s.aws/v1), and CapacityBuffer (autoscaling.x-k8s.io/v1beta1) as Helm-managed resources so they can be versioned, upgraded, and rolled back independently of the Karpenter controller. The Arieotech fix for ArgoCD CRD drift (upstream #6847): Karpenter's own controller chart embeds static CRDs that ignore Helm values and confuse GitOps diffing — install this chart first, and use the Arieotech karpenter chart, which ships no CRDs of its own. Safe for GitOps/ArgoCD.

About this chart

karpenter-crds

CRD-only companion chart for Karpenter 1.14.0. Installs the Karpenter CustomResourceDefinitions as Helm-managed resources so they can be versioned, upgraded, and rolled back independently of the Karpenter controller.

Install this chart first, then install the karpenter controller chart — which deliberately ships no CRDs of its own, so there is nothing to toggle off.

Why a separate CRD chart?

Karpenter's own controller chart embeds its CRDs as static files under crds/. Helm never templates or upgrades files in that directory, and their contents don't reflect Helm values — which makes ArgoCD (and other GitOps tools) continuously report drift and makes CRD upgrades a manual, error-prone step. This is upstream issue #6847.

Splitting the CRDs into their own chart:

  • Fixes ArgoCD drift — CRDs are ordinary templated manifests ArgoCD can reconcile.
  • Makes CRD upgrades explicit — bump this chart's version to roll CRDs forward (or back) on their own schedule, separate from the controller rollout.
  • Protects live nodes — helm.sh/resource-policy: keep (default) stops helm uninstall from deleting the CRDs, which would cascade to deleting every live NodePool/NodeClaim and deprovision the nodes they manage.

CRDs installed

CRDGroup / VersionScope
NodePoolkarpenter.sh/v1Cluster
NodeClaimkarpenter.sh/v1Cluster
NodeOverlaykarpenter.sh/v1alpha1Cluster
EC2NodeClasskarpenter.k8s.aws/v1Cluster
CapacityBufferautoscaling.x-k8s.io/v1beta1Namespaced

CRD schemas are vendored verbatim from aws/karpenter-provider-aws at tag v1.14.0 — only metadata.labels and metadata.annotations are templated.

Install

helm install karpenter-crds arieotech/karpenter-crds \
  --namespace kube-system

ArgoCD

Add a sync-wave so the CRDs apply before any chart that references them:

commonAnnotations:
  argocd.argoproj.io/sync-wave: "-1"

Values

KeyDefaultDescription
keepCRDstrueStamp helm.sh/resource-policy: keep on every CRD so helm uninstall doesn't delete them (or the live resources they back). Set false only on ephemeral/CI clusters.
commonLabels{}Extra labels applied to all CRDs.
commonAnnotations{}Extra annotations applied to all CRDs.

Upgrading CRDs

Karpenter requires CRDs to be at or ahead of the controller version. Upgrade order:

# 1. CRDs first
helm upgrade karpenter-crds arieotech/karpenter-crds -n kube-system
# 2. then the controller
helm upgrade karpenter arieotech/karpenter -n kube-system

Production checklist

  • [x] CRD schemas vendored verbatim from a pinned upstream tag (v1.14.0).
  • [x] helm.sh/resource-policy: keep on by default — safe teardown.
  • [x] GitOps/ArgoCD-safe (templated, reconcilable, sync-wave friendly).
  • [ ] Install this chart before the controller chart.
  • [ ] Keep this chart's version ≥ the controller chart's appVersion.

License

Apache 2.0 — see LICENSE.

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