Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam CKAD Topic 2 Question 40 Discussion

Actual exam question for Linux Foundation's CKAD exam
Question #: 40
Topic #: 2
[All CKAD Questions]

Refer to Exhibit.

Set Configuration Context:

[student@node-1] $ | kubectl

Config use-context k8s

Context

A pod is running on the cluster but it is not responding.

Task

The desired behavior is to have Kubemetes restart the pod when an endpoint returns an HTTP 500 on the /healthz endpoint. The service, probe-pod, should never send traffic to the pod while it is failing. Please complete the following:

* The application has an endpoint, /started, that will indicate if it can accept traffic by returning an HTTP 200. If the endpoint returns an HTTP 500, the application has not yet finished initialization.

* The application has another endpoint /healthz that will indicate if the application is still working as expected by returning an HTTP 200. If the endpoint returns an HTTP 500 the application is no longer responsive.

* Configure the probe-pod pod provided to use these endpoints

* The probes should use port 8080

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Caprice
1 months ago
Kubernetes probes? Piece of cake! I could write the solution in my sleep. *yawns*
upvoted 0 times
Arlene
23 days ago
User 1: Wow, you seem confident about Kubernetes probes!
upvoted 0 times
...
...
Filiberto
1 months ago
Hmm, I bet the trick is in the details of the probe configuration. Let's see if I can nail this one.
upvoted 0 times
...
Arleen
1 months ago
This is a good one. I like how it covers both the liveness and readiness probes. Time to put my Kubernetes skills to the test!
upvoted 0 times
Dominque
8 days ago
Good luck with your Kubernetes testing, let us know how it goes!
upvoted 0 times
...
Colette
27 days ago
Thanks for the reminder, I'll be careful with the configuration.
upvoted 0 times
...
Tracey
1 months ago
Make sure to double-check your yaml file before applying it.
upvoted 0 times
...
Portia
1 months ago
I agree, this explanation is really helpful. I'm excited to try it out!
upvoted 0 times
...
...
Annmarie
1 months ago
The probes sound straightforward, but I wonder if there are any edge cases I should be aware of.
upvoted 0 times
...
Horace
2 months ago
Ah, finally a question that tests my Kubernetes knowledge! This is right up my alley.
upvoted 0 times
Arlette
2 days ago
Absolutely, setting up those probes correctly can make a big difference in the performance of the pod.
upvoted 0 times
...
Vincenza
6 days ago
Definitely! The configuration for the liveness and readiness probes seems crucial for ensuring the pod's stability.
upvoted 0 times
...
Kate
20 days ago
I agree, it's always exciting to learn more about Kubernetes and how it works.
upvoted 0 times
...
Shaunna
1 months ago
Great! Kubernetes is such an interesting topic to dive into.
upvoted 0 times
...
...
Shawnee
2 months ago
The probes will check the /healthz and /started endpoints to ensure the pod is responsive and ready to receive traffic.
upvoted 0 times
...
Lynelle
2 months ago
Yes, we should create a livenessProbe and a readinessProbe in the pod's definition yaml file.
upvoted 0 times
...
Shawnee
2 months ago
I think we need to configure liveness and readiness probes on the pod.
upvoted 0 times
...

Save Cancel