Skip to content
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

dex-server and notifications controller hard coded replicas #3022

Open
kirrmann opened this issue Nov 12, 2024 · 4 comments
Open

dex-server and notifications controller hard coded replicas #3022

kirrmann opened this issue Nov 12, 2024 · 4 comments

Comments

@kirrmann
Copy link

Describe the bug

Both the deployments have a hard coded replicas: 1, which is surprising because for both a PDB can be setup. Is there any reason for setting this fixed values and not exposing it in values.yaml?

Related helm chart

argo-cd

Helm chart version

7.7.1

To Reproduce

See dex deployment template and notifications-controller deployment-template to see that replicas is hard coded to 1

Expected behavior

notifications.replicas and dex.replicas should be exposed as a setting in values.yaml

Screenshots

No response

Additional context

No response

@kirrmann kirrmann added the bug Something isn't working label Nov 12, 2024
@kirrmann
Copy link
Author

If this is not intended then I can create a Pull Request

@mkilchhofer
Copy link
Member

Re: Dex

Dex is intended and also the background is documented:

The argocd-dex-server uses an in-memory database, and two or more instances would have inconsistent data.

Source: https://argo-cd.readthedocs.io/en/stable/operator-manual/high_availability/#argocd-dex-server-argocd-redis

Re: Notification controller

There are various issues upstream when running more than one replica, e.g.:

@yu-croco yu-croco added question and removed bug Something isn't working labels Nov 13, 2024
@kirrmann
Copy link
Author

Looking at dex I assume if we would use external storage then we could run dex in ha https://dexidp.io/docs/configuration/storage/ I also found this question about it dexidp/dex#2256

@mkilchhofer
Copy link
Member

Yes Dex (deployed as a Standalone instance) can run in HA mode.

But Dex embedded in Argo CD does not support HA. If you think it is worth implementing HA also for the embedded Dex, it would be nice if you can file an issue in the upstream repository: https://github.com/argoproj/argo-cd/issues/new/choose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants