ExamGecko
Question list
Search
Search

List of questions

Search

Question 59 - CKA discussion

Report
Export

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 .

A.
See the solution below.
Answers
A.
See the solution below.
Suggested answer: 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

asked 18/09/2024
Yuriy Georgiev
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first