How to Add a New Access Entry Point to the Kubernetes Apiserver
· β 2 min read
1. How to Access a Remote Cluster Locally During development, you often need to connect directly to a remote Kubernetes cluster. The usual approach is to copy /etc/kubernetes/admin.conf to your local ~/.kube/kubeconfig.
But the kubeconfig’s server address is kubernetes.default.svc. So we need to configure a hosts entry:
1 1.1.1.1 kubernetes.default.svc If you need to switch between different clusters, you not only have to swap the kubeconfig but also modify hosts.