<p>From time to time all my pods restart and I'm not sure how to figure out why it's happening. Is there someplace in google cloud where I can get that information? or a kubectl command to run? It happens every couple of months or so. maybe less frequently than that.</p>

Jason M
<p>It's also a good thing to check your cluster and node-pool operations.</p>
<ol>
<li>Check the cluster operation in cloud shell and run the command:</li>
</ol>
<pre><code>gcloud container operations list
</code></pre>
<ol start="2">
<li>Check the age of the nodes with the command</li>
</ol>
<pre><code>kubectl get nodes
</code></pre>
<ol start="2">
<li>Check and analyze your deployment on how it reacts to operations such as cluster upgrade, node-pool upgrade &amp; node-pool auto-repair. You can check the cloud logging if your cluster upgrade or node-pool upgrades using queries below:</li>
</ol>
<p>Please note you have to add your cluster and node-pool name in the queries.</p>
<p>Control plane (master) upgraded:</p>
<pre><code>resource.type=&quot;gke_cluster&quot;
log_id(&quot;cloudaudit.googleapis.com/activity&quot;)
protoPayload.methodName:(&quot;UpdateCluster&quot; OR &quot;UpdateClusterInternal&quot;)
(protoPayload.metadata.operationType=&quot;UPGRADE_MASTER&quot;
  OR protoPayload.response.operationType=&quot;UPGRADE_MASTER&quot;)
resource.labels.cluster_name=&quot;&quot;
</code></pre>
<p>Node-pool upgraded</p>
<pre><code>resource.type=&quot;gke_nodepool&quot;
log_id(&quot;cloudaudit.googleapis.com/activity&quot;)
protoPayload.methodName:(&quot;UpdateNodePool&quot; OR &quot;UpdateClusterInternal&quot;)
protoPayload.metadata.operationType=&quot;UPGRADE_NODES&quot;
resource.labels.cluster_name=&quot;&quot;
resource.labels.nodepool_name=&quot;&quot;
</code></pre>
