linkerd2/controller/k8s
Alex Leong 50b6a17e68
Add support for federated services to the service mirror controller (#13269)
When the service mirror controller detects a service in the remote cluster which matches the federated service selector (`mirror.linkerd.io/federated=memeber` by default), it will add that service to the federated service in the local cluster named `<svc>-federated`, creating this service if it does not already exist.  To join a service to a federated service, it is added to the `multicluster.linkerd.io/remote-discovery` annotation on the federated service which contains a comma separated list of values in the form `<svc>@<cluster>`.  When a remote service no longer exists or matches the federated service selector, it is removed from the federated service by removing it from the `mutlicluster.linkerd.io/remote-discovery` annotation.

We also add a new `local-service-mirror` deployment to the Linkerd-multicluster extension which watches the local cluster for any services which match the federated service selector.  Any services in the local cluster which match will be added to the federated service by setting the `mutlicluster.linkerd.io/local-discovery` annotation on the federated service to the local service name.

Signed-off-by: Alex Leong <alex@buoyant.io>
2024-11-08 09:34:29 -08:00
..
api.go Add `accessPolicy` field to Server CRD (#12845) 2024-07-22 09:01:09 -05:00
api_resource.go Add `accessPolicy` field to Server CRD (#12845) 2024-07-22 09:01:09 -05:00
api_test.go Use metadata API in the proxy and tap injectors (#9650) 2022-11-16 09:21:39 -05:00
clientset.go smi: remove default functionality in linkerd (#7334) 2021-12-03 12:07:30 +05:30
k8s.go Add support for remote discovery (#11224) 2023-08-11 09:31:45 -07:00
metadata_api.go Fixed destination metrics warning when re-linking (#11253) 2023-08-16 15:27:31 -07:00
prometheus.go Fixed service-mirror metrics warning (#11246) 2023-08-16 13:34:50 -05:00
test_helper.go Add support for federated services to the service mirror controller (#13269) 2024-11-08 09:34:29 -08:00