application-controller and argocd-server do not restart upon "server.secretkey is missing" failure #22231
Open
3 tasks done
Labels
bug
Something isn't working
Checklist:
argocd version
.Describe the bug
Hi community, I'm trying to install argocd in a multi-cluster environment where the resources are firstly created on the hub cluster and then deployed to the member clusters. I encounter an issue that when the
argocd-server
secret is installed after the controllers/servers, the controllers reportserver.secretkey is missing
error in log but they just keep running, no crash but do not function (do not reconcile Applications upon their creation). And I have no eary way to know they are not functioning. I have to manually do arollout restart
on the application-controller, argocd-server to fix the issue. Only the dex server crashes when this error happens, then it is restarted automatically and then it's back to normal because the second time the secret is there and the field is added.My observation is that even after
server.secretkey
is automatically generated, the controllers/servers do not detect the event and restart automatically. Any help is welcomed. Thank you!To Reproduce
Create the deployment first and then create the
argocd-server
secret.Expected behavior
The controllers/server pods would crash and be restarted by kubelet when this error happens or when the secret is updated, they detect the change and restart.
Screenshots
Version
Paste the output from `argocd version` here. argocd: v2.12.6+4dab5bd BuildDate: 2024-10-18T18:51:56Z GitCommit: 4dab5bd6a60adea12e084ad23519e35b710060a2 GitTreeState: clean GoVersion: go1.22.8 Compiler: gc Platform: linux/amd64 argocd-server: v2.14.4+3d901f2
Logs
The text was updated successfully, but these errors were encountered: