1.

How to monitor that a Pod is always running?

Answer»

We can introduce PROBES. A liveness probe with a POD is ideal in this scenario.

A liveness probe always checks if an APPLICATION in a pod is running,  if this check fails the container gets restarted. This is ideal in many scenarios where the container is running but SOMEHOW the application inside a container crashes.

spec: containers: - name: liveness image: k8s.gcr.io/liveness args: - /SERVER livenessProbe:       httpGet:         path: /healthz


Discussion

No Comment Found

Related InterviewSolutions