CORRECT TEXT
Create a busybox pod that runs the command “env” and save the output to “envpod” file
Solution:
kubectl run busybox --image=busybox --restart=Never –-rm -it -- env > envpod.yaml
Does this meet the goal?
Correct Answer:
A
CORRECT TEXT
List all the pods showing name and namespace with a json path expression
Solution:
kubectl get pods -o=jsonpath="{.items[*]['metadata.name',
'metadata.namespace']}"
Does this meet the goal?
Correct Answer:
A
CORRECT TEXT
Schedule a pod as follows:
✑ Name: nginx-kusc00101
✑ Image: nginx
✑ Node selector: disk=ssd
Solution:
solution
F:WorkData Entry WorkData Entry20200827CKA6 B.JPGF:WorkData
F:WorkData Entry WorkData Entry20200827CKA6 C.JPG
F:WorkData Entry WorkData Entry20200827CKA6 D.JPG
Does this meet the goal?
Correct Answer:
A
CORRECT TEXT
Check the Image version of nginx-dev pod using jsonpath
Solution:
kubect1 get po nginx-dev -o
jsonpath='{.spec.containers[].image}{"n"}'
Does this meet the goal?
Correct Answer:
A
CORRECT TEXT
List all the pods sorted by name
Solution:
kubect1 get pods --sort-by=.metadata.name
Does this meet the goal?
Correct Answer:
A