<p>I would like to extend the default &quot;service port range&quot; in <a href="https://docs.k0sproject.io/v1.21.0+k0s.0/" rel="nofollow noreferrer">K0s Kubernetes distro</a>.</p>
<p>I know that in kubernetes, setting <code>--service-node-port-range</code> option in <code>/etc/kubernetes/manifests/kube-apiserver.yaml</code> will do the trick.</p>
<p>But, how to do so or where is that option in the <code>K0s</code> distro?</p>

McLan
<p>It looks like you could use <code>spec.api.extraArgs</code> to pass the <code>service-node-port-range</code> parameter to api-server.</p>
<p><a href="https://docs.k0sproject.io/v1.21.0+k0s.0/configuration/#specapi" rel="nofollow noreferrer">Spec api</a>:</p>
<blockquote>
<p><strong>extraArgs</strong>: Map of key-values (strings) for any extra arguments you wish to pass down to Kubernetes api-server process</p>
</blockquote>
<p>Example:</p>
<pre><code>apiVersion: k0s.k0sproject.io/v1beta1
kind: Cluster
metadata:
  name: k0s
spec:
  api:
    extraArgs:
      service-node-port-range: 30000-32767
</code></pre>
