How to prevent your cluster autoscaler from evicting workloads

If you’re using the Kubernetes cluster-autoscaler, you might want to prevent it from evicting certain workloads for example, your Kubernetes Jobs.

You can do this by setting the annotation cluster-autoscaler.kubernetes.io/safe-to-evict: "false".

You can read the documentation here.


Master GitHub Actions with a Senior Infrastructure Engineer

As a senior staff infrastructure engineer, I share exclusive, behind-the-scenes insights that you won't find anywhere else. Get the strategies and techniques I've used to save companies $500k in CI costs and transform teams with GitOps best practices—delivered straight to your inbox.

Not sure yet? Check out the archive.

Unsubscribe at any time.