I need to get the Kubernetes Service IP address (internal and external) using the Google Cloud Provider APIs. How do I get the Kubernetes Services IP address using GCP APIs?
Thanks
I need to get the Kubernetes Service IP address (internal and external) using the Google Cloud Provider APIs. How do I get the Kubernetes Services IP address using GCP APIs?
Thanks
If you wanted to know the IP service on your cluster, you have to run the following command on your cloud shell console:
~$ gcloud container clusters describe NAME-OF-THE-CLUSTER --zone ZONE-WHERE-THE-CLUSTER-WAS-CREATED
If you wanted to know the service network range, please use:
~$ gcloud container clusters describe NAME-OF-THE-CLUSTER --zone ZONE-WHERE-THE-CLUSTER-WAS-CREATED | grep service
And, if you wanted to know the endpoint IP Address, please use:
~$ gcloud container clusters describe NAME-OF-THE-CLUSTER --zone ZONE-WHERE-THE-CLUSTER-WAS-CREATED | grep endpoint.
About the API, please review this