<p>While reducing number of nodes in node pool in GKE, I want a specific node to be not killed by GKE. Is it possible to do that?</p>

vinayakshnd
<p>As explained in detail <a href="http://This%20might%20help:%20https://pminkov.github.io/blog/removing-a-node-from-a-kubernetes-cluster-on-gke-google-container-engine.html" rel="nofollow noreferrer">here</a> - you can drain and delete the instance from the instance group (Not direct delete instance)</p>

<pre><code>kubectl drain gke_instance_name  --force
</code></pre>

<p>The delete from instance group command followed by wait-until-stable command:</p>

<pre><code>$ gcloud compute instance-groups managed delete-instances $GROUP_ID --instances=gke_instance_name

$ gcloud compute instance-groups managed wait-until-stable $GROUP_ID
</code></pre>

<p>This will not allow you to blacklist some instances from being deleted - but other way around that you can delete specific instances and leave others untouched.</p>
