Can I extend serviceNodePortRange in running kops cluster without restart

12/21/2020

I have the kops cluster running on AWS. I would like to extend the service node port range of that cluster without restart the cluster. Is it possible? If yes, how can it be done?

-- Kyaw Min Thu L
kops
kubernetes

1 Answer

12/26/2020

You can change it, but it does require a reboot of the control plane nodes (but not the woker nodes). This is due to the "immutable" nature of the kOps configuration.

To change the range, add this to your cluster spec:

    spec:
      kubeAPIServer:
        serviceNodePortRange: <range>

See the cluster spec for more information.

Keep ensure you do not conflict with the ports kOps require

-- Ole Markus With
Source: StackOverflow