Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Self-healing in action#

Sumit Rawal answered on June 20, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers


Self-healing in action#

0

We have already discussed that ReplicsSets have self-healing property. Let’s test this property by making a few changes to our system.

Destroying a pod

Let’s see what happens when a Pod is destroyed.

123

POD_NAME=$(kubectl get pods -o name \

| tail -1)

kubectl delete $POD_NAME

Delete a pod

We retrieved all the Pods and used -o name to retrieve only their names. The result was piped to tail -1 so that only one of the names is output. The result is stored in the environment variable POD_NAME. The latter command used that variable to remove the Pod as a simulation of a failure.

Let’s take another look at the Pods in the cluster.

Popularity 1/10 Helpfulness 1/10 Language whatever
Source: Grepper
Link to this answer
Share Copy Link
Contributed on Jun 20 2023
Sumit Rawal
0 Answers  Avg Quality 2/10

Closely Related Answers



0

We have already discussed that ReplicsSets have self-healing property. Let’s test this property by making a few changes to our system.

Destroying a pod

Let’s see what happens when a Pod is destroyed 

Popularity 1/10 Helpfulness 1/10 Language whatever
Source: Grepper
Link to this answer
Share Copy Link
Contributed on Jun 23 2023
Sumit Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.