Bootstrap FreeKB - ArgoCD - List namespaces that ArgoCD manages
ArgoCD - List namespaces that ArgoCD manages

Updated:   |  ArgoCD articles

This assumes:

ArgoCD sits between your version control system (such as GitHub) and your Kubernetes or OpenShift clusters and is used to create resources (such as deployments, pods, services, routes, config maps and secrets) in a particular namespace in your Kubernetes or OpenShift clusters. Almost always, this means you will have YAML files for your various Kubernetes or OpenShift resources in your version control system, such as YAML files for your Kubernetes or OpenShift deployments, YAML files for your Kubernetes or OpenShift secrets, YAML files for your Kubernetes or OpenShift services, et cetera, and ArgoCD will create the corresponding resources in your Kubernetes or OpenShift clusters using the YAML files in your version control system. ArgoCD will also ensure the resources on your Kubernetes or OpenShift clusters remain in sync with their corresponding YAML files in your version control system.

 

The argocd admin cluster namespaces command can be used to list the namespaces in each cluster that ArgoCD manages.

~]$ argocd admin cluster namespaces
CLUSTER                                                      NAMESPACES
https://kubernetes.default.svc
https://api.prod.op.example.com:6443                         foo,datadog,bar,hello-world (total 11)
https://api.dev.op.example.com:6443                          foo,datadog,bar,hello-world (total 13)
https://api.stage.op.example.com:6443                        foo,datadog,bar,hello-world (total 16)

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 39f7d1 in the box below so that we can be sure you are a human.