U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CKA Exam - Topic 11 Question 56 Discussion

Score: 4%TaskCreate a pod named kucc8 with a single app container for each of the following images running inside (there may be between 1 and 4 images specified): nginx + redis + memcached .
A) Explanation: Solution: kubectl run kucc8 --image=nginx --dry-run -o yaml > kucc8.yaml # vi kucc8.yaml apiVersion: v1 kind: Pod metadata: creationTimestamp: null name: kucc8 spec: containers: - image: nginx name: nginx - image: redis name: redis - image: memcached name: memcached - image: consul name: consul # kubectl create -f kucc8.yaml #12.07

Linux Foundation CKA Exam - Topic 11 Question 56 Discussion

Actual exam question for Linux Foundation's CKA exam
Question #: 56
Topic #: 11
[All CKA Questions]

Score: 4%

Task

Create a pod named kucc8 with a single app container for each of the following images running inside (there may be between 1 and 4 images specified): nginx + redis + memcached .

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Delmy
7 months ago
I thought you could run multiple containers in one pod? Confused!
upvoted 0 times
...
Jani
7 months ago
Classic mistake, but the YAML looks good otherwise!
upvoted 0 times
...
Sarah
7 months ago
Wait, why is consul in there? That wasn't mentioned in the task.
upvoted 0 times
...
Joesph
7 months ago
Totally agree, it should be separate pods for each container!
upvoted 0 times
...
Joni
8 months ago
Just a heads up, you can't run more than one image in a single pod like that.
upvoted 0 times
...
Ashanti
8 months ago
I think I need to double-check the indentation in the YAML file. It’s so easy to mess that up and cause errors when creating the pod.
upvoted 0 times
...
Leonor
8 months ago
I feel like we did a similar question in class, but it only had one container. I hope I can remember the syntax for multiple containers correctly.
upvoted 0 times
...
Ardella
8 months ago
I think the command to create the pod is right, but I’m a bit confused about the order of the images in the spec section. Does it matter?
upvoted 0 times
...
Nikita
8 months ago
I remember we practiced creating pods with multiple containers, but I’m not sure if I need to specify the ports for each container in the YAML.
upvoted 0 times
...
Simona
8 months ago
No problem, I've done this kind of thing before. I'll just create the YAML file and apply it, easy peasy.
upvoted 0 times
...
Willetta
8 months ago
Wait, does the order of the containers matter? I better review the instructions again to make sure I get this right.
upvoted 0 times
...
Isaac
8 months ago
Okay, I think I've got a plan - I'll use `kubectl run` to create the pod and then edit the YAML file to add the additional containers.
upvoted 0 times
...
Mitsue
8 months ago
Hmm, it says there can be between 1 and 4 images, so I'll need to double-check the requirements carefully.
upvoted 0 times
...
Chandra
9 months ago
This looks straightforward, I'll just need to create a pod with the specified images and names.
upvoted 0 times
...
Leonardo
9 months ago
This is a tricky one. I'm not sure if we're supposed to count the number of dataflows that exceed a limit, or if there's some other criteria we need to consider. I'll need to read through the question carefully and make sure I understand what they're asking.
upvoted 0 times
...
Crissy
9 months ago
This seems like a pretty standard Java question. I'm confident I can figure out which code fragment will give me the Filechannel object I need.
upvoted 0 times
...
Maurine
9 months ago
I think the answer is Scalability. The question mentions the retailer needs a solution to handle high load during the holiday season, and Scalability seems like the best option to handle that.
upvoted 0 times
...
Virgie
2 years ago
I think the key is to ensure each container image is specified correctly in the pod definition.
upvoted 0 times
...
Wava
2 years ago
The solution provided suggests using kubectl run and creating a yaml file. Seems straightforward.
upvoted 0 times
...
Melvin
2 years ago
I believe we need to use kubectl commands to create the pod with multiple containers.
upvoted 0 times
...
Effie
2 years ago
I agree, but I have some doubts about the specific commands to use.
upvoted 0 times
...
Slyvia
2 years ago
This question seems tricky, but I think I can manage it.
upvoted 0 times
...

Save Cancel