kubernetes-sigs / karpenter

Karpenter is a Kubernetes Node Autoscaler built for flexibility, performance, and simplicity.
Apache License 2.0
526 stars 173 forks source link

Run Karpenter Controller as single replica #1414

Closed pelzerim closed 3 weeks ago

pelzerim commented 1 month ago

We are considering running Karpenter as a single replica.

As far as I can tell it scales vertically and the additional replicas just take over in case of failures. Is this correct?

If we can accept the Xs it takes for a controller restart, there should be no hidden downsides?

Is this assumption correct?

Does information exist on how karpenter does HA and scaling?

jmdeal commented 1 month ago

This question is probably more appropriate for the providers than the library, but I can speak for AWS. You're correct, the additional replicas are only for failover, and there's nothing stopping you from running a single replica. That being said controller restarts are not the only reason to run multiple replicas, e.g. protecting against AZ outages. This is why the default configuration shipped with Karpenter's helm chart includes a zonal anti-affinity.

jmdeal commented 1 month ago

/triage accepted /kind support

github-actions[bot] commented 1 month ago

This issue has been inactive for 14 days. StaleBot will close this stale issue after 14 more days of inactivity.