site/content/en/docs/tutorials/static_ip.md
This tutorial will show you how to create a minikube cluster with a static IP.
The static IP must be IPv4, private, and the last octet must be between 2-254 (X.X.X.2 - X.X.X.254).
Valid static IPs:
10.0.0.2 - 10.255.255.254
172.16.0.2 - 172.31.255.254
192.168.0.2 - 192.168.255.254
Use the --static-ip flag on minikube start to set the static IP.
Note: You cannot add a static IP to an existing cluster, you have to delete and recreate the cluster with the flag.
$ minikube start --driver docker --static-ip 192.168.200.200
š minikube v1.28.0 on Darwin 13.1 (arm64)
⨠Using the docker driver based on user configuration
š Using Docker Desktop driver with root privileges
š Starting control plane node minikube in cluster minikube
š Pulling base image ...
š„ Creating docker container (CPUs=2, Memory=4000MB) ...
š³ Preparing Kubernetes v1.25.3 on Docker 20.10.21 ...
āŖ Generating certificates and keys ...
āŖ Booting up control plane ...
āŖ Configuring RBAC rules ...
š Verifying Kubernetes components...
āŖ Using image gcr.io/k8s-minikube/storage-provisioner:v5
š Enabled addons: default-storageclass
š Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
$ minikube ip
192.168.200.200