You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I first created a 6 node redis cluster with 3 leaders and 3 followers by applying the following YAML file. We will call this YAML file the 'original' one in the following part of this issue. What can be done with you?
We later changed the Affinity rule, but then realized the Affinity rule cannot be satisfied. There is always one redis pod not scheduled. Then we try to recover the cluster by reverting to the original CR, to remove the unsatisfiable affinity rule. However, the redis-operator updates the statefulset to remove the Affinity rule, but the pods still have the old bad affinity rule, causing the Redis cluster to remain in the error state.
What did you expect to see?
We expect the Affinity rule from the pods to be removed after removing it from CR.
What did you see instead?
Redis cluster continue to have one less replica than desired.
What version of redis operator are you using?
redis-operator version: We are using redis-operator built from the
HEAD
Does this issue reproduce with the latest release?
Yes, it reproduces with
quay.io/opstree/redis-operator:v0.10.0
What operating system and processor architecture are you using (
kubectl version
)?kubectl version
OutputWhat did you do?
I first created a 6 node redis cluster with 3 leaders and 3 followers by applying the following YAML file. We will call this YAML file the 'original' one in the following part of this issue. What can be done with you?
We later changed the Affinity rule, but then realized the Affinity rule cannot be satisfied. There is always one redis pod not scheduled. Then we try to recover the cluster by reverting to the original CR, to remove the unsatisfiable affinity rule. However, the redis-operator updates the statefulset to remove the Affinity rule, but the pods still have the old bad affinity rule, causing the Redis cluster to remain in the error state.
What did you expect to see?
We expect the Affinity rule from the pods to be removed after removing it from CR.
What did you see instead?
Redis cluster continue to have one less replica than desired.
Possible root cause and Comments
It may be caused by this known limitation of statefulSet: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#forced-rollback
The text was updated successfully, but these errors were encountered: