aws / aws-app-mesh-controller-for-k8s

A controller to help manage App Mesh resources for a Kubernetes cluster.
Apache License 2.0
187 stars 109 forks source link

Support Kubernetes DNS resolver #15

Open stefanprodan opened 5 years ago

stefanprodan commented 5 years ago

App Mesh virtual services should behave similar to the Kubernetes DNS resolver. If I create a virtual service called backend in the test namespace, the backend app should be reachable inside the mesh at the following addresses:

nckturner commented 5 years ago

For this, I think we should create multiple virtual services in the App Mesh API, and give them all the same virtual router provider. For example, if the user creates a virtual service called backend in the test namespace, (AND there is a Kubernetes service called backend in the test namespace) then we should also create backend.test, backend.test.svc, and backend.test.svc.cluster.local.

I'm basing this off the contents of the resolv.conf in a pod in my cluster:

# cat /etc/resolv.conf
nameserver 10.100.0.10
search appmesh-demo.svc.cluster.local svc.cluster.local cluster.local us-west-2.compute.internal
options ndots:5
stefanprodan commented 5 years ago

If all virtual services will use the same virtual router that should work fine.

ar4096 commented 2 years ago

@Y0Username @cgchinmay Lets review this issue to see what the customer ask is.