CKA Mock Exam 5 - Q1 (unable to resolve host)

For q1, after fixing the pods and service, i could get the nginx service pointing to the right pod, endpoints also seemed good.

I could curl the service using http://cluster1-controlplane:30001

But i can’t curl it using the given url.
student-node ~ :heavy_multiplication_x: curl http://kodekloud-exam.app:30001
curl: (6) Could not resolve host: kodekloud-exam.app

image

The port 30001 is a NodePort service port, and in general, it’s not available on the public internet. Apparently, kodekloud-exam.app is not defined in the terminal’s DNS, is all.

The port 30001 is a NodePort service port, and in general, it’s not available on the public internet. Apparently, kodekloud-exam.app is not defined in the terminal’s DNS, so curl cannot resolve that. Any reason you must use that DNS name?

Hey Rob, thanks for the quick reply!

So the solution for the Mock Exam 5 Q1, tasked us to ensure that the nginx service can be accessed through http://kodekloud-exam.app on port 30001.

But as you’ve highlighted it’s unable to resolve the record for that domain name.
So the mock exam marked that questions as wrong.

Here’s the screenshot to that solution

Hi @denzo1 ,

Thanks for highlighting this. The team is working on this.

Regards,

1 Like