Skip to content

Protect Redis pod from cluster autoscaler eviction#1009

Merged
arielr-lt merged 1 commit intomasterfrom
fix/redis-pdb-safe-to-evict
Mar 19, 2026
Merged

Protect Redis pod from cluster autoscaler eviction#1009
arielr-lt merged 1 commit intomasterfrom
fix/redis-pdb-safe-to-evict

Conversation

@arielr-lt
Copy link
Collaborator

@arielr-lt arielr-lt commented Mar 19, 2026

Summary

  • Add PodDisruptionBudget (redis-pdb) for the Redis StatefulSet in credreg-prod — prevents the cluster autoscaler from evicting the pod when draining nodes
  • Add cluster-autoscaler.kubernetes.io/safe-to-evict: "false" annotation to the Redis pod template — explicitly blocks autoscaler-triggered evictions

Context

A node replacement event at ~05:32 UTC caused the Redis pod to be evicted. The EBS PVC detach/reattach cycle took several minutes, during which all app pods lost their Redis connection and the ingress at credentialengineregistry.org went down. The PDB + annotation together prevent this from happening again.

@edgarf edgarf self-requested a review March 19, 2026 19:26
@arielr-lt arielr-lt merged commit c85586d into master Mar 19, 2026
11 of 12 checks passed
@arielr-lt arielr-lt deleted the fix/redis-pdb-safe-to-evict branch March 19, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants