<p>I have a situation where I need to run a different versions of a product in a single AWS instance. but to do that total pod no is exceeding 110. Kubernetes is not able to take so much pod by default. </p>

<p>Is there any way to increase default pod to 250 so that I can run all the versions on a single instance?</p>

<p>You can set the <code>MaxPods</code> field in the <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/" rel="nofollow noreferrer">kubelet config file</a>:</p>

<pre><code>apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
MaxPods: 250
</code></pre>

<p>You can then supply the config file to the kubelet binary with the <code>--config</code> flag, for example:</p>

<pre class="lang-sh prettyprint-override"><code>kubelet --config my-kubelet-config.yaml
</code></pre>

<p>Alternatively, the kubelet binary also has a <code>--max-pods</code> flag that allows you to set the value directly. However, this flag is deprecated and the use of a config file, as shown above, is recommended. See the <a href="https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/" rel="nofollow noreferrer">kubelet reference</a>.</p>
