Connect a Kubernetes Cluster
Create a Kubernetes Cluster Using kind (Optional)
-
Create a cluster using
kind.kind create cluster --name akuity-connected-clusterYou should see the following output:
Creating cluster "akuity-connected-cluster" ...â Ensuring node image (kindest/node:v1.25.2) đŧâ Preparing nodes đĻ đĻ đĻ đĻâ Writing configuration đâ Starting control-plane đšī¸â Installing CNI đâ Installing StorageClass đžâ Joining worker nodes đSet kubectl context to "kind-akuity-connected-cluster"You can now use your cluster with:kubectl cluster-info --context kind-akuity-connected-clusterThanks for using kind! đ -
Check that the cluster works by running
kubectl get nodes.% kubectl get nodesNAME STATUS ROLES AGE VERSIONakuity-connected-cluster-control-plane Ready control-plane 74s v1.25.2Fetching the nodes will demonstrate that
kubectlcan connect to the cluster and query the API server. The node should be in the "Ready" status.
After your new Argo CD instance is created successfully (Healthy status next to your new instance's name):
-
Navigate to Argo CD â your instance â Clusters.
-
Click + Connect a cluster to add a Kubernetes cluster.
-
Input your Cluster Name.
-
Click Connect Cluster.
-
In the Install Akuity Agent pop-up screen, click Copy to Clipboard
cautionBefore pasting the next command, make sure you're connected to the correct cluster.
-
Paste the copied command into your terminal and run it to apply the agent manifest.
If you come across any errors while trying to apply the agent manifest, it is recommended to download the agent manifest and apply it manually inside your cluster using the kubectl apply command.
Once the agent has been successfully installed into your Kubernetes cluster, you should see the cluster listed in the Akuity dashboard with a green heart icon next to the cluster name. This indicates that the cluster is in a healthy state.
Now that your Argo CD instance is connected to a Kubernetes cluster, move on to the next section to learn about enabling remote access to your instance.