Ultimate CKA Mock Exam Series

I had a problem with the following question on the Ultimate CKa Mock Exam Series Mock Exam 1:

For this question, please set the context to cluster4 by running:

kubectl config use-context cluster4

The pink-depl-cka14-trb Deployment was scaled to 2 replicas however, the current replicas is still 1.

Troubleshoot and fix this issue. Make sure the CURRENT count is equal to the DESIRED count.

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

I fixed the problem which was with the controller-manager manifest. It had a typo so I corrected that and the controller-manager pod was running again. However the pods would not start for the deployment, they had an ImagePullBackOff. Here is the events:

Events:
Type Reason Age From Message


Normal Scheduled 42s default-scheduler Successfully assigned default/pink-depl-cka14-trb-599f86fb8f-sm88s to cluster4-node01
Normal BackOff 15s (x2 over 40s) kubelet Back-off pulling image “Google Cloud console”
Warning Failed 15s (x2 over 40s) kubelet Error: ImagePullBackOff
Normal Pulling 3s (x3 over 40s) kubelet Pulling image “gcr.io./google_samples/gb-frontend:v3”
Warning Failed 3s (x3 over 40s) kubelet Failed to pull image “Google Cloud console”: rpc error: code = Unknown desc =
failed to pull and unpack image “Google Cloud console”: failed to resolve reference “Google Cloud console”: failed to do
request: Head “Google Cloud console”: dial tcp: lookup Google Cloud console on 172.25.0.1:53: no such host

I don’t think this was supposed to be one of the problems. It was not listed in the solution.

It’s actually common for Troubleshooting problems to have more than one thing wrong. I can’t tell from the event list what exactly the problem is, although you should probably look at the YAML for the pod. The image " gcr.io./google_samples/gb-frontend:v3" contains an extra period (“.”) which doesn’t belong there; this would cause loading the image to fail.

That said – we were having some problems with kodekloud.com in the last few hours, so it’s possible that there was some kind of networking glitch that affected your lab. You might try the problem again and see if it persists.

If this is the question I think it is, there’s something like 3 errors to find.

You have to solve each issue to find the next one.

actually the period in the image name is a typo from me. I was playing around with the name to see if I could get it to pull the image and just forgot to take it out. it was still failing without the extra period in there.

an image pull error was not listed in the solution as one of the errors we were supposed to have.

i’m back doing one of the mock exams and I got this question again. there is still an ErrImagePull for gcr.io/google_samples/gb-frontend:v3:

Failed to pull image “Google Cloud console”: rpc error: code = NotFound desc = failed to pull and unpack image “Google Cloud console”: failed to resolve reference “Google Cloud console”: gcr.io/google_samples/gb-frontend:v3: not found

This appears to be true; I just did a test locally, and gcr.io/google_samples/gb-frontend:v3 isn’t found for me either. This might or might not be an error you’re supposed to fix, although I don’t see how you’d know what image to change that to :slight_smile: Might indeed be an error in the mock exam.

I’ve flagged this for our lab team, who can hopefully replace the image with something else.

1 Like