Set service-node-port-range in Google Kubernetes Engine

9/14/2018

For our use-case, we need to access a lot of services via NodePort. By default, the NodePort range is 30000-32767. With kubeadm, I can set the port range via --service-node-port-range flag.

We are using Google Kubernetes Engine (GKE) cluster. How can I set the port range for a GKE cluster?

-- Huy Hoang Pham
gcloud
google-kubernetes-engine
kubectl
kubernetes

1 Answer

9/14/2018

In GKE, the control plane is managed by Google. This means you don't get to set things on the API Server yourself. That being sad, I believe you can use the kubemci CLI tool to achieve it, see Setting up a multi-cluster Ingress.

-- Michael Hausenblas
Source: StackOverflow