I'm not sure which component in kubernetes do such job.
Maybe kube-api-server
or kube-controller-manager
, since they both has a parameter named:
"service-cluster-ip-range".
And I wonder to know if the assignment could be disable?
Thanks
After some research, finally I found the cluster ip
is assigned by kube-api-server
: it assign the validate cluster ip
before stored the object to etcd!
See the link: https://pkg.go.dev/k8s.io/kubernetes/pkg/registry/core/service@v1.22.1
and you also can found related code in the kubernetes
repository on github.
So I guess it cannot be disabled : )