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.
Join the 80/20 DevOps Newsletter
If you're an engineering leader or developer, you should subscribe to my 80/20 DevOps Newsletter. Give me 1 minute of your day, and I'll teach you essential DevOps skills. I cover topics like Kubernetes, AWS, Infrastructure as Code, and more.
Not sure yet? Check out the archive.
Unsubscribe at any time.