Download kubeconfig for the cluster
The kubectl command-line tool uses kubeconfig files to find the information it needs to choose a cluster and communicate with the API server of a cluster.
Download kubectl tool for cluster's Kubernetes version
Linux: https://storage.googleapis.com/kubernetes-release/release/v1.30.3/bin/linux/amd64/kubectl
MacOS: https://storage.googleapis.com/kubernetes-release/release/v1.30.3/bin/darwin/amd64/kubectl
Windows: https://storage.googleapis.com/kubernetes-release/release/v1.30.3/bin/windows/amd64/kubectl.exe
kubectl and kubeconfig file to access cluster
kubectl --kubeconfig /custom/path/kube.conf {COMMAND}
List pods
kubectl --kubeconfig /custom/path/kube.conf get pods --all-namespaces
List nodes
kubectl --kubeconfig /custom/path/kube.conf get nodes --all-namespaces
List services
kubectl --kubeconfig /custom/path/kube.conf get services --all-namespaces