Hi everyone, I just failed two questions on KodeKloud on Network Policies. Then . . .

Salathiel Genèse YIMGA YIMGA:
Hi everyone,

I just failed two questions on KodeKloud on Network Policies. Then, watch the solution. My questions…

When to use <service-name>.svc.cluster.local and when to settle for <service-name> ?
I seen the correction used the latter. Is that why me using the former didn’t work? What’s even the difference between them?

unnivkn:
<service-name> –> This is service name
<service-name>.svc.cluster.local –> This is service name with fqdn(fully qualified domain name)
you can use any one of this.

https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/

unnivkn:
https://medium.com/kubernetes-tutorials/kubernetes-dns-for-services-and-pods-664804211501

Salathiel Genèse YIMGA YIMGA:
Okay, thank you.

Salathiel Genèse YIMGA YIMGA:
I am now left wondering what I did wrong.

Salathiel Genèse YIMGA YIMGA:
I hope I’ll repeat the same mistake and debug it before taking the exam :slightly_smiling_face: