Create and configure the service front-end-service so it's accessible through NodePort and routes to the existing pod named front-end.
Solution:
solution
F:WorkData Entry WorkData Entry20200827CKA8 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
Create a deployment as follows:
Name: nginx-random
Exposed via a service nginx-random
Ensure that the service & pod are accessible via their respective DNS records
The container(s) within any pod(s) running as a part of this deployment should use the nginx Image
Next, use the utility nslookup to look up the DNS records of the service & pod and write the output to
/opt/KUNW00601/service.dns and /opt/KUNW00601/pod.dns respectively.
Solution:
Solution:
F:WorkData Entry WorkData Entry20200827CKA17 C.JPG
F:WorkData Entry WorkData Entry20200827CKA17 D.JPG
F:WorkData Entry WorkData Entry20200827CKA17 E.JPG
Does this meet the goal?
Correct Answer:
A
Set the node named ek8s-node-1 as unavailable and reschedule all the pods running on it.
Solution:
solution
F:WorkData Entry WorkData Entry20200827CKA19 B.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