This operator has been written to prototype the aggregation layer for Service Mirror.
As mentioned in the issue : linkerd/linkerd2#10747, if Services are mirrored from multiple target cluster, currently Service Mirror create cardinal index for each Target cluster ex X-target1, x-target1.
Using this operator, there will be one additional Service created and managed, to aggregate Services from all this target clusters (along side mirrored services). Ex. x-global it will EndpointSlices from x-target1, x-target2...
We use just
to do local setup.
-
just k3d-create
: Command creates 3 k3d local cluster and it also do chaining calls to setup multicluster environment for linkerd. -
just run
(go run main.go
): Should fireup operator and it will loop for Services labelled usingmirror.linkerd.io/mirrored-service