[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

livenessProbe



Hey,

Is anyone here using livenessProbe on pods?
I have added this to my dc:

# defines the health checking
livenessProbe:
  # an http probe
  httpGet:
    path: /
    port: 8080
  # length of time to wait for a pod to initialize
  # after pod startup, before applying health checking
  initialDelaySeconds: 30
  timeoutSeconds: 3

While the app is up in 10s, it seems to restart it every time, even if the service is responding.
I have in the events:

Liveness probe failed: Get http://10.1.1.46:8080/: read tcp 10.1.1.46:8080: use of closed network connection (4 times in the last 2 minutes, 31 seconds)

No error reported in the logs, just the container being killed.

Thanks,
Philippe


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]