Manage your Container Service for Kubernetes (ACK) clusters from the command line by using the argocd CLI in the GitOps system.
You cannot use the web interface of Argo CD to manage ACK clusters.
Prerequisites
Before you begin, ensure that you have:
Logged on to the GitOps system. For more information, see Log on to the GitOps system
View clusters in the GitOps system
Run the following command to list the clusters registered in the GitOps system:
argocd cluster listExpected output:
SERVER NAME VERSION STATUS MESSAGE PROJECT
https://kubernetes.default.svc in-cluster Unknown Cluster has no applications and is not being monitored.Add associated clusters to the GitOps system
Associate Cluster Staging and Cluster Production with the ACK One Fleet instance. For more information, see Manage associated clusters. After association, GitOps automatically registers both clusters. You do not need to add them manually.
Verify the registration:
argocd cluster listExpected output:
SERVER NAME VERSION STATUS MESSAGE PROJECT https://47.91.XX.XX:6443 xxxxxxxxxx225aa20e34ac08-Staging Unknown Cluster has no applications and is not being monitored. https://47.111.XX.XX:6443 xxxxxxxxxx7094a6abeb1423-Prodution Unknown Cluster has no applications and is not being monitored. https://kubernetes.default.svc in-cluster Unknown Cluster has no applications and is not being monitored.Both clusters appear in the list, confirming successful registration.
Remove associated clusters from the GitOps system
After you disassociate a cluster from the ACK One Fleet instance, GitOps automatically removes it from the GitOps system. You do not need to remove clusters manually.
To verify that the cluster has been removed, run the following command and confirm that the cluster no longer appears in the output:
argocd cluster list