Change ports range for a NodePort Service in Kubernetes

By default, the range of the service NodePorts is 30000-32768. This range contains 2768 ports, which means that you can create up to 2768 services with NodePorts. If you need more services, or you need to expose specific ports that are not in this range for certain applications, then you need to change the default range.

You could change this behavior by adding the --service-node-port-range= argument to the kube-apiserver in the init scripts