-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Statefulset update / recreate #165
Comments
Could you share the config that led to the following behaviour? Updating dragonfly CRD caused the issue? I am interested to know the root cause.
Recreating the statefulset wouldn't solve the underlying issue (i.e. why is the operator trying to update statefulset like that).
Yep, its indeed nice to have. |
I've the same problem. I deploy the CRD with ArgoCD, but the Operator does not update anything, no trigger for rollout replace. And after that, I can see un the logs :
|
It was indeed updating the CR. I was updating the
That is true, updating parts of the CR that are not supposed to be updated from sts side is. Here's a demo CR: apiVersion: dragonflydb.io/v1alpha1
kind: Dragonfly
metadata:
name: dragonfly-app
spec:
image: ghcr.io/dragonflydb/dragonfly-weekly:e8650ed2b4ebd550c966751dd33ebb1ac4f82b1f-ubuntu
args:
- '--cache_mode'
- '--primary_port_http_enabled=true'
- '--cluster_mode=emulated'
snapshot:
cron: '*/5 * * * *'
persistentVolumeClaimSpec:
resources:
requests:
storage: 1Gi
accessModes:
- ReadWriteOnce
resources:
limits:
cpu: 100m
memory: 320Mi
requests:
cpu: 100m
memory: 320Mi
replicas: 3 Updating this to the following will show the issue: apiVersion: dragonflydb.io/v1alpha1
kind: Dragonfly
metadata:
name: dragonfly-app
spec:
image: ghcr.io/dragonflydb/dragonfly-weekly:e8650ed2b4ebd550c966751dd33ebb1ac4f82b1f-ubuntu
args:
- '--cache_mode'
- '--primary_port_http_enabled=true'
- '--cluster_mode=emulated'
snapshot:
cron: '*/5 * * * *'
persistentVolumeClaimSpec:
resources:
requests:
storage: 2Gi
accessModes:
- ReadWriteOnce
resources:
limits:
cpu: 100m
memory: 320Mi
requests:
cpu: 100m
memory: 320Mi
replicas: 3 |
Yep, am busy with other stuff currently, will fix the PR soon! |
Due to config adjustments, the operator tries to patch the sts in a way that would be incompatible.
I am getting this error then:
It would be great if drangonfly-operator could delete the sts with cascade=orphan and then re-create it with the current config to ensure the desired state.
I was thinking that when i now remove this sts manually, the operator would re-create it to ensure the desired state.
This was also not the case and i would like the operator to ensure the desired state of having the sts with the desired configuration re-created as well.
The text was updated successfully, but these errors were encountered: