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 CKA Exam - Topic 2 Question 97 Discussion

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

SIMULATION

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

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


Contribute your Thoughts:

0/2000 characters
Cassi
1 day ago
Just a reminder, you need to specify the correct ports for each container!
upvoted 0 times
...
Raina
15 days ago
I practiced creating pods with multiple containers, but I can't remember if I need to include resource limits for each container in this case.
upvoted 0 times
...
Taryn
20 days ago
I feel a bit uncertain about the order of the images; should I list them in a specific way when defining the pod?
upvoted 0 times
...
Jacklyn
25 days ago
This seems similar to a practice question we did on containers, but I can't recall if we had to specify ports for each one.
upvoted 0 times
...
Yen
1 month ago
I think I remember how to create a pod, but I'm not sure about the exact syntax for multiple containers.
upvoted 0 times
...

Save Cancel