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:
hostname -I | awk '{print $1}'
2

Generate an API token

Enable the apiKey capability and generate a token for the admin account:
kubectl -n argocd patch configmap argocd-cm --type merge -p '{"data":{"accounts.admin":"apiKey, login"}}'
argocd login <host-ip>:8888 --username admin --password '<password>' --insecure
argocd account generate-token --account admin --insecure
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

FieldDescriptionExample
Base URLArgoCD server addresshttps://192.168.1.100:8888 (self-hosted); https://<id>.cd.akuity.cloud (Akuity)
API TokenToken generated for the ArgoCD admin account
TLS VerificationEnable for Akuity; disable for self-hosted with a self-signed certificate
Read-only ModeEnable to prevent unsanctioned writes

Required permissions

Apply the following RBAC policy in ArgoCD to grant CloudThinker read-only access:
apiVersion: v1
kind: ConfigMap
metadata:
  name: argocd-rbac-cm
  namespace: argocd
data:
  policy.default: role:readonly
  policy.csv: |
    p, role:cloudthinker-readonly, applications, get, */*, allow
    p, role:cloudthinker-readonly, applications, list, */*, allow
    p, role:cloudthinker-readonly, repositories, get, *, allow
    p, role:cloudthinker-readonly, repositories, list, *, allow
    p, role:cloudthinker-readonly, clusters, get, *, allow
    p, role:cloudthinker-readonly, clusters, list, *, allow
    g, cloudthinker-readonly, role:cloudthinker-readonly
kubectl apply -f argocd-rbac.yaml
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.
CapabilityDescription
Application statusView sync status, health state, and last sync time
Deployment analysisIdentify out-of-sync and failed deployments
Repository insightsAnalyze Git repository state and commits
Health monitoringTrack application health across all apps
Sync operationsTrigger manual syncs — requires approval

Verify the connection

@kai list all ArgoCD applications and show their sync and health status

Example prompts

@kai show all out-of-sync ArgoCD applications and #report the details
@kai analyze deployment failures for the payment service and #recommend fixes
@kai check the health status of all applications in production

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
https://mintcdn.com/cloudthinker/aLd-ttc-SCW-aFky/images/icons/kubernetes.svg?fit=max&auto=format&n=aLd-ttc-SCW-aFky&q=85&s=7c03292954ff635a1994623a5c39971b

Kubernetes Connection

Connect Kubernetes clusters