linkerd2/controller
Alex Leong 755538b84a
Resolve gateway hostnames into IP addresses (#4588)
Fixes #4582 

When a target cluster gateway is exposed as a hostname rather than with a fixed IP address, the service mirror controller fails to create mirror services and gateway mirrors for that gateway.  This is because we only look at the IP field of the gateway service.

We make two changes to address this problem:
 
First, when extracting the gateway spec from a gateway that has a hostname instead of an IP address, we do a DNS lookup to resolve that hostname into an IP address to use in the mirror service endpoints and gateway mirror endpoints.

Second, we schedule a repair job on a regular (1 minute) to update these endpoint objects.  This has the effect of re-resolving the DNS names every minute to pick up any changes in DNS resolution.

Signed-off-by: Alex Leong <alex@buoyant.io>
2020-06-15 10:33:49 -07:00
..
api Fix mc labels (#4560) 2020-06-05 19:36:09 +03:00
cmd Resolve gateway hostnames into IP addresses (#4588) 2020-06-15 10:33:49 -07:00
gen Add gateways command, allowing the retrieval of gateway stats (#4241) 2020-04-27 13:55:01 +03:00
heartbeat Upgrade prometheus to v1.2.1 (#3541) 2019-12-11 15:26:16 -08:00
identity Cert manager support (#3600) 2019-10-24 13:15:14 -07:00
k8s Properly show the meshed count for non-selector services (#4446) 2020-05-20 10:08:27 -07:00
proxy-injector multicluster: Use the proxy as an HTTP gateway (#4528) 2020-06-02 19:37:14 -07:00
script/destination-client Remove Discovery service leftovers (#3500) 2019-10-15 11:20:21 -05:00
sp-validator Have the proxy-injector emit events upon injection/skipping injection (#3316) 2019-08-26 13:34:36 -05:00
tap Make gateway require TLS for incoming requests (#4339) 2020-05-11 10:07:48 +03:00
webhook Service Mirroring Component (#4028) 2020-03-02 21:16:08 +02:00
Dockerfile Add --close-wait-timeout inject flag (#4409) 2020-05-21 14:14:14 -07:00