-
I'm running argo-cd in namespace mode in namespace Not ideal but the infrastructure we use are VM's where kubernetes (v1.20.4) is installed is and we are restricted at namespaced scope level. I cannot create clusterroles/clusterrolebindings except when I ask for them. So that's why I use the namespace installation. I have a SA I have done following steps for managing the cluster: which results in:
Now when I setup my git project to let argo-cd manage the namespace resource (to recreate from scratch):
I get the following error in the UI:
When checking if I can create a namespace with the
So because of the warning the resource 'namespaces' is not namespace scoped I was thinking it's not possible to manage namespaces within my git project? Or is there any workaround except for using the argo-cd default installation (non namespaced mode)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @t0tec, once you configure Argo CD to be namespace scoped, it will not be able to handle any cluster-scoped resources anymore. And as you correctly pointed out, So yes, if you need to manage cluster-scoped resource, you would need to install the cluster-scoped manifests (and also remove the |
Beta Was this translation helpful? Give feedback.
Hi @t0tec,
once you configure Argo CD to be namespace scoped, it will not be able to handle any cluster-scoped resources anymore. And as you correctly pointed out,
Namespace
is such a cluster scoped resource. You can still manage resources within that Namespace in namespaced-mode.So yes, if you need to manage cluster-scoped resource, you would need to install the cluster-scoped manifests (and also remove the
namespaces
limitation from the cluster secret).