Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

CNAME not working with GKE

Hi,

I have created 2 Private Service Connect for example test.region-psc.mydomain.com and test2.region-psc.mydomain.com 

My main domain is <URL removed by staff> and I have create a CNAME record which point to one of them for example

main.psc.mydomain.com CNAME test.region-psc.mydomain.com

When I try on a GCE instance (debian12) If I do dig and nslookup  of main.psc.mydomain.com I do get 

main.psc.mydomain.com . 300 IN CNAME test.region-psc.mydomain.com then when I dig test.region-psc.mydomain.com I do get my internal IP as this is a PSC

Now when I try on a GKE cluster which is in the same Network as my GCE instance dig is working and nslookup is not working and my application can not resolve main.psc.mydomain.com

If I try to nslookup directly test.region-psc.mydomain.com is works. 

So I don't understand why the cname resolution on main.psc.mydomain.com is failing for lookup.

GKE cluster is a standard cluster, using kubedns

 

 

0 1 166