Create a deployment as follows:
Name:nginx-app
Using containernginxwithversion 1.11.10-alpine
The deployment should contain3replicas
Next, deploy the application with newversion1.11.13-alpine, byperforming a rolling update.
Finally, rollback that update to theprevious version1.11.10-alpine.
Solution:
solution
F:WorkData Entry WorkData Entry20200827CKA7 B.JPG
F:WorkData Entry WorkData Entry20200827CKA7 C.JPG
F:WorkData Entry WorkData Entry20200827CKA7 D.JPG
Does this meet the goal?
Correct Answer:A
Check to see how many worker nodes are ready (not including nodes taintedNoSchedule) and write the number to/opt/KUCC00104/kucc00104.txt.
Solution:
solution
F:WorkData Entry WorkData Entry20200827CKA15 B.JPG
F:WorkData Entry WorkData Entry20200827CKA15 C.JPG
Does this meet the goal?
Correct Answer:A
List the nginx pod with custom columns POD_NAME and POD_STATUS
Solution:
kubectl get po -o=custom-columns="POD_NAME:.metadata.name, POD_STATUS:.status.containerStatuses[].state"
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
List all the pods sorted by created timestamp
Solution:
kubect1 get pods--sort-by=.metadata.creationTimestamp
Does this meet the goal?
Correct Answer:A
Create a busybox pod and add ??sleep 3600?? command
Solution:
kubectl run busybox --image=busybox --restart=Never -- /bin/sh -c "sleep 3600"
Does this meet the goal?
Correct Answer:A