Skip to main content
Connect your ArgoCD instances to enable Kai (Kubernetes Engineer) to analyze deployments, manage applications, and troubleshoot GitOps workflows.

Supported Platforms

PlatformSupport
Self-hosted ArgoCDAll versions
Akuity PlatformManaged ArgoCD service

Setup

Select your ArgoCD platform:
For ArgoCD already running on your cluster.
1

Get Connection Details

Ensure ArgoCD is accessible. The default port is 8888.Get your host IP address:
hostname -I | awk '{print $1}'
Ensure ArgoCD CLI is installed:
brew install argocd
2

Generate API Token

Enable apiKey and generate token:
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

Configure CloudThinker Connection

In CloudThinker, navigate to Connections → ArgoCD and enter:
  • Base URL: https://<host-ip>:8888
  • API Token: Token from previous step
  • TLS Verification: Disable
  • Read-only Mode: Enable

Connection Options

OptionDescriptionSelf-hostedAkuity
TLS VerificationValidate server certificateDisableEnable
API Key SetupEnable apiKey capabilityPatch argocd-cmPortal UI
CLI FlagsArgoCD CLI flags--insecure--grpc-web

Required Permissions

The CloudThinker user needs ArgoCD RBAC permissions:
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
Apply:
kubectl apply -f argocd-rbac.yaml

Agent Capabilities

Once connected, Kai can:
CapabilityDescription
Application StatusView sync status, health state, last sync time
Deployment AnalysisIdentify out-of-sync and failed deployments
Repository InsightsAnalyze Git repository state and commits
Sync OperationsTrigger manual syncs
Health MonitoringTrack application health

Example Prompts

@kai show me all out-of-sync applications in ArgoCD
@kai analyze deployment failures for the payment service
@kai sync the frontend application to latest commit
@kai check health status of all apps in production
@kai list applications with degraded health

Troubleshooting

  • Self-hosted: Use host IP (not localhost) in Base URL
  • Verify port-forward: kubectl port-forward svc/argocd-server -n argocd 8888:443 --address 0.0.0.0
  • Check firewall rules
  • Verify API token is correct
  • Ensure admin has login + apiKey capabilities
  • Self-hosted: Check argocd-cm ConfigMap patched
  • Akuity: Check System Account capabilities
  • Check apiKey capability enabled
  • Run: argocd account get
  • Self-hosted: Disable TLS verification
  • Akuity: Enable TLS verification

Security Best Practices

  • Read-only access - Use read-only RBAC
  • Token rotation - Rotate periodically
  • Network isolation - Restrict server access
  • Audit logging - Enable ArgoCD audit logs
  • Least privilege - Grant only get/list

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 clusters