How to monitor that a pod is always running?

0 votes
How do i keep a check that my pod is always running?
Jul 16 in Kubernetes by Namik
• 1,210 points
28 views

1 answer to this question.

0 votes

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
answered Jul 16 by Sirajul
• 36,220 points

Related Questions In Kubernetes

0 votes
2 answers
0 votes
1 answer

How to determine what is the status of a deployment ?

You could use kubectl get deployment <deployment>.  If ...READ MORE

answered Jul 12 in Kubernetes by Sirajul
• 36,220 points
41 views
0 votes
1 answer
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17 in Others by anonymous
2,944 views
+3 votes
1 answer
+1 vote
1 answer