Hi,

I need a way to get service cluster ip range (as CIDR) that works accross 
all Kubernetes clusters.

I tried the following, which works fine for clusters created with kubeadm 
as it greps arguments of apiserver pod:


$ kubectl cluster-info dump  | grep service-cluster-ip-range
                        "--service-cluster-ip-range=10.96.0.0/12",


This does not work on all Kubernetes clusters, i.e. gcloud

So the question is, what is the best way to get service ip range 
programatically?


Best

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
  • [kubernetes-users]... hasan türken

Reply via email to