Enforce EU–US Data Residency during Kubernetes Multi-Cluster Failover with Linkerd
TL;DR
- Linkerd enforces EU-only failover inside the mesh, and it can’t guarantee geography on its own. Full residency also demands network firewalls, EU-pinned data stores, backups, and disaster-recovery targets.
- Use Buoyant’s multi-cluster Linkerd guide for base cluster setup and GitOps workflows. This companion focuses strictly on scoping and locking down EU-only failover.
- Run fail-closed from day 1. You deny backend traffic by default and allow only verified EU workload identities. CNI policies and cloud firewalls then block unmeshed pods and direct US egress.
- You’ll prove enforcement through negative US tests, proxy-bypass checks, live failover drills, and exportable audit logs. A compact comparison at the end stacks Linkerd up against Istio and Cilium.
Locality preference versus fail-closed residency
Locality routing tries to keep traffic nearby for lower latency, and it spills over to distant clusters when local pods fail. Fail-closed residency takes the opposite stance during an outage. If every EU replica dies, traffic drops with an error so regulated data stays inside Europe.
You’ll see how locality preference behaves in Istio’s locality failover docs. Their walkthrough wires up localityLbSetting and outlierDetection on a DestinationRule, then drains the proxy listeners for the region1 and region2 pods one after the other. Traffic flows straight into region3 even though the config never pairs region1 with region3 directly.
Multi-cluster edge cases also break locality routing quietly. In Istio issue #12947, leaving outlierDetection off a DestinationRule caused Istio 1.1.1 to skip LocalityWeightedLbConfig entirely - maintainers confirmed it as a bug in the code that gated that setting on outlierDetection being set.
A similar bug hit Istio 1.20.2 in Istio issue #49500 on Multi-Primary, multi-network clusters. East-west gateways build synthetic endpoints that never carry region and zone labels in the first place, so failoverPriority stopped working altogether. Betting EU compliance on locality routing hands your audit to best-effort load balancing.
A real EU boundary covers 4 separate data paths, and each one sits on a different control surface.
- Live request traffic moves across your service mesh and pod network.
- Primary data stores run in EU-pinned StatefulSets and managed databases.
- Backups and snapshots leave clusters through volume snapshotters and object-storage replication rules.
- Disaster-recovery destinations follow the standby clusters wired into your DNS records and failover runbooks.
No single layer owns all 4 paths. Linkerd governs mesh federation and mTLS workload identity, yet it can’t block an unmeshed pod from hitting a US IP or stop a misconfigured bucket from replicating across the Atlantic.
So you stack 4 independent layers. Linkerd locks down cluster federation and authorization policy at the mesh layer, and Kubernetes NetworkPolicy and cloud firewalls block direct US egress at the network layer. Region-pinned storage and disaster-recovery controls keep data at rest inside the EU, and negative tests prove the boundary holds during real outages.
What Buoyant’s broad multi-cluster guide already covers
If you haven’t linked your Kubernetes clusters yet, start with Buoyant’s production multi-cluster guide. That guide covers GitOps workflows, declarative Link resources, gateway configuration, and general service federation.
Watch out for 2 claims in that guide before you lean on them for compliance. The guide’s body says proxy enforcement “can’t be bypassed,” yet unmeshed pods and node-level traffic skip the Linkerd proxy completely.
And the FAQ puts federated services on gateways too, even though the Linkerd 2.20 multi-cluster reference restricts federation to flat networks.
This guide picks up after cluster linking with EU-only scoping and fail-closed enforcement. You’ll verify those controls with negative tests that produce auditor-grade proof.
Designing the EU-only topology
Start with a concrete 3-cluster sample (eu-primary, eu-secondary, and us, using your own kubeconfig context names). Regulated EU workloads run in eu-primary and eu-secondary, and both clusters need to fail over to each other during an outage.
Here’s the permitted link map for regulated services.
eu-primary <-- Link (bidirectional) --> eu-secondary
us (no Link to EU clusters, never a federated member)
eu-primary and eu-secondary exchange declarative Link resources - fully declarative and GitOps-manageable since Linkerd 2.18 - so each cluster discovers the other’s workloads. us runs the same application stack for American users, and it stays out of the EU link graph completely.
The Linkerd 2.20 multicluster reference defines 2 cross-cluster modes, plus federated services as a feature layered on top of flat mode. Hierarchical mode sends cross-cluster traffic through a gateway (mirror.linkerd.io/exported=true by default) and doesn’t carry original client identity end to end. Flat mode connects pods directly across clusters (mirror.linkerd.io/exported=remote-discovery by default) and preserves the original caller’s identity.
Federated services run only on flat networks with no gateway. Per the Linkerd multicluster feature docs, they require meshed clients and a common trust root, and they don’t support headless services.
That flat-network model is where residency breaks if your labels drift. When you label a service mirror.linkerd.io/federated=member in linked clusters that share a service name and namespace, Linkerd generates a <svc-name>-federated service. That federated service load-balances across every member replica in every linked cluster.
A single shared Helm chart or GitOps template can blow past your regional boundary in seconds. If us holds a Link to eu-primary and deploys that chart with mirror.linkerd.io/federated=member, Linkerd pulls those US pods straight into the EU backend pool. EU requests bleed into us during normal traffic and surge there when eu-primary goes down.
So your real control point is cluster scope. Routing rules arrive after discovery has already folded remote endpoints into the pool.
Keep us outside the EU multicluster operator’s scope, with no Link resources or mirror credentials connecting it to either EU cluster. Without that Link, a stray label in us has nowhere to go.
Govern alternate export labels too. Block mirror.linkerd.io/exported=remote-discovery and mirror.linkerd.io/exported=true on any US service that an EU cluster could discover, and audit your mirrored-service list for stray remote targets. Removing a Link stops mesh discovery, though it won’t stop an unmeshed pod from dialing a US IP directly.
Runnable controls: federation, Server, and AuthorizationPolicy
Treat the manifests below as a starting sample. Swap in your real namespaces, service accounts, trust domain, and cluster CIDRs before applying them to eu-primary and eu-secondary.
Start by opting your regulated backend into federation only on the 2 EU clusters. Per the Linkerd 2.20 multi-cluster reference, Linkerd pulls every flat-network Service carrying mirror.linkerd.io/federated=member into a generated ledger-api-federated endpoint, so don’t apply that label in us. Headless services can’t be federated under Linkerd’s multi-cluster rules, so stick to a standard ClusterIP Service.
# Sample only. Apply in eu-primary and eu-secondary, never in us.
apiVersion: v1
kind: Service
metadata:
name: ledger-api
namespace: eu-payments
labels:
mirror.linkerd.io/federated: member
spec:
selector:
app: ledger-api
ports:
- name: grpc
port: 8443
targetPort: 8443
Out of the box, Linkerd sets proxy.defaultInboundPolicy to all-unauthenticated, which lets any pod talk to your backend. Adding a Server resource on the backend port flips that port to deny-by-default for unmatched traffic, as documented in the Linkerd 2.20 authorization policy reference.
Pair that Server with an AuthorizationPolicy and a MeshTLSAuthentication in the same namespace. List each allowed EU service account identity explicitly (skip wildcards), and swap cluster.local for your actual shared trust domain.
# Sample policy for eu-primary and eu-secondary. Adapt names and trust domain.
apiVersion: policy.linkerd.io/v1beta1
kind: Server
metadata:
name: ledger-api-grpc
namespace: eu-payments
spec:
podSelector:
matchLabels:
app: ledger-api
port: grpc
---
apiVersion: policy.linkerd.io/v1alpha1
kind: MeshTLSAuthentication
metadata:
name: eu-checkout-callers
namespace: eu-payments
spec:
identities:
- "eu-checkout-primary.eu-payments.serviceaccount.identity.linkerd.cluster.local"
- "eu-checkout-secondary.eu-payments.serviceaccount.identity.linkerd.cluster.local"
---
apiVersion: policy.linkerd.io/v1alpha1
kind: AuthorizationPolicy
metadata:
name: allow-eu-checkout
namespace: eu-payments
spec:
targetRef:
group: policy.linkerd.io
kind: Server
name: ledger-api-grpc
requiredAuthenticationRefs:
- group: policy.linkerd.io
kind: MeshTLSAuthentication
name: eu-checkout-callers
Linkerd mTLS verifies identity inside a trust domain. Physical geography sits outside what a client certificate checks.
If someone deploys the eu-checkout-primary service account into your us cluster under the same trust root, Linkerd accepts that certificate and passes the request through. Source identity propagation also works differently over gateway hops than on flat-network paths, so keep regulated calls on flat-network discovery when you need original caller checks.
And AuthorizationPolicy only governs traffic entering the Linkerd proxy. A Server won’t stop an unmeshed pod from hitting your backend IP directly or opening arbitrary outbound connections. Your CNI network policies and admission controls have to seal off those bypass paths.
Network-layer and storage controls that close the gap
Linkerd’s AuthorizationPolicy only governs connections entering a meshed proxy. Workloads bypass that proxy through unmeshed pods, direct pod-IP calls, hostNetwork daemons, and direct egress to US infrastructure. Even after you strip the us cluster out of federation, a workload in eu-primary can still dial a US database IP directly.
Pod egress and NetworkPolicy limits
Lock down pod egress with a Kubernetes NetworkPolicy that isolates regulated namespaces and opens only DNS plus your verified EU CIDRs. Swap the placeholder range below for real EU IPv4 and IPv6 blocks before running this manifest against your clusters.
# Sample only, requires an enforcing CNI and real EU CIDRs
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: eu-only-egress
namespace: payments
spec:
podSelector: {}
policyTypes:
- Egress
egress:
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: kube-system
ports:
- protocol: UDP
port: 53
- protocol: TCP
port: 53
- to:
- ipBlock:
cidr: <EU_ALLOWED_CIDR>
Kubernetes accepts NetworkPolicy objects and silently ignores them if your CNI plugin doesn’t enforce them. Pod egress starts wide open by default, and policies work as additive allowlists (a single loose rule in the same namespace reopens the hole).
NetworkPolicy behavior for hostNetwork pods is undefined by the spec, and in the most common implementation, traffic to and from a pod’s resident node is always allowed regardless of policy. You also can’t target Kubernetes Services by name or get native blocked-connection logs from it.
ipBlock rules target cluster-external addresses, and their behavior shifts across CNIs when NAT or Services get involved. So an ipBlock allowlist alone won’t prove cross-cluster residency.
Admission and cloud-network controls
Admission controls close those pod-level escapes in every regulated namespace. Configure them to reject hostNetwork pods and privileged containers. You should also require Linkerd proxy injection so unmeshed workloads never schedule.
Enforce the geographic perimeter outside Kubernetes. Your VPC route tables and cloud egress firewalls need to lock outbound traffic to EU destinations across both IPv4 and IPv6.
Those cloud rules drop direct pod-IP and node-sourced traffic before it hits US gateways or external US services. Pair them with destination-side ingress rules on your EU endpoints so both ends of every permitted path verify the connection.
Where stored data and backups land
Network rules only police packets on the wire. Managed databases and backup agents replicate data straight over cloud APIs that never cross your service mesh or pod firewalls.
Pin primary data stores and object storage buckets to EU regions with cloud-level location constraints. Automated snapshots and disaster-recovery replication targets require the same region pinning (1 forgotten US backup bucket breaks EU residency silently during a failover).
Proving it: negative tests, failure drills, and audit evidence
Applied YAML shows what you meant to enforce, and negative tests prove your clusters actually obey it.
Linkerd alone can’t guarantee physical geography, because mTLS identity only attests a service account and a trust domain. The certificate doesn’t know where a node sits, so your test plan has to break both mesh rules and network boundaries on purpose.
Meshed and unmeshed bypass tests
Start with a meshed bypass from a pod in eu-primary whose service account sits outside your MeshTLSAuthentication list. When your Server and AuthorizationPolicy work as written, Linkerd’s proxy rejects the request with HTTP 403 (or drops raw TCP) and increments its inbound authorization deny counters.
Unmeshed paths need their own check, because Linkerd’s authorization policy can’t govern traffic that skips the proxy. Launch an unmeshed pod in eu-primary and dial a us pod IP and a US storage endpoint directly.
Node-level traffic slips past pod rules too: Kubernetes NetworkPolicy leaves hostNetwork behavior undefined, and traffic to and from a pod’s resident node is always allowed regardless of policy. Schedule a hostNetwork pod to confirm your admission controller rejects the spec. Run a curl from a worker node afterward to confirm your CNI or cloud egress firewall drops direct packets to us ranges with a timeout or reset.
# Meshed unauthorized caller hits the federated EU backend (expect 403)
kubectl --context eu-primary -n probe-unauth exec deploy/probe -- \
curl -sS -o /dev/null -w "%{http_code}\n" \
http://<svc>-federated.<namespace>.svc.cluster.local:8080
# Unmeshed pod dials a US pod IP or external endpoint (expect timeout)
kubectl --context eu-primary -n probe-unmeshed run egress-check --rm -it \
--restart=Never --image=curlimages/curl -- \
curl -m 5 -v https://<us-endpoint-ip>
EU-only failover drill
Once every bypass test fails closed, break eu-primary on purpose. Drain the regulated backend in eu-primary while a steady probe hits <svc>-federated, and verify that requests shift to eu-secondary with 0 packets reaching us.
Then kill eu-secondary in staging too. The federated endpoint must fail with errors and leave us untouched. Check us ingress logs and proxy metrics right after the drill to confirm 0 inbound requests arrived from either EU cluster.
Audit artifacts to export
Auditors rarely get live cluster access, so you’ll want a timestamped evidence bundle tied to the Git commit SHA of your manifests after every drill. Native Kubernetes NetworkPolicy doesn’t emit security logs at all, so your denied-egress proof has to come from your CNI or cloud firewall.
Export 4 artifacts into immutable storage after each run.
- Proxy metrics snapshots from Prometheus confirm inbound policy denials from your bypass tests and 0 EU-origin requests inside
usproxies. - Policy and admission logs from Linkerd proxies and the Kubernetes API server capture
Server,AuthorizationPolicy,Link, and rejectedhostNetworkevents. - Network deny records from CNI flow logs or cloud VPC firewalls show dropped egress from EU subnets to US CIDRs.
- Regional placement records from cloud provider state or backup policies verify EU-only storage for databases and DR targets.
Verification gates before you call this production-ready
You can’t ship these manifests to production until they pass 4 gates on your own pinned versions and infrastructure.
- Run
kubectl apply --dry-run=serveron your exact Kubernetes and Linkerd releases before applying anything to staging. Confirm your cluster’s CRDs accept the LinkerdServerand policy schemas (v1beta1andv1alpha1in Linkerd 2.20) with zero deprecation warnings or rejected fields. - Verify your CNI enforces default-deny egress while keeping EU DNS reachable. Send traffic to a
usendpoint from an unmeshed pod and ahostNetworkworkload, and watch your network layer drop both attempts. - Drain
eu-primaryunder active load so traffic shifts toeu-secondary. Then takeeu-secondaryoffline to make sure callers fail closed with errors once EU capacity runs out. - Check destination geography across live requests and persistence targets during the drill. Inspect your egress firewall logs and backup or storage endpoints to prove every packet and snapshot lands inside EU regions (mTLS identity checks the caller’s service account, so you’ll need firewall and cloud logs to confirm physical location).
Linkerd, Istio, and Cilium for EU-only enforcement
None of these 3 tools guarantees physical geography on its own. Each one draws a different boundary between routing preference and hard enforcement during failover.
| Capability | Linkerd | Istio | Cilium |
|---|---|---|---|
| Locality and failover | Federated services balance across all member clusters on flat networks. Exclude US clusters from membership to block failover there. | DestinationRule uses localityLbSetting and outlierDetection to prefer local zones, then spills across regions under failure. | Cluster Mesh discovers and balances across clusters via MCS-API and Cilium Global Services. |
| Identity enforcement | Strict mTLS by default. Pair Server and AuthorizationPolicy with explicit identities since inbound defaults to all-unauthenticated. | Sidecar mode defaults to PERMISSIVE mTLS until you enforce strict policy. Ambient splits L4 mTLS (ztunnel) from L7 waypoints. | eBPF identity at L3/L4. Documented rework around its mutual authentication model can complicate compliance audits. |
| Network-layer enforcement | None. Pair with a CNI and cloud firewalls to catch unmeshed and host-network paths. | None at the CNI layer. Pair with NetworkPolicy and cloud routing controls. | Native CiliumNetworkPolicy and CiliumClusterwideNetworkPolicy enforce L3/L4 egress and ingress. |
| Multi-cluster maturity | Mature flat-network federation with declarative Link resources and GA per-request gRPC load balancing. | Mature in sidecar mode across multi-primary topologies. Ambient multi-network multi-cluster sits in beta (Feb 2026). | Mature at L3/L4 across clusters. Cross-cluster L7 routing and failover lag behind sidecar meshes. |
| Documented limits | Linkerd 2.17+ federation requires flat networks and skips headless services. | In Istio 1.20.2, failoverPriority broke across multi-network gateways that drop zone labels. Missing outlierDetection historically skipped locality rules. | gRPC load balancing stays in beta through Cilium 1.20 (current stable), and per-node Envoy proxies widen L7 blast radius. |
Linkerd fits if you want clear EU-only membership boundaries and mature L7 failover without Istio’s operational weight. You still bolt on CNI and cloud egress rules because Linkerd’s proxy can’t see unmeshed pods.
Istio gives you detailed locality routing knobs, and those knobs can trip you up. Locality failover prefers nearby regions before spilling over to distant ones, and gateway label stripping in multi-network setups breaks failoverPriority when you expect strict ordering.
Cilium owns the L3/L4 network layer natively (handy for blocking raw US IPs at the kernel). If your regulated workloads lean on gRPC-heavy L7 routing or auditor-ready mTLS, Cilium’s per-node Envoy proxy model and its still-beta mutual authentication rework create real gaps.
Conclusion
EU residency during failover holds up only when every layer enforces the same regional boundary. Inside your EU clusters, Linkerd handles meshed discovery and mTLS identity, and your CNI, cloud firewalls, admission checks, and storage policies close every path outside Linkerd’s proxy.
Linkerd alone can’t guarantee geography. One unmeshed pod or a misconfigured backup job can still reach a US endpoint without touching Linkerd.
So run every verification gate against your own pinned Linkerd and Kubernetes versions before you trust any sample manifest in production. You won’t know your controls hold until a live failover drill proves your infrastructure blocks both meshed and unmeshed US traffic.
FAQ
Can Linkerd alone satisfy GDPR data residency?
No. Linkerd’s mTLS proves workload identity and says nothing about geography, and its proxy can’t stop unmeshed pods, hostNetwork traffic, external databases, or off-cluster backups. Pair it with CNI or cloud egress blocks and admission policies, then pin databases and backups to EU regions.
What happens if eu-secondary fails and no EU capacity remains?
Requests fail closed and return errors to callers. Because us isn’t a federated member and your egress rules drop US destinations, traffic stays inside the EU during a full regional outage. You trade cross-region availability for a hard compliance boundary.
How do federated services differ from the older ServiceMirror and TrafficSplit pattern?
The older workflow routed exported traffic through cluster gateways and split weights with SMI TrafficSplit. Federated services run on a flat network with no gateway, need meshed clients and a shared trust root, and balance directly across member pods while keeping client identity.
What does an auditor actually need to see?
Auditors want exported runtime evidence next to your Git manifests. Hand over CNI or cloud firewall deny logs, Linkerd proxy authorization metrics, negative test outputs, failover drill records with EU-only destination IPs, and regional config exports for databases and backups.