How to change -service-cluter-ip-range?

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: v1.21.3
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:
Host OS: redhat 7.6
CNI and version:
CRI and version:

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.


Hello Guys,
How to change --service-cluster-ip-range ?

$kubectl cluster-info dump | grep -m 1 service-cluster-ip-range
“–service-cluster-ip-range=20.233.0.0/18”,

Thanks,
JH

Hi Jonghan_Na:

According to documentation: kube-apiserver | Kubernetes it can be set via the flag:

–service-cluster-ip-range string
A CIDR notation IP range from which to assign service cluster IPs. This must not overlap with any IP ranges assigned to nodes or pods. Max of two dual-stack CIDRs is allowed.

Best regards,

Xavi