I have Twingate connectors deployed in my Kubernetes cluster via the Helm chart. Once I allow access to the Services subnet, I can access them locally via IP. Like so:
> curl 10.32.14.162/health
{"status":200}
But , when I try to use the the Kubernetes DNS name, it hangs and then can’t find the host (I have validated that this is the correct DNS name from within the k8s cluster):
> curl test-app.default.svc.cluster.local/health
curl: (6) Could not resolve host: test-app.default.svc.cluster.local
Looking up the DNS values returns nothing, forward and reverse.
# Redacting some IP values in case they are sensitive
> nslookup 10.32.14.162
Server: 100.x.x.x
Address: 100.x.x.x#53
** server can't find x.x.x.x in-addr.arpa: NXDOMAIN
> nslookup test-app.default.svc.cluster.local
Server: 100.x.x.x
Address: 100.x.x.x#53
** server can't find test-app.default.svc.cluster.local: NXDOMAIN
I also tried deploying the connector with connector.dnsServer
set to the value of my Kubernetes DNS server, but it had no effect.
According to this article, the connector should use the private DNS server in its domain. This is not the case for my deployment, however.
Anything I’m missing here? My goal here is to be able to hit a service via the Service name as if you are inside the Kubernetes cluster.
Thanks for any help!