Kubernetes Deep Dive Room

Sign Up Free or Log In to participate!

SVC IP

I’m following Nigel’s discussion regarding the POD network, the Node Network and SVC network as a concept. I understand the that SVC IP is static. But where / when / how / who is assigning the the IP to the SVC object? Where does it come from?

Gabriel Rodriguez

I found this from the documentation — but again it simply says … "Kubernetes assigns … " Anyone have any details on how?

1 Answers

The available IP address range can be found in the implemented API server under spec.containers.command –service-cluster-ip-range.

You can view that info in the kube-apiserver pod within the kube-system namespace in multiple ways. 2 simple ways are via the Dashboard https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/#deploying-the-dashboard-ui

or via this command:

kubectl -n kube-system get pods kube-apiserver-docker-desktop -o json. 

You can also choose your own IP address (within the above stated range)

https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address

Some additional reading:  https://kubernetes.io/docs/concepts/services-networking/service/

Hope this helps.

Gabriel Rodriguez

Thanks John! Very helpful

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?