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

Warn when registry wont work without node affinity #2758

Open
phillebaba opened this issue Jul 24, 2024 · 0 comments
Open

Warn when registry wont work without node affinity #2758

phillebaba opened this issue Jul 24, 2024 · 0 comments
Labels
enhancement ✨ New feature or request

Comments

@phillebaba
Copy link
Contributor

Is your feature request related to a problem? Please describe.

By default the registry deployed by Zarf will have a node affinity configured to always run on the same node. It is also configured to deploy only a single instance. It is possible to disable this affinity and deploy multiple instances if one wants to run the registry in HA mode. This does however require that the PVC used by the registry supports ReadWriteMany as stated in the documentation.

https://docs.zarf.dev/ref/init-package/#making-the-registry-highly-available

While it may not work it is possible to deploy the registry with the affinity disabled while using a PVC which would not support the pod scheduling. To help the end user we could give them a warning the the configuration is not possible, to avoid future questions.

Describe the solution you'd like

  • Given a Kubernetes cluster with PVC that is configured ReadWriteOnce
  • When Zarf is instantiated with zarf init --set=REGISTRY_AFFINITY_ENABLE=false
  • Then Zarf should warn about the potential problems

Describe alternatives you've considered

N/A

Additional context

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
Status: Triage
Development

No branches or pull requests

1 participant