Key Concepts
Cluster
API Server
Bearer Token
Connection Status
Required Permissions
Connection Status
How to Add a Cluster
Select ArgoCD Instance
Click Add Cluster
Enter Cluster Name
Enter API Server URL
https://cluster.example.com:6443).Enter Bearer Token
Configure TLS
Enable Cluster Resources (Optional)
Add
Required Fields
TLS Configuration
Secure Mode (Recommended)
When TLS verification is enabled (default), you must provide the CA certificate:Insecure Mode
Enable “Disable TLS Verification” to skip certificate validation.Cluster Options
How to Get Cluster Credentials
Follow these steps to obtain the required credentials from your Kubernetes cluster.Step 1: Create ServiceAccount
Apply the ArgoCD service account manifest to your cluster:- A ServiceAccount named
argocd-managerinkube-systemnamespace - A ClusterRoleBinding with cluster-admin privileges
- A long-lived token secret
Step 2: Retrieve Bearer Token
Get the bearer token from the created secret:Step 3: Retrieve CA Certificate
Get the cluster’s CA certificate:How to Delete a Cluster
Find the Cluster
Click Delete
Confirm
Troubleshooting
Connection status shows Failed
Connection status shows Failed
- Verify the API server URL is correct and reachable
- Check if the bearer token is valid and not expired
- Ensure the ServiceAccount has sufficient permissions
- Verify network connectivity between ArgoCD and the cluster
- Check firewall rules allow traffic on the API server port
TLS certificate error
TLS certificate error
- Verify the CA certificate is correct and base64-encoded
- Ensure the certificate matches the cluster’s CA
- Try enabling insecure mode temporarily to verify other settings
- Check if the certificate has expired
Authentication failed
Authentication failed
- Verify the bearer token is correct and complete
- Check if the ServiceAccount still exists
- Ensure the token secret hasn’t been deleted
- Verify the ClusterRoleBinding is intact
- Recreate the ServiceAccount if necessary
Cannot create cluster resources
Cannot create cluster resources
- Enable “Cluster-wide Resources” option when adding the cluster
- Verify the ServiceAccount has cluster-admin or equivalent permissions
- Check project resource rules allow cluster-scoped resources
Cluster shows 0 applications
Cluster shows 0 applications
- Applications may not be synced yet
- Check if applications are targeting the correct cluster
- Verify application project allows deployment to this cluster
- Refresh the page to update counts
Cannot delete cluster
Cannot delete cluster
- Verify you have delete permission
- Check if applications are still deploying to this cluster
- Try refreshing the page and attempting again
FAQ
What is the 'in-cluster' cluster?
What is the 'in-cluster' cluster?
in-cluster (or https://kubernetes.default.svc). This cluster cannot be deleted and is always available.Can I edit cluster settings after creation?
Can I edit cluster settings after creation?
How often does ArgoCD check cluster connectivity?
How often does ArgoCD check cluster connectivity?
What permissions does the ServiceAccount need?
What permissions does the ServiceAccount need?
Can I use a kubeconfig file instead of bearer token?
Can I use a kubeconfig file instead of bearer token?
Why is my cluster version not showing?
Why is my cluster version not showing?
Can multiple ArgoCD instances connect to the same cluster?
Can multiple ArgoCD instances connect to the same cluster?
What happens if the bearer token expires?
What happens if the bearer token expires?
Best Practices
Security
- Use dedicated ServiceAccounts for ArgoCD (never share with other systems)
- Apply least-privilege principles where possible
- Use TLS verification in production (avoid insecure mode)
- Rotate bearer tokens periodically
- Audit cluster access and permissions regularly
Naming
- Use descriptive cluster names (e.g.,
prod-us-east-1,staging-eu-west) - Include environment and region in the name
- Keep names consistent across your organization
Connectivity
- Ensure stable network connectivity between ArgoCD and clusters
- Configure appropriate timeouts for distant clusters
- Monitor connection status for early issue detection
- Set up alerts for cluster connectivity failures
Resource Management
- Enable cluster-wide resources only when necessary
- Use ArgoCD projects to restrict which clusters applications can target
- Document which teams/applications use each cluster
- Remove unused cluster connections to reduce attack surface
Credential Management
- Store credentials securely before adding to the platform
- Document the ServiceAccount and secret locations
- Set up monitoring for ServiceAccount token expiration
- Have a runbook for credential rotation