Scale the deploymentwebserverto6pods.
Solution:
solution
F:WorkData Entry WorkData Entry20200827CKA14 B.JPG
Does this meet the goal?
Correct Answer:A
Create a pod that echo ??hello world?? and then exists. Have the pod deleted automatically when it??s completed
Solution:
kubectl run busybox --image=busybox -it --rm --restart=Never -
/bin/sh -c 'echo hello world'
kubectl get po # You shouldn't see pod with the name "busybox"
Does this meet the goal?
Correct Answer:A
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
Schedule a pod as follows:
Name: nginx-kusc00101
Image: nginx
Node selector: disk=ssd
Solution:
solution
F:WorkData Entry WorkData Entry20200827CKA6 B.JPG
F:WorkData Entry WorkData Entry20200827CKA6 C.JPG
F:WorkData Entry WorkData Entry20200827CKA6 D.JPG
Does this meet the goal?
Correct Answer:A