spotahome / redis-operator

Redis Operator creates/configures/manages high availability redis with sentinel automatic failover atop Kubernetes.
Apache License 2.0
1.49k stars 357 forks source link

Operator continuously updates Kubernetes deployments #580

Closed avthart closed 1 year ago

avthart commented 1 year ago

We are using Kyverno which validates every object on change.

The redis-operator is updating the rfs deployments overy 30 seconds, even when nothing is changed. This creates additional load on Kyverno, especially in environments with a lot of redisfailovers instances.

This can be verified with:

kubectl get deploy -w

Or check the number observedGeneration which is in our case 496690

It would be great if the rfs deployments would be updated only when needed.

Also see https://github.com/spotahome/redis-operator/issues/410#issuecomment-1276374527

avthart commented 1 year ago

Did a diff on two versions:

diff /tmp/1.yaml /tmp/2.yaml 
7c7
<   generation: 496690
---
>   generation: 496693
23c23
<   resourceVersion: "1087217544"
---
>   resourceVersion: "1087219466"
180c180
<   observedGeneration: 496690
---
>   observedGeneration: 496693
nickvth commented 1 year ago

+1

raghu-nandan-bs commented 1 year ago

@samof76 to address this, I can think of couple of improvements.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

avthart commented 10 months ago

Please re-open ticket. This is still an issue.

avthart commented 10 months ago

Not stale. Reopen ticket.