Exam CKA Topic 4 Question 26 Discussion

Actual exam question for Linux Foundation's CKA exam
Question #: 26
Topic #: 4
Perform the following tasks:
* Add an init container to hungry-bear (which has been defined in spec file
/opt/KUCC00108/pod-spec-KUCC00108.yaml)
* The init container should create an empty file named/workdir/calm.txt
* If /workdir/calm.txt is not detected, the pod should exit

Suggested Answer:

* Once the spec file has been updated with the init container definition, the pod should be created See the solution below.
Explanation
solution


by Will at May 30, 2025, 12:04 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10