mirror of https://github.com/linkerd/linkerd2.git
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> |
||
---|---|---|
.. | ||
api | ||
cmd | ||
gen | ||
heartbeat | ||
identity | ||
k8s | ||
proxy-injector | ||
script/destination-client | ||
sp-validator | ||
tap | ||
webhook | ||
Dockerfile |