GitHunt
NE

NexClipper/kind-setup-external-ip

KinD clusters run in MacOS with External IP

kind-setup-external-ip

KinD clusters run in MacOS or Linux with External IP

Communicate with kind

By default, KinD sets up the Kubernetes API server IP to be the local loopback address (127.0.0.1).
Configure the KinD cluster to use an IP address that is already resolvable from your local machine.

So, You can test a scenario kind cluster to use an externel IP.

Using Script

./create.sh
/usr/local/bin/kind exists.
Creating cluster "kind" ...
 โœ“ Ensuring node image (kindest/node:v1.20.2) ๐Ÿ–ผ
 โœ“ Preparing nodes ๐Ÿ“ฆ ๐Ÿ“ฆ ๐Ÿ“ฆ
 โœ“ Writing configuration ๐Ÿ“œ
 โœ“ Starting control-plane ๐Ÿ•น๏ธ
 โœ“ Installing CNI ๐Ÿ”Œ
 โœ“ Installing StorageClass ๐Ÿ’พ
 โœ“ Joining worker nodes ๐Ÿšœ
Set kubectl context to "kind-kind"
You can now use your cluster with:

kubectl cluster-info --context kind-kind

Thanks for using kind! ๐Ÿ˜Š
Starting K3d Cluster
-
Kubernetes control plane is running at https://192.168.15.88:6443
KubeDNS is running at https://192.168.15.88:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
All Resources Ready State!

Delete Cluster

$ kind delete cluster --name kind

Languages

Shell100.0%

Contributors

Apache License 2.0
Created March 17, 2021
Updated August 31, 2025