linkerd2 icon indicating copy to clipboard operation
linkerd2 copied to clipboard

se the default number of replicas of the local service mirror in HA to 3

Open GTRekter opened this issue 2 months ago • 0 comments

Subject: Local Service Mirror in HA mode

Problem: In HA mode, the HA Helm values do not override .Values.localServiceMirror.replicas, which defaults to 1.

Note: The template already sets enablePodAntiAffinity: true, which will automatically create a PodDisruptionBudget and apply the anti-affinity rules.

Solution: Set .Values.localServiceMirror.replicas to 3, matching the Linkerd control plane’s HA settings.

Validation: The following command:

helm upgrade --install multicluster linkerd-buoyant/linkerd-enterprise-multicluster --version 2.18.3 --namespace linkerd-multicluster --create-namespace --set=localServiceMirror.replicas=3 --set=gateway.enabled=true --set=controllers[0].link.ref.name=k3d-01 --set=controllers[1].link.ref.name=k3d-02 

produces the expected result:

kubectl get pods -A
NAMESPACE              NAME                                            READY   STATUS    RESTARTS   AGE
linkerd-multicluster   controller-k3d-01-68cf8f69b8-tgsdb              2/2     Running   0          50s
linkerd-multicluster   controller-k3d-02-d7c58f459-4xstn               2/2     Running   0          50s
linkerd-multicluster   linkerd-gateway-55bc8c7df6-gm4n4                2/2     Running   0          50s
linkerd-multicluster   linkerd-local-service-mirror-7467b486bd-2k2jl   2/2     Running   0          50s
linkerd-multicluster   linkerd-local-service-mirror-7467b486bd-cszrj   2/2     Running   0          50s
linkerd-multicluster   linkerd-local-service-mirror-7467b486bd-tdtrw   2/2     Running   0          50s
...

This confirms the localServiceMirror is running with three replicas as configured.

GTRekter avatar Oct 24 '25 09:10 GTRekter