00:00

QUESTION 6

Exhibit:
CKAD dumps exhibit
Task:
Update the Deployment app-1 in the frontend namespace to use the existing ServiceAccount app.
Solution:
Solution:
Text Description automatically generated
CKAD dumps exhibit

Does this meet the goal?

Correct Answer: A

QUESTION 7

Exhibit:
CKAD dumps exhibit
Task:
Create a Deployment named expose in the existing ckad00014 namespace running 6 replicas of a Pod. Specify a single container using the ifccncf/nginx: 1.13.7 image
Add an environment variable named NGINX_PORT with the value 8001 to the container then expose port 8001
Solution:

Solution:
CKAD dumps exhibit
Text Description automatically generated
CKAD dumps exhibit
Text Description automatically generated
CKAD dumps exhibit

Does this meet the goal?

Correct Answer: A

QUESTION 8

Exhibit:
CKAD dumps exhibit
Context
You are asked to prepare a Canary deployment for testing a new application release.
Task:
A Service named krill-Service in the goshark namespace points to 5 pod created by the Deployment named current-krill-deployment
CKAD dumps exhibit
CKAD dumps exhibit
Solution:
Solution:
CKAD dumps exhibit
Text Description automatically generated
CKAD dumps exhibit
CKAD dumps exhibit

Does this meet the goal?

Correct Answer: A

QUESTION 9

Exhibit:
CKAD dumps exhibit
Task:
The pod for the Deployment named nosql in the craytisn namespace fails to start because its container runs out of resources.
Update the nosol Deployment so that the Pod:
CKAD dumps exhibit
Solution:
Solution:
CKAD dumps exhibit
CKAD dumps exhibit
CKAD dumps exhibit
CKAD dumps exhibit

Does this meet the goal?

Correct Answer: A

QUESTION 10

Exhibit:
CKAD dumps exhibit
Context
A user has reported an aopticauon is unteachable due to a failing livenessProbe . Task
Perform the following tasks:
• Find the broken pod and store its name and namespace to /opt/KDOB00401/broken.txt in the format:
CKAD dumps exhibit
The output file has already been created
• Store the associated error events to a file /opt/KDOB00401/error.txt, The output file has already been created. You will need to use the -o wide output specifier with your command
• Fix the issue.
CKAD dumps exhibit
Solution:

Solution:
Create the Pod: kubectl create
-f http://k8s.io/docs/tasks/configure-pod-container/
exec-liveness.yaml
Within 30 seconds, view the Pod events: kubectl describe pod liveness-exec
The output indicates that no liveness probes have failed yet:
FirstSeen LastSeen Count From SubobjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ ------
24s 24s 1 {default-scheduler } Normal Scheduled Successfully assigned liveness-exec to worker0
23s 23s 1 {kubelet worker0} spec.containers{liveness} Normal Pulling pulling image "gcr.io/google_containers/busybox"
23s 23s 1 {kubelet worker0} spec.containers{liveness} Normal Pulled Successfully pulled image "gcr.io/google_containers/busybox"
23s 23s 1 {kubelet worker0} spec.containers{liveness} Normal Created Created container with docker id 86849c15382e; Security:[seccomp=unconfined]
23s 23s 1 {kubelet worker0} spec.containers{liveness} Normal Started Started container with docker id 86849c15382e
After 35 seconds, view the Pod events again: kubectl describe pod liveness-exec
At the bottom of the output, there are messages indicating that the liveness probes have failed, and the containers have been killed and recreated.
FirstSeen LastSeen Count From SubobjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ ------
37s 37s 1 {default-scheduler } Normal Scheduled Successfully assigned liveness-exec to worker0
36s 36s 1 {kubelet worker0} spec.containers{liveness} Normal Pulling pulling image "gcr.io/google_containers/busybox"
36s 36s 1 {kubelet worker0} spec.containers{liveness} Normal Pulled Successfully pulled image "gcr.io/google_containers/busybox"
36s 36s 1 {kubelet worker0} spec.containers{liveness} Normal Created Created container with docker id 86849c15382e; Security:[seccomp=unconfined]
36s 36s 1 {kubelet worker0} spec.containers{liveness} Normal Started Started container with docker id 86849c15382e
2s 2s 1 {kubelet worker0} spec.containers{liveness} Warning Unhealthy Liveness probe failed: cat: can't open '/tmp/healthy': No such file or directory
Wait another 30 seconds, and verify that the Container has been restarted: kubectl get pod liveness-exec
The output shows that RESTARTS has been incremented:
NAME READY STATUS RESTARTS AGE
liveness-exec 1/1 Running 1 m

Does this meet the goal?

Correct Answer: A