<p>I'm having some trouble configuring my deployments on GKE.</p>

<p>I want to decrease the default(110) number of pods allowed on a node and I can't do it through the console. I read that the max number of pods can be set by <code>kubelet --max-pods=&lt;int32&gt;</code> however I don't know how to do this with GKE.</p>

<p>Any help is much appreciated.</p>

limeeattack
<p>The <code>kubelet --max-pods=&lt;int32&gt;</code> approach you mentioned is actually deprecated as per the <a href="https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/" rel="nofollow noreferrer">Kubernetes documentation</a>:</p>

<blockquote>
  <p>This parameter should be set via the config file specified by the
  Kubelet's --config flag. See
  <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/</a>
  for more information.</p>
</blockquote>

<p>However, in Google Kubernetes Engine, you can modify this by going to the <code>Developer Console &gt; Kubernetes Engine &gt; Clusters</code>, click on your cluster's name and click on <code>Add Node Pool</code> at the top. You'll be able to set a maximum number of pods per node for that new node pool.</p>

<p>Once done, you'll be able to deploy your services to specific node pools by following the instructions <a href="https://cloud.google.com/kubernetes-engine/docs/concepts/node-pools#deploying_services_to_specific_node_pools" rel="nofollow noreferrer">here</a>.</p>
