Liveness probe

Different to a Readiness probe, a liveness probe indicates whether the application is still running as expected inside of a pod.

To make sure the pod is running and the application inside the pod is working as expected, Kubernetes will ask periodically the liveness probe of pod defined by the developer. This can be a HTTP endpoint, a socket or a specific command.

containers:
  - name: simple-webapp
    livenessProbe:
      initialDelaySeconds: 10
      periodSeconds: 5
      failureThreshold: 8
      httpGet:
        path: /api/ready
        port: 8080
Links to this page
#kubernetes