Kubernetes cluster access
Quick Start
scp -P 22 -i ~/.ssh/id_rsa <login>@<server>:~/.kube/config /tmp/kubeconfigexport KUBECONFIG=/tmp/kubeconfig kubectl get namespaces
Prerequisites
Access cluster from the server (SSH)
Use kubectl from your laptop
Copy kubeconfig from the server
Use kubeconfig temporarily
Optional: Configure kubeconfig for long-term use
Replace your default kubeconfig
Merge with an existing kubeconfig
Useful commands
List available Kubernetes contexts
Switch Kubernetes context
Verify cluster connection
Common troubleshooting commands
Links
Last updated