Lab: CKA Mock Exam 1:

Question:

kubectl config use-context cluster4

We tried to schedule grey-cka21-trb pod on cluster4 which was supposed to be deployed by the kubernetes scheduler so far but somehow its stuck in Pending state. Look into the issue and fix the same, make sure the pod is in Running state.

You can SSH into the cluster4 using ssh cluster4-controlplane command.

Answer:

The issue fixed in the scheduler pod and the scheduler pod is running but the scheduled pod grey is not running because of the image issue.

The same issue in some other pods as well.

Logs:
cluster4-controlplane ~ ➜ k logs pods/grey-cka21-trb
Error from server (BadRequest): container “nginx” in pod “grey-cka21-trb” is waiting to start: trying and failing to pull image

Events:

Events:
Type Reason Age From Message


Normal Scheduled 109s default-scheduler Successfully assigned default/grey-cka21-trb to cluster4-node01
Warning Failed 37s (x2 over 87s) kubelet Failed to pull image “nginx:1.14.2”: failed to pull and unpack image “docker.io/library/nginx:1.14.2”: failed to copy: httpReadSeeker: failed open: unexpected status code https://registry-1.docker.io/v2/library/nginx/manifests/sha256:f7988fb6c02e0ce69257d9bd9cf37ae20a60f1df7563c3a2a6abe24160306b8d: 429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: Understanding Your Docker Hub Rate Limit | Docker
Warning Failed 37s (x2 over 87s) kubelet Error: ErrImagePull
Normal BackOff 26s (x2 over 87s) kubelet Back-off pulling image “nginx:1.14.2”
Warning Failed 26s (x2 over 87s) kubelet Error: ImagePullBackOff
Normal Pulling 15s (x3 over 109s) kubelet Pulling image “nginx:1.14.2”

Hi @borystsolin Ok Noted.Please inform us once the issue is fixed it would be good for us to start using the lab.