-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat(argo-cd): Add optional mapping of argocd-repo-server emptydir to custom volumes #2410
Conversation
Hi, thanks for PR but we never merged PVC support as this would be breaking for production deployments that use HPA to run more replicas (typically 30-50 in large scale deployments). For this reason the repo-server was intentionally kept as a stateless. See details in #1648 |
Hi @pdrastil the idea was to leave default behaviour as-is with emptydir but allow people with specific use case to be able to customize volumes at will. In my setup I had to manually modify Helm chart as per PR to let it work otherwise it woud crash my nodes even with few application. Official documentation itself suggests to attach /tmp folder to a persistent volume https://argo-cd.readthedocs.io/en/stable/operator-manual/high_availability/ so I see no reason to have an hardcoded "emptydir" in helm chart
|
@pdrastil I agree with @aroundthecode and it would be nice to override this. Currently I have to patch in using ephemeral volume claims which works around the issue you mentioned. $ cat patches/argocd-repo-server-deploy.patch.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: argocd-repo-server
namespace: argocd
spec:
template:
spec:
volumes:
- name: tmp
emptyDir: null
ephemeral:
volumeClaimTemplate:
metadata:
labels:
type: argocd-repo-server-tmp
spec:
accessModes:
- ReadWriteOnce
storageClassName: standard-rwo
resources:
requests:
storage: 10Gi |
Provide user-driven option to replace emptydir volumes with desired solution Signed-off-by: Michele Sacchetti <[email protected]>
provide default values with empy object to ensure default behavior is backward-compatible Signed-off-by: Michele Sacchetti <[email protected]>
bump version Signed-off-by: Michele Sacchetti <[email protected]>
add changelog Signed-off-by: Michele Sacchetti <[email protected]>
fix docs on new entry Signed-off-by: Michele Sacchetti <[email protected]>
Signed-off-by: Michele Sacchetti <[email protected]>
Signoff commit Signed-off-by: Michele Sacchetti <[email protected]>
Signed-off-by: Michele Sacchetti <[email protected]>
Signed-off-by: Michele Sacchetti <[email protected]>
@pdrastil and others, I'd like to know if this PR can be merged or not. I think this PR allows to keep things "stateless" by default as @pdrastil suggested but also allow people to customize mountpoints followin best practices if needed. In my company we are currently using a manually modified version of argo-helm project, so having this PR merged would mean we can go on using it and contributing to it, but I'd like to know if there is any interest on maintainer side to this kind of approach. |
Signed-off-by: Michele Sacchetti <[email protected]>
As we've had two consumers of this project express the need and one has done the PR to allow the change I'm a fan of merging. This leaves default of emptydir in place. @yu-croco @pdrastil @mkilchhofer what say you? |
Signed-off-by: Michele Sacchetti <[email protected]>
Thanks for contribution |
Checklist: