How do I obtain the pod network segment and service network segment of a cluster?

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

Cluster information:

Kubernetes version: 1.21
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:
Host OS:
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.

This is an ill-formed question, sort of.

While it is often the case that a single pod-prefix covers a whole cluster, it is not ALWAYS the case. Implementations can (and do) do more clever things.

There is a KEP to offer that information through a real (but optional) API.

Likewise, a cluster only has a single service range today, but will soon be allowed to have multiple, via an API.