Create a file:
/opt/KUCC00302/kucc00302.txtthatlists all pods that implement servicebazin namespacedevelopment.
The format of the file should be onepod name per line.
Solution:
solution
F:WorkData Entry WorkData Entry20200827CKA11 B.JPG
F:WorkData Entry WorkData Entry20200827CKA11 C.JPG
F:WorkData Entry WorkData Entry20200827CKA11 D.JPG
Does this meet the goal?
Correct Answer:
A
For this item, you will havetosshto the nodesik8s-master-0andik8s-node-0and complete all tasks on thesenodes. Ensure that you return tothe base node (hostname:node-1) when you havecompleted this item.
Context
As an administrator of a smalldevelopment team, you have beenasked to set up a Kubernetes clusterto test the viability of a newapplication.
Task
You must usekubeadmto performthis task. Anykubeadminvocationswill require the use of the
--ignore-preflight-errors=alloption. Configure thenodeik8s-master-Oas a masternode. .
Join the nodeik8s-node-otothe cluster.
Solution:
solution
You must use thekubeadmconfiguration file located at/etc/kubeadm.confwhen initializingyour cluster.
You may use any CNI pluginto complete this task, but ifyou don't have your favouriteCNI plugin's manifest URL athand, Calico is one popularoption:https://docs.projectcalico.org/v3.14/manifests/calico.yaml
Docker is already installedon both nodes andapthasbeen configured so that you caninstall the required tools.
Does this meet the goal?
Correct Answer:
A
List all the pods sorted by name
Solution:
kubectl get pods --sort-by=.metadata.name
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
Create a pod as follows: Name:non-persistent-redis
container Image:redis
Volume with name:cache-control
Mount path:/data/redis
The pod should launch in thestagingnamespace and the volumemust notbe persistent.
Solution:
solution
F:WorkData Entry WorkData Entry20200827CKA13 B.JPG
F:WorkData Entry WorkData Entry20200827CKA13 C.JPG
F:WorkData Entry WorkData Entry20200827CKA13 D.JPG
Does this meet the goal?
Correct Answer:
A