Hello all, I'm currently doing the practice test for namespaces. Correct me if i . . .

John Huynh:
Hello all, I’m currently doing the practice test for namespaces. Correct me if im wrong, but when I look at the db-service from the namespace “marketing”, its name is “mysql-db”. So I thought that in the blue-application-ui, in order to access this service only by name I tried to put in “mysql-db” with port “3306” and it doesn’t work. However, with “db-service” it does work. Shouldn’t it be “mysql-db” though, since this is the correct name?

Kind regards,

John

Duy Tran:
you can use only service name if within the pod of app is the same namespace with db-service

Duy Tran:
if in diff namespace, you must input the ns follow on: <svc name>.<namespace-name>

John Huynh:
Yes, but my question was related to another thing. Let me elaborate. In this picture you see the name of the pod is “myql-db” but the correct answer is “db-service”. But why?

Tej_Singh_Rana:
Do kubectl get svc -n marketing

John Huynh:
Thank you!

Tej_Singh_Rana:
Hint is not helpful or insufficient information?

John Huynh:
It has actually helpful information. I just didn’t know how to list the services

John Huynh:
and was just confused about the mysql-db pod

Duy Tran:
this case, the info given in the choice is incorrect based on the screen.