karpenter

by arieotech

Helm chartv0.1.0App 1.14.0Apache-2.0Verified publisher

Production-grade Karpenter chart for AWS/EKS node autoscaling. GitOps/ArgoCD-safe: CRDs are shipped in the separate karpenter-crds chart so the controller never embeds static CRDs that confuse ArgoCD diffing (upstream #6847). PSA restricted-mode, NetworkPolicy enabled by default, full JSON Schema validation, least-privilege RBAC, PodDisruptionBudget, ServiceMonitor/PrometheusRule, SOC2/DPDP defaults, and Istio Ambient Mesh support. Targets Karpenter 1.14.0 (LTS).

About this chart

karpenter

Production-grade Karpenter 1.14.0 (LTS) chart for AWS/EKS node autoscaling — security-hardened, GitOps-safe, and fully schema-validated.

Ships no CRDs by design. Install the karpenter-crds chart first. Bundling CRDs in the controller chart is what makes ArgoCD report perpetual drift (upstream #6847); separating them is the fix.

What this chart fixes / adds

AreaThis chart
ArgoCD CRD drift (#6847)CRDs live in a separate, versioned chart — no embedded static CRDs
SecurityPSA restricted: non-root, read-only rootfs, drop ALL caps, seccomp RuntimeDefault
RBACLeast-privilege ClusterRole + namespaced leases/dns Roles (no cluster-admin)
NetworkPolicyEnabled by default — DNS, API server, and AWS API egress only
ValidationFull values.schema.json; latest image tags rejected
ObservabilityServiceMonitor + PrometheusRule (down / reconcile-error / cloud-provider-error alerts)
Correct for v1No webhook server (removed in v1); FEATURE_GATES env; drift is GA, not a gate
ComplianceSOC2 JSON stdout logging, DPDP data-residency annotation
MeshIstio Ambient Mesh labels + ztunnel port exclusion

Prerequisites

  • An EKS cluster (Karpenter's AWS provider requires a real AWS account).
  • The karpenter-crds chart installed.
  • An IAM role for the controller, wired via IRSA or EKS Pod Identity.
  • Recommended: an SQS interruption queue for graceful Spot handling.

Install

# 1. CRDs first (separate chart)
helm install karpenter-crds arieotech/karpenter-crds -n kube-system

# 2. Controller
helm install karpenter arieotech/karpenter -n kube-system \
  --set settings.clusterName=my-cluster \
  --set settings.interruptionQueue=my-cluster-interruptions \
  --set-json 'serviceAccount.annotations={"eks.amazonaws.com/role-arn":"arn:aws:iam::123456789012:role/KarpenterController"}'

settings.clusterName is required — the controller (and a Helm required guard) will refuse to start without it. On EKS, settings.clusterEndpoint is auto-discovered if left empty.

Then create a NodePool + EC2NodeClass — see the Karpenter getting-started guide.

Key values

KeyDefaultDescription
image.tag1.14.0Controller image tag (digest wins if set; latest is rejected by the schema).
replicaCount2Leader-elected; one active, one standby.
settings.clusterName""Required. EKS cluster name.
settings.clusterEndpoint""EKS API endpoint; auto-discovered on EKS when empty.
settings.interruptionQueue""SQS queue for Spot interruption/rebalance events.
settings.featureGatessee valuesPascalCase Karpenter feature gates → bool.
serviceAccount.annotations{}Put your IRSA / Pod Identity IAM role ARN here.
rbac.dns.namespacekube-systemNamespace of the kube-dns/CoreDNS Service.
networkPolicy.enabledtrueDeny-by-default with DNS/API/AWS egress allow-list.
networkPolicy.kubeApiServerCIDR""Pin API-server egress to a CIDR.
networkPolicy.awsApiEgresstrueAllow 443 egress for AWS API calls.
pdb.maxUnavailable1PodDisruptionBudget (only rendered when replicaCount > 1).
metrics.serviceMonitor.enabledfalsePrometheus Operator ServiceMonitor.
metrics.prometheusRule.enabledfalseBundled alerting rules.
istio.ambient.enabledfalseJoin the Istio Ambient dataplane.

See values.yaml for the complete, commented set.

Ports (Karpenter v1)

PortPurpose
8080Prometheus metrics (/metrics)
8081Health / readiness (/healthz, /readyz)

There is no 8443 webhook port — Karpenter removed its admission webhooks in v1; CR validation is enforced by CEL rules embedded in the CRDs.

Production checklist

  • [x] PSA restricted-mode compatible; no latest tags.
  • [x] NetworkPolicy enabled by default.
  • [x] Least-privilege RBAC (no cluster-admin, namespaced write scope for leases).
  • [x] values.schema.json, resource requests/limits, PDB, ServiceMonitor, PrometheusRule.
  • [ ] Install karpenter-crds first and keep it ≥ this chart's appVersion.
  • [ ] Provide an IRSA / Pod Identity role via serviceAccount.annotations.
  • [ ] Set settings.interruptionQueue in production for graceful Spot handling.
  • [ ] Keep the controller off Karpenter-managed nodes (default affinity does this).

Compatibility

  • Karpenter 1.14.0 (LTS, supported through July 2027).
  • Kubernetes ≥ 1.25 (KUBERNETES_MIN_VERSION is set to 1.19.0-0 for the controller's own gate, but PSA restricted + the CRD schemas target modern clusters).

License

Apache 2.0 — see LICENSE.

Deploy karpenter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has karpenter 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 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