Skip to main content
Connect your ArgoCD instances to enable Kai (Kubernetes Engineer) to analyze deployments, manage applications, and troubleshoot GitOps workflows. ArgoCD authenticates with an API token — the setup varies between self-hosted instances and the Akuity Platform.

Prerequisites

  • An ArgoCD instance accessible from CloudThinker: self-hosted (default port 8888) or managed via Akuity Platform.
  • ArgoCD CLI installed (brew install argocd); Akuity Platform also requires the Akuity CLI.
  • Admin access to ArgoCD to enable the apiKey capability and generate a token.

Setup

Select your ArgoCD platform:
1

Get connection details

Ensure ArgoCD is running and accessible. Get your host IP address:
2

Generate an API token

Enable the apiKey capability and generate a token for the admin account:
3

Add the connection in CloudThinker

Navigate to Connections → ArgoCD and enter:
  • Base URL: https://<host-ip>:8888
  • API Token: token from the previous step
  • TLS Verification: Disable
  • Read-only Mode: Enable
Click Connect. CloudThinker verifies the credentials and shows a Connected status.

Connection details


Required permissions

Apply the following RBAC policy in ArgoCD to grant CloudThinker read-only access:
Follow least privilege: grant only get and list actions on applications, repositories, and clusters.

Agent capabilities

Once connected, Kai can investigate and act on your ArgoCD applications.

Verify the connection

Example prompts


Troubleshooting

For self-hosted instances, use the host IP address (not localhost) in the Base URL. If the server is behind a port-forward, run kubectl port-forward svc/argocd-server -n argocd 8888:443 --address 0.0.0.0. Check firewall rules if the host remains unreachable.
Verify the API token is correct and that the admin account has both login and apiKey capabilities enabled. For self-hosted, confirm argocd-cm was patched; for Akuity, check the System Account capabilities in the portal.
The apiKey capability is not enabled for the account. Run argocd account get to inspect the account’s capabilities, then enable apiKey and retry.
For self-hosted instances, disable TLS verification in the connection settings (equivalent to the --insecure CLI flag). For Akuity, TLS verification should remain enabled.

Security

  • Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
  • Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
  • Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
  • Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
  • Read-only RBAC — apply the role:cloudthinker-readonly policy in argocd-rbac-cm and enable read-only mode in the connection to prevent unsanctioned writes.
  • Token rotation — rotate the ArgoCD API token periodically and update it in CloudThinker.

Kai Agent

Kubernetes and GitOps agent

Kubernetes Connection

Connect Kubernetes clusters