Get list of all pods in all namespaces and write it to file “/opt/pods-list.yaml”
Solution:
kubectl get po –all-namespaces > /opt/pods-list.yaml
Does this meet the goal?
Correct Answer:A
Create a Kubernetes secret as follows:
Name: super-secret
password: bob
Create a pod named pod-secrets-via-file, using the redis Image, which mounts a secret named super-secret at /secrets.
Create a second pod named pod-secrets-via-env, using the redis Image, which exports password as
CONFIDENTIAL
Solution:
solution
F:WorkData Entry WorkData Entry20200827CKA12 B.JPG
F:WorkData Entry WorkData Entry20200827CKA12 C.JPG
F:WorkData Entry WorkData Entry20200827CKA12 D.JPG
Does this meet the goal?
Correct Answer:A
Score: 5%
Task
From the pod label name=cpu-utilizer, find pods running high CPU workloads and write the name of the pod consuming most CPU to the file /opt/KUTR00401/KUTR00401.txt (which already exists).
Solution:
Solution:
kubectl top -l name=cpu-user -A
echo 'pod name' >> /opt/KUT00401/KUT00401.txt
Does this meet the goal?
Correct Answer:A
Check the image version in pod without the describe command
Solution:
kubectl get po nginx -o jsonpath='{.spec.containers[].image}{"\n"}'
Does this meet the goal?
Correct Answer:A
Score: 5%
Task
Monitor the logs of pod bar and:
• Extract log lines corresponding to error file-not-found
• Write them to /opt/KUTR00101/bar
Solution:
Solution:
kubectl logs bar | grep 'unable-to-access-website' > /opt/KUTR00101/bar cat /opt/KUTR00101/bar
Does this meet the goal?
Correct Answer:A