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 CKAD Exam - Topic 4 Question 8 Discussion

Posted by Pamella on Jun 27, 2022 at 10:48 AM

Context

Anytime a team needs to run a container on Kubernetes they will need to define a pod within which to run the container.

Task

Please complete the following:

* Create a YAML formatted pod manifest

/opt/KDPD00101/podl.yml to create a pod named app1 that runs a container named app1cont using image Ifccncf/arg-output

with these command line arguments: -lines 56 -F

* Create the pod with the kubect1 command using the YAML file created in the previous step

* When the pod is running display summary data about the pod in JSON format using the kubect1 command and redirect the output to a file named /opt/KDPD00101/out1.json

* All of the files you need to work with have been created, empty, for your convenience

Suggested Answer: A

Get Premium CKAD Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
11 comments · newest first
BA
Bambi 12 months ago
This is a solid example of how to set up a pod.
JE
Jenelle 1 year ago
I think the image name is a bit off, double-check that!
ME
Meghann 1 year ago
Wait, do we really need to specify all those command line args?
IE
Iesha 1 year ago
Totally agree, it's super straightforward!
TA
Tanesha 1 year ago
Just need to define a pod in YAML to run the container.
CH
Cherrie 1 year ago
I think the JSON output command is `kubectl get pod app1 -o json > /opt/KDPD00101/out1.json`, but I need to double-check the pod name and output redirection part.
CO
Cordell 1 year ago
For the kubectl command to create the pod, I believe it’s something like `kubectl apply -f /opt/KDPD00101/podl.yml`, but I might be mixing it up with another command.
ED
Edna 1 year ago
I remember practicing a similar question where we had to create a pod with specific labels. I hope I can recall the right structure for this one.
DA
Darrin 1 year ago
I think the pod manifest needs to specify the container image and the command line arguments, but I'm not entirely sure about the exact YAML syntax.
RE
Remedios 1 year ago
Hmm, this looks like a tricky one. I'll need to think carefully about the different package management commands and what they do.
AL
Alaine 1 year ago
The wording in these options is tricky. I'm going to re-read them a few times to make sure I understand the differences before selecting an answer.
0/2000 characters

Save Cancel