-
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
Chart argo-cd: The cluster https://kubernetes.default.svc has no assigned shard. #3092
Comments
memo 📝 |
Hi @yu-croco, do you know how can I address my warnings? |
Hi @fmunteanu ,
I am not sure if this is the cause since it's just for |
Thank you, I appreciate the response. Even with the dynamic cluster option disabled, I get the warning detailed into OP, not sure how to address it. |
I found the place where this warn is logged, https://github.com/search?q=repo%3Aargoproj%2Fargo-cd%20%22has%20no%20assigned%20shard%22&type=code . |
Describe the bug
When I enable
dynamicClusterDistribution
into Helm chart, I get these warnings:If I disable it, I only get this warning:
ArgoCD works as expected, I can see
https://kubernetes.default.svc
listed under Clusters and I can create applications without any issues.Related helm chart
argo-cd
Helm chart version
7.7.11
To Reproduce
I think the issue is related to this condition:
Expected behavior
By default, the helm chart sets
createClusterRoles
totrue
. If I understand correctly, the condition is read as:createClusterRoles
behavior:createClusterRoles
is set totrue
, ArgoCD's installation process will create the necessaryClusterRole
resources. These roles define permissions for ArgoCD components (like the Application Controller) to interact with cluster-wide resources.createClusterRoles
is set tofalse
, the Helm chart or installation script will not create these ClusterRole resources. This may be useful in environments with strict Role-Based Access Control (RBAC) policies where administrators prefer to create and manage such roles manually.Since the above condition evaluates always to False,
argocd-app-controller-shard-cm
is never used, hence the warnings present into logs. Do I get this right?My goal is to be able to keep
createClusterRoles
enabled and have proper sharding done with multiple controller replicas.Screenshots
Additional context
Full troubleshooting details are provided into argoproj/argo-cd#21181, see related chart settings:
The text was updated successfully, but these errors were encountered: