You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After converting my Kubernetes configs into Short format I noticed that my container with a Rails web app started failing liveness/readiness checks. Quick investigation revealed that the problem is default value of host in httpGet.
Here is the probe part of the original Kubernetes config:
So, Short adds explicit param host which defaults to localhost. However, Kubernetes documentation on probes states that the host param in httpGet defaults to pod's internal IP. So when liveness probe tries to access localhost instead of pod's IP, the probe fails.
The text was updated successfully, but these errors were encountered:
Hello!
After converting my Kubernetes configs into Short format I noticed that my container with a Rails web app started failing liveness/readiness checks. Quick investigation revealed that the problem is default value of
host
inhttpGet
.Here is the probe part of the original Kubernetes config:
When run through Short, it translates into this:
Which in turn (when translated back into Kubernetes format) translates into this:
So, Short adds explicit param
host
which defaults tolocalhost
. However, Kubernetes documentation on probes states that thehost
param inhttpGet
defaults to pod's internal IP. So when liveness probe tries to accesslocalhost
instead of pod's IP, the probe fails.The text was updated successfully, but these errors were encountered: