Kubernetes
Connect to Your Cluster
Connect to your Kubernetes cluster
Learn how to connect to your DKS cluster using kubectl.
Prerequisites
- kubectl installed locally
- Cluster access credentials
- Network access to cluster endpoint
Getting Cluster Credentials
Download kubeconfig
- Navigate to your cluster in the DCP dashboard
- Click "Download kubeconfig"
- Save the file to
~/.kube/configor specify with--kubeconfig
Using CLI
dcp dks get-kubeconfig --cluster my-cluster > ~/.kube/config
Verifying Connection
Test your connection:
kubectl get nodes
kubectl get pods --all-namespaces
Troubleshooting
If you encounter connection issues:
- Verify your API keys are valid
- Check network connectivity
- Ensure cluster is in "Running" state
- Review firewall rules