<p>We have a GKE cluster with <a href="https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades" rel="noreferrer">auto-upgrading nodes</a>. We recently noticed a node become unschedulable and eventually deleted that we suspect was being upgraded automatically for us. Is there a way to confirm (or otherwise) in Stackdriver that this was indeed the cause what was happening?</p>

Matt R
<p>You can use  the following advanced logs queries with Cloud Logging (previously Stackdriver) to detect upgrades to <strong>node pools</strong>:</p>
<pre><code>protoPayload.methodName=&quot;google.container.internal.ClusterManagerInternal.UpdateClusterInternal&quot;
resource.type=&quot;gke_nodepool&quot;
</code></pre>
<p>and <strong>master</strong>:</p>
<pre><code>protoPayload.methodName=&quot;google.container.internal.ClusterManagerInternal.UpdateClusterInternal&quot;
resource.type=&quot;gke_cluster&quot;
</code></pre>
<p>Additionally, you can control when the update are applied with <a href="https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions" rel="noreferrer">Maintenance Windows</a> (like the user aurelius mentioned).</p>
