<p>I've made a deployment in GKE with a readiness probe. My container is coming up but it seems the readiness probe is having some difficulty. When I try to describe the pod I see that there are many probe warnings but it's not clear what the warning is.</p>
<pre><code>Events:
  Type     Reason                   Age                   From                     Message
  ----     ------                   ----                  ----                     -------
  Normal   Scheduled                43m                   default-scheduler        Successfully assigned default/tripvector-7996675758-7vjxf to gke-tripvector2-default-pool-78cf58d9-5dgs
  Normal   LoadBalancerNegNotReady  43m                   neg-readiness-reflector  Waiting for pod to become healthy in at least one of the NEG(s): [k8s1-07274a01-default-tripvector-np-60000-a912870e]
  Normal   Pulling                  43m                   kubelet                  Pulling image &quot;us-west1-docker.pkg.dev/triptastic-1542412229773/tripvector/tripvector&quot;
  Normal   Pulled                   43m                   kubelet                  Successfully pulled image &quot;us-west1-docker.pkg.dev/triptastic-1542412229773/tripvector/tripvector&quot; in 888.583654ms
  Normal   Created                  43m                   kubelet                  Created container tripvector
  Normal   Started                  43m                   kubelet                  Started container tripvector
  Normal   LoadBalancerNegTimeout   32m                   neg-readiness-reflector  Timeout waiting for pod to become healthy in at least one of the NEG(s): [k8s1-07274a01-default-tripvector-np-60000-a912870e]. Marking condition &quot;cloud.google.com/load-balancer-neg-ready&quot; to True.
  Warning  ProbeWarning             3m1s (x238 over 42m)  kubelet                  Readiness probe warning:
</code></pre>
<p>I've tried examining events with <code>kubectl get events</code> but that also doesn't provide extra details on the probe warning:</p>
<pre><code> ❯❯❯ k get events
LAST SEEN   TYPE      REASON                    OBJECT                             MESSAGE
43m         Normal    LoadBalancerNegNotReady   pod/tripvector-7996675758-7vjxf    Waiting for pod to become healthy in at least one of the NEG(s): [k8s1-07274a01-default-tripvector-np-60000-a912870e]
43m         Normal    Scheduled                 pod/tripvector-7996675758-7vjxf    Successfully assigned default/tripvector-7996675758-7vjxf to gke-tripvector2-default-pool-78cf58d9-5dgs
43m         Normal    Pulling                   pod/tripvector-7996675758-7vjxf    Pulling image &quot;us-west1-docker.pkg.dev/triptastic-1542412229773/tripvector/tripvector&quot;
43m         Normal    Pulled                    pod/tripvector-7996675758-7vjxf    Successfully pulled image &quot;us-west1-docker.pkg.dev/triptastic-1542412229773/tripvector/tripvector&quot; in 888.583654ms
43m         Normal    Created                   pod/tripvector-7996675758-7vjxf    Created container tripvector
43m         Normal    Started                   pod/tripvector-7996675758-7vjxf    Started container tripvector
3m38s       Warning   ProbeWarning              pod/tripvector-7996675758-7vjxf    Readiness probe warning:
</code></pre>
<p>How can I get more details on how/why this readiness probe is giving off warnings?</p>
<p>EDIT: the logs of the pod are mostly empty as well (<code>klf</code> is an alias I have to kubectl logs):</p>
<pre><code> ❯❯❯ klf tripvector-6f4d4c86c5-dn55c
(node:1) [DEP0131] DeprecationWarning: The legacy HTTP parser is deprecated.
{&quot;line&quot;:&quot;87&quot;,&quot;file&quot;:&quot;percolate_synced-cron.js&quot;,&quot;message&quot;:&quot;SyncedCron: Scheduled \&quot;Refetch expired Google Places\&quot; next run @Tue Mar 22 2022 17:47:53 GMT+0000 (Coordinated Universal Time)&quot;,&quot;time&quot;:{&quot;$date&quot;:1647971273653},&quot;level&quot;:&quot;info&quot;}
</code></pre>

Paymahn Moghadasian
<p>Regarding the error in the logs <em><strong>“DeprecationWarning: The legacy HTTP parser is deprecated.”</strong></em>, it is due to the legacy HTTP parser being deprecated with the pending <em><strong>End-of-Life of Node.js 10.x</strong></em>. It will now warn on use, but otherwise continue to function and may be removed in a future <strong>Node.js 12.x</strong> release. Use this URL for more reference <a href="https://nodejs.org/ja/blog/release/v12.22.0/#:%7E:text=The%20legacy%20HTTP%20parser%20is%20runtime%20deprecated&amp;text=x%20" rel="nofollow noreferrer">Node v12.22.0 (LTS)</a>.</p>
<p>On the other hand, about the <code>kubelet</code>’s <em><strong>“ProbeWarning”</strong></em> reason in the warning events on your container, <em><strong>Health check (liveness &amp; readiness)</strong></em> probes using an <em><strong>HTTPGetAction</strong></em> will no longer follow redirects to different host-names from the original probe request. Instead, these non-local redirects will be treated as a <em><strong>Success</strong></em> (the documented behavior). In this case an event with reason <strong>&quot;ProbeWarning&quot;</strong> will be generated, indicating that the redirect was ignored. If you were previously relying on the redirect to run health checks against different endpoints, you will need to perform the healthcheck logic outside the <em><strong>Kubelet</strong></em>, for instance by proxying the external endpoint rather than redirecting to it. You can verify the detailed root cause of this in the following <a href="https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.14.md#urgent-upgrade-notes" rel="nofollow noreferrer">Kubernetes 1.14 release notes</a>. There is no way to see more detailed information about the  <strong>“ProbeWarning”</strong> in the <em><strong>Events’</strong></em> table. Use the following URLs as a reference too <a href="https://phabricator.wikimedia.org/T294072" rel="nofollow noreferrer">Kubernetes emitting ProbeWarning</a>, <a href="https://github.com/kubernetes/kubernetes/issues/103877" rel="nofollow noreferrer">Confusing/incomplete readiness probe warning</a> and <a href="https://github.com/kubernetes/kubernetes/pull/103967" rel="nofollow noreferrer">Add probe warning message body</a>.</p>
