Skip to content
System design on Kubernetes · Chapter 15 of 20 Day 13: Zones – topology spread, PDBs, losing a zone

Day 13: Zones – topology spread, PDBs, losing a zone

Goal: Spread kurz evenly across three zones, drain a node under load and see what gets stuck, and then switch off a whole zone – the one with the database primary. At the end there is a change to kurz that cuts the damage of a zone outage by two thirds · Duration: approx. 120 min · Prerequisite: Day 12

Briefing

  • Each node of the lab stands for one zone: s1 = zone-a, s2 = zone-b, s3 = zone-c (label topology.kubernetes.io/zone, Day 0). If a zone fails, everything in it fails – pods, volumes, the database primary if it is there.
  • Topology spread constraints tell the scheduler how evenly pods should be spread across zones. PodDisruptionBudgets (PDBs) say how many pods may be missing at the same time during planned disruptions (drain, update). Against unplanned outages, a PDB does not help.
  • What happens during a zone outage is decided not only in the manifest but also in the code: how does a pod judge whether it is “ready”?
Term Meaning
maxSkew largest allowed difference in pod count between two zones
DoNotSchedule / ScheduleAnyway hard or soft spreading rule
nodeTaintsPolicy: Honor nodes with taints (e.g. cordoned) do not count for spreading
minAvailable at least this many pods must keep running during a planned disruption
Drain cordon a node and evict pods via the Eviction API – PDBs are respected

Drill 1: What is where?

# on s1
mkdir -p ~/sdk/tag13 && cd ~/sdk/tag13
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
cp ../tag12/codes.txt ../tag12/status2.js ../tag02/mix.js .
# nodes and zones
kubectl get nodes -L topology.kubernetes.io/zone --no-headers | awk '{print $1, $NF}'
# every component with its node (without the random pod suffixes), sorted by node
for ns in kurz nats envoy-gateway-system linkerd keda kube-system; do
  kubectl -n $ns get pods -o custom-columns=NS:.metadata.namespace,NAME:.metadata.name,NODE:.spec.nodeName --no-headers
done | awk '{n=$2; sub(/-[a-z0-9]{8,10}-[a-z0-9]{5}$/,"",n); sub(/-[a-z0-9]{5}$/,"",n); print $3, $1"/"n}' | sort -u
kubectl -n kurz get cluster db -o jsonpath='Primary: {.status.currentPrimary}{"\n"}'

Expected (abridged to the essentials):

s1 zone-a
s2 zone-b
s3 zone-c
s1 kube-system/coredns
s1 kube-system/metrics-server
s1 linkerd/linkerd-destination
s1 linkerd/linkerd-identity
s1 keda/keda-operator
s1 envoy-gateway-system/envoy-ratelimit
s1 kurz/db-1
s1 kurz/kurz
s1 nats/nats-0
s2 envoy-gateway-system/envoy-kurz-web-01987d52
s2 kurz/db-2
s2 kurz/db-pooler-rw
s2 kurz/valkey-cache-1-0-0
s2 nats/nats-1
s3 envoy-gateway-system/envoy-kurz-web-01987d52
s3 kurz/db-3
s3 kurz/kurz
s3 nats/nats-2
Primary: db-2

Two patterns stand out. Almost everything that controls the cluster sits in zone-a: the k3s server, CoreDNS (one pod), the Linkerd control plane, KEDA, the rate limit service. And zone-b carries the database primary, a Valkey primary, a pooler and an Envoy – if it fails, writes and cache are hit at the same time.

Save your progress? Sign up for free

Drill 2: kurz across three zones

Two pods cannot cover three zones. KEDA gets a minimum of three, the Deployment a hard spreading rule. matchLabelKeys: [pod-template-hash] makes sure that during a rollout only the pods of the new version are counted.

# on s1
# manifest from Day 12 plus spreading across zones
python3 - <<'EOF'
s = open("../tag12/kurz.yaml").read()
alt = "      containers:\n      - name: kurz\n"
neu = """      topologySpreadConstraints:
      - maxSkew: 1
        topologyKey: topology.kubernetes.io/zone
        whenUnsatisfiable: DoNotSchedule
        labelSelector:
          matchLabels:
            app: kurz
        matchLabelKeys:
        - pod-template-hash
""" + alt
open("kurz.yaml", "w").write(s.replace(alt, neu, 1))
EOF
# KEDA: at least three pods
sed 's/minReplicaCount: 2/minReplicaCount: 3/' ../tag10/kurz-scaler.yaml > kurz-scaler.yaml
kubectl apply -f kurz-scaler.yaml && kubectl apply -f kurz.yaml && kubectl -n kurz rollout status deploy kurz
kubectl -n kurz get pods -l app=kurz -o custom-columns=NAME:.metadata.name,NODE:.spec.nodeName

Expected:

scaledobject.keda.sh/kurz configured
deployment.apps/kurz configured
deployment "kurz" successfully rolled out
NAME                    NODE
kurz-5fb7c6dcbb-cgmfx   s1
kurz-5fb7c6dcbb-nw54j   s3
kurz-5fb7c6dcbb-xz7hh   s2

Save your progress? Sign up for free

Drill 3: Draining a node

A kernel update on s3 – the node has to be emptied. First, kurz gets a PDB: of three pods, two must always be running. The other PDBs were already created by CNPG, the Valkey operator and the NATS chart.

# on s1
cat > pdb-kurz.yaml <<'EOF'
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: kurz
  namespace: kurz
spec:
  minAvailable: 2
  selector:
    matchLabels:
      app: kurz
EOF
kubectl apply -f pdb-kurz.yaml
kubectl get pdb -A -o custom-columns=NS:.metadata.namespace,NAME:.metadata.name,ERLAUBT:.status.disruptionsAllowed
# 200 s of load with writes, drain s3 after 20 s (at most 150 s)
(k6 run -q -e ZIEL=http://172.16.0.126 -e RATE=300 -e DAUER=200s mix.js > k6-drain.txt 2>&1 &)
sleep 20
kubectl drain s3 --ignore-daemonsets --delete-emptydir-data --timeout=150s 2>&1 | grep -v '^WARNING'
# what is stuck?
kubectl get pods -A --field-selector status.phase=Pending -o custom-columns=NS:.metadata.namespace,NAME:.metadata.name

Expected (abridged):

NS     NAME           ERLAUBT
kurz   db             1
kurz   db-primary     0
kurz   kurz           1
kurz   valkey-cache   1
nats   nats           1
node/s3 cordoned
evicting pod cnpg-system/cnpg-cloudnative-pg-794486c67f-x9d8j
evicting pod envoy-gateway-system/envoy-kurz-web-01987d52-b867444d5-cmmmm
evicting pod kurz/db-3
evicting pod kurz/kurz-5fb7c6dcbb-nw54j
evicting pod kurz/valkey-cache-0-0-0
evicting pod kurz/valkey-cache-2-0-0
evicting pod nats/nats-2
error when evicting pods/"valkey-cache-2-0-0" -n "kurz" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget.
...
pod/valkey-cache-2-0-0 evicted
error: unable to drain node "s3" due to error: error when waiting for pod "db-3" in namespace "kurz" to terminate: context deadline exceeded, continuing command...
NS                     NAME
envoy-gateway-system   envoy-kurz-web-01987d52-b867444d5-lv9nd
kurz                   kurz-5fb7c6dcbb-bz899
nats                   nats-2

The drain gives up after 150 seconds: db-3 needs up to three minutes for its clean shutdown (Day 6, smartShutdownTimeout). The Valkey PDB held back the second eviction until the first one was through – exactly its job. And three pods are stuck, each for a different reason:

Pod Why it does not start
nats-2 its volume (local-path) lives on s3
envoy-kurz-web-… anti-affinity: at most one per node, not in zone-a (Day 3) – that leaves only s2, and one is already running there
kurz-… hard spreading rule: zone-c now has 0 pods, so no other zone may get a second one
# on s1
# result of the load, reason for kurz, then release s3 again and measure the recovery
grep -E 'http_req_failed\.|http_reqs\.' k6-drain.txt | sed 's/  */ /g'
kubectl -n kurz get events --field-selector involvedObject.name=$(kubectl -n kurz get pods -l app=kurz --field-selector status.phase=Pending -o jsonpath='{.items[0].metadata.name}') -o custom-columns=MSG:.message --no-headers | tail -1 | cut -c1-120
kubectl uncordon s3
T0=$(date +%s); for i in $(seq 1 30); do p=$(kubectl get pods -A --no-headers | grep -v -E 'Running|Completed' | wc -l); r=$(kubectl -n kurz get cluster db -o jsonpath='{.status.readyInstances}'); echo "$(( $(date +%s)-T0 ))s nicht-laufend=$p db-bereit=$r/3"; [ "$p" = 0 ] && [ "$r" = 3 ] && break; sleep 10; done

Expected:

 http_req_failed.....: 2.51% 1508 out of 59913
 http_reqs...........: 59913 299.371378/s
0/3 nodes are available: 1 node(s) were unschedulable, 2 node(s) didn't match pod topology spread constraints.
node/s3 uncordoned
2s nicht-laufend=4 db-bereit=2/3
13s nicht-laufend=5 db-bereit=3/3
24s nicht-laufend=0 db-bereit=3/3

24 seconds after the release, everything is running again (nicht-laufend = not running, db-bereit = database ready). The 2.51 % errors are the price of draining under load – mostly from the Envoy on s3, which was evicted before ServiceLB took it out of the rotation (Day 4).

Save your progress? Sign up for free

Drill 4: The spreading rule that does not forget zones

kurz got stuck because of a default value: nodeTaintsPolicy: Ignore. The cordoned node still counts as a zone with 0 pods. With Honor, nodes with taints – including cordoned ones – do not count.

# on s1
sed 's/        - pod-template-hash/        - pod-template-hash\n        nodeTaintsPolicy: Honor/' kurz.yaml > kurz-honor.yaml
diff kurz.yaml kurz-honor.yaml
kubectl apply -f kurz-honor.yaml && kubectl -n kurz rollout status deploy kurz
# test: cordon s3, delete the kurz pod there – where does the replacement go?
kubectl cordon s3
kubectl -n kurz delete $(kubectl -n kurz get pods -l app=kurz --field-selector spec.nodeName=s3 -o name) --wait=false
sleep 25
kubectl -n kurz get pods -l app=kurz -o custom-columns=NAME:.metadata.name,NODE:.spec.nodeName,PHASE:.status.phase --no-headers
kubectl uncordon s3

Expected:

35a36
>         nodeTaintsPolicy: Honor
node/s3 cordoned
pod "kurz-7c7b58d865-4nfbx" deleted from kurz namespace
kurz-7c7b58d865-6xcjt   s2    Running
kurz-7c7b58d865-c42hk   s1    Running
kurz-7c7b58d865-h6lts   s1    Running
node/s3 uncordoned

The replacement runs on s1 immediately. After s3 is released, there are still two pods in zone-a – Kubernetes does not rebalance running pods on its own. Only the next rollout (or a descheduler) does that.

Save your progress? Sign up for free

Drill 5: A zone fails

Now unplanned: zone-b loses its connection to the other zones for three minutes. As on Day 4, s2 drops all traffic from and to s1 and s3; a timer lifts the block after 180 seconds. The primary is in zone-b (Drill 1).

You measure in windows of 15 seconds – that way you see the course over time, not just a total.

# on s1
# make sure the state from Drill 4 is in place
kubectl apply -f kurz-honor.yaml
# 24 windows of 15 s load each (300/s, 10 % writes) as a loop in the background, output in zonenausfall.log
( T0=$(date +%s)
  for i in $(seq 1 24); do
    # one window of load, k6 output in fenster.txt
    k6 run -q -e ZIEL=http://172.16.0.126 -e RATE=300 -e DAUER=15s mix.js > fenster.txt 2>&1
    # error rate and number of requests from the output
    f=$(grep -E 'http_req_failed\.' fenster.txt | grep -oE '[0-9.]+%' | head -1)
    n=$(grep -E 'http_reqs\.' fenster.txt | awk '{print $2}')
    # state of s2 and current primary
    s2=$(kubectl get node s2 -o jsonpath='{.status.conditions[?(@.type=="Ready")].status}')
    p=$(kubectl -n kurz get cluster db -o jsonpath='{.status.currentPrimary}')
    # one line per window, with seconds since the start
    echo "$(( $(date +%s) - T0 ))s anfragen=$n fehler=$f s2=$s2 primary=$p"
  done > zonenausfall.log 2>&1 & )

The parentheses start the loop in a separate shell in the background. Your terminal stays free, and KUBECONFIG as well as the working directory from Drill 1 also apply inside the loop.

After the third window (about 50 seconds):

# on s2
for ip in 172.16.0.126 172.16.0.83; do
  sudo iptables -I INPUT -s $ip -j DROP -m comment --comment tag13
  sudo iptables -I OUTPUT -d $ip -j DROP -m comment --comment tag13
done
# safety net: delete all tag13 rules again after 180 s
sudo systemd-run --quiet --on-active=180 --unit=tag13-frei \
  sh -c 'iptables -S | grep tag13 | sed s/^-A/-D/ | while read r; do iptables $r; done'
date +%T
# on s1, after about six minutes
cat zonenausfall.log

Expected:

16s anfragen=4501 fehler=0.00% s2=True primary=db-2
33s anfragen=4501 fehler=0.00% s2=True primary=db-2
49s anfragen=4501 fehler=0.00% s2=True primary=db-2
93s anfragen=4262 fehler=42.23% s2=True primary=db-2
133s anfragen=4433 fehler=14.59% s2=Unknown primary=db-1
149s anfragen=4501 fehler=4.02% s2=Unknown primary=db-1
181s anfragen=4500 fehler=0.17% s2=Unknown primary=db-1
197s anfragen=4501 fehler=0.08% s2=Unknown primary=db-1
214s anfragen=4501 fehler=0.00% s2=Unknown primary=db-1
230s anfragen=4500 fehler=0.00% s2=Unknown primary=db-1
247s anfragen=4483 fehler=7.56% s2=Unknown primary=db-1
264s anfragen=4498 fehler=0.08% s2=True primary=db-1
...
461s anfragen=4500 fehler=0.00% s2=True primary=db-1

The first window after the block (anfragen = requests, fehler = errors) takes 44 instead of 15 seconds and loses 42 %. Then db-1 takes over, and without zone-b everything runs error-free until s2 comes back (7.56 % on reconnecting). What exactly happened in the first seconds is in the events (times in UTC, block at 22:03:02):

# on s1
kubectl get events -A --sort-by=.lastTimestamp -o custom-columns=ZEIT:.lastTimestamp,OBJ:.involvedObject.name,GRUND:.reason,MSG:.message --no-headers \
  | awk '$1 >= "2026-11-25T22:03:00Z" && $1 <= "2026-11-25T22:05:00Z"' | grep -E 'Unhealthy|NodeNotReady|FailingOver|FailoverTarget|FailedGetResourceMetric' | cut -c1-150 | head -8

Expected:

2026-11-25T22:03:17Z   kurz-7c7b58d865-h6lts   Unhealthy                 Readiness probe failed: HTTP probe failed with statuscode: 503
2026-11-25T22:03:53Z   s2                      NodeNotReady              Node s2 status is now: NodeNotReady
2026-11-25T22:03:53Z   kurz-7c7b58d865-6xcjt   NodeNotReady              Node is not ready
2026-11-25T22:04:01Z   db                      FailingOver               Current primary isn't healthy, initiating a failover from db-2
2026-11-25T22:04:01Z   db                      FailoverTarget            Failing over from db-2 to db-1
2026-11-25T22:04:15Z   keda-hpa-kurz           FailedGetResourceMetric   failed to get cpu utilization: missing request for cpu in container linkerd-proxy of Pod kurz-…
Second Event
0 zone-b cut off
15 a healthy kurz pod on s1 reports not ready
51 Kubernetes declares s2 NotReady
59–62 CNPG fails over to db-1, the instance is primary

The first line is the interesting one. The pod on s1 has nothing to do with zone-b – but its readiness probe asks the cache and the database, and both depended on zone-b. All kurz pods ask the same dependencies, so they all deregister at the same time, and Envoy has hardly any targets left. An outage in one zone thus takes healthy pods in the other zones down with it.

And the last line is a find from Day 12: the Linkerd proxy has no CPU request, so the HPA cannot compute the utilization (Day 9, speed drill 2). CPU scaling of kurz has been at a standstill since the mesh was added.

Save your progress? Sign up for free

Exercise: Speed drills

  1. How many pods (excluding DaemonSets) would be missing if s2 failed now? Target time: 1 min
  2. Which PDB currently allows not a single disruption, and why is that correct? Target time: 1 min
  3. Five replicas, three zones, maxSkew: 1. Which distributions are allowed? Target time: 1 min

Solution

# on s1
# 1: pods on s2 without svclb (DaemonSet)
kubectl get pods -A --field-selector spec.nodeName=s2 -o custom-columns=NAME:.metadata.name --no-headers | grep -vc svclb
# 2: PDBs with 0 allowed disruptions
kubectl get pdb -A -o custom-columns=NS:.metadata.namespace,NAME:.metadata.name,ERLAUBT:.status.disruptionsAllowed | awk 'NR==1 || $3==0'

Expected:

9
NS     NAME           ERLAUBT
kurz   db-primary     0

On 2: db-primary protects the primary from eviction – a drain should not simply terminate it but wait for a planned switchover. On 3: 2/2/1 in any order; 3/1/1 would have a difference of 2.

Save your progress? Sign up for free

Challenge

Reduce the damage of the zone outage significantly without changing anything in the database. Repeat Drill 5 under the same conditions – for that, the primary must be back in zone-b.

Solution

Two changes. First, the readiness probe only asks whether the process itself can accept requests. Shared dependencies do not belong in it: if they fail, all pods are affected equally, and a Service without ready endpoints helps nobody. The user then gets write errors as a response – but redirects from the cache and from the replicas keep working.

# on s1
# kurz 1.6: readiness without dependencies
cd ~/sdk && cp kurz/main.go kurz/main.go.1.0
python3 - <<'EOF'
p = "kurz/main.go"; s = open(p).read()
alt = ("func bereit(w http.ResponseWriter, r *http.Request) {\n"
       "\tctx, cancel := context.WithTimeout(r.Context(), time.Second)\n"
       "\tdefer cancel()\n"
       "\tif !cacheBereit(ctx) && db.Ping(ctx) != nil {\n"
       "\t\thttp.Error(w, \"Datenbank nicht erreichbar\", http.StatusServiceUnavailable)\n"
       "\t\treturn\n"
       "\t}\n"
       "\tw.Write([]byte(\"bereit\\n\"))\n"
       "}")
neu = ("// bereit meldet nur, ob dieser Prozess Anfragen annehmen kann. Gemeinsame Abhängigkeiten\n"
       "// (Cache, Datenbank) prüft die Readiness nicht: fallen sie aus, betrifft das alle Pods gleich,\n"
       "// und ein Pod ohne Endpunkte hilft niemandem (Tag 13).\n"
       "func bereit(w http.ResponseWriter, r *http.Request) {\n"
       "\tw.Write([]byte(\"bereit\\n\"))\n"
       "}")
assert alt in s, "nicht gefunden"
open(p, "w").write(s.replace(alt, neu, 1))
EOF
diff kurz/main.go.1.0 kurz/main.go | head -4
(cd kurz && /usr/local/go/bin/go vet ./... && /usr/local/go/bin/go build -o /dev/null . && echo "Build ok")
sudo docker build -q -t 172.16.0.126:5000/kurz:1.6 kurz && sudo docker push -q 172.16.0.126:5000/kurz:1.6

Second, the Linkerd proxy gets requests so that KEDA can scale by CPU again:

# on s1
cd ~/sdk/tag13
sed -e 's#kurz:1.0#kurz:1.6#' \
    -e 's#        linkerd.io/inject: enabled#        linkerd.io/inject: enabled\n        config.linkerd.io/proxy-cpu-request: 100m\n        config.linkerd.io/proxy-memory-request: 20Mi#' \
    kurz-honor.yaml > kurz-ende.yaml
kubectl apply -f kurz-ende.yaml && kubectl -n kurz rollout status deploy kurz
sleep 45
kubectl -n kurz get hpa keda-hpa-kurz -o jsonpath='{.status.conditions[?(@.type=="ScalingActive")].status} {.status.conditions[?(@.type=="ScalingActive")].reason}{"\n"}'
# primary back to zone-b, then repeat Drill 5 (unit name tag13-frei2)
kubectl cnpg promote db db-2 -n kurz

Expected (excerpt):

Build ok
172.16.0.126:5000/kurz:1.6
True ValidMetricFound
Node db-2 in cluster db will be promoted

Side by side, Drill 5 on the left, the repetition on the right:

16s 4501 0.00%  s2=True primary=db-2        17s 4505 4.21%  s2=True primary=db-2
33s 4501 0.00%  s2=True primary=db-2        33s 4449 2.58%  s2=True primary=db-2
49s 4501 0.00%  s2=True primary=db-2        49s 4500 0.08%  s2=True primary=db-2
93s 4262 42.23% s2=True primary=db-2        96s 4482 6.40%  s2=True primary=db-2
133s 4433 14.59% s2=Unknown primary=db-1    128s 4482 13.92% s2=Unknown primary=db-1
149s 4501 4.02% s2=Unknown primary=db-1     144s 4501 0.02% s2=Unknown primary=db-1
181s 4500 0.17% s2=Unknown primary=db-1     161s 4500 0.00% s2=Unknown primary=db-1
...
247s 4483 7.56% s2=Unknown primary=db-1     227s 4485 0.00% s2=Unknown primary=db-1

Instead of about 2980 failed requests during the outage, only about 910 – two thirds fewer. The first window after the cut drops from 42 % to 6 %, and reconnecting costs nothing anymore. What remains is the failover window (13.9 %): for about a minute there is no primary, and writes fail. The errors in the first two windows on the right come from the switchover to db-2 shortly before, not from the zone outage.

Happened during testing: On the first attempt at the repetition, a pkill -f zonenausfall was meant to end an old measurement loop. It also ended its own SSH session – whose command line, after all, contained the same text. The switchover did not run, neither did the measurement, but the block on s2 did. It was lifted by hand after a minute. pkill -f hits everything whose command line matches, including the one calling it. Check first with pgrep -af what would be hit.

Save your progress? Sign up for free

Checkpoint

# on s1
# one kurz pod per zone
kubectl -n kurz get pods -l app=kurz -o jsonpath='{range .items[*]}{.spec.nodeName}{"\n"}{end}' | while read n; do kubectl get node $n -L topology.kubernetes.io/zone --no-headers | awk '{print $1, $NF}'; done | sort
# PDB: at least 2, one disruption allowed
kubectl -n kurz get pdb kurz -o jsonpath='{.spec.minAvailable} {.status.disruptionsAllowed}{"\n"}'
# spreading rule with Honor
kubectl -n kurz get deploy kurz -o jsonpath='{.spec.template.spec.topologySpreadConstraints[0].topologyKey} {.spec.template.spec.topologySpreadConstraints[0].whenUnsatisfiable} {.spec.template.spec.topologySpreadConstraints[0].nodeTaintsPolicy}{"\n"}'
# KEDA: minimum 3, CPU measurement works
kubectl -n kurz get hpa keda-hpa-kurz -o jsonpath='{.spec.minReplicas} {.status.conditions[?(@.type=="ScalingActive")].status}{"\n"}'
# kurz 1.6
kubectl -n kurz get deploy kurz -o jsonpath='{.spec.template.spec.containers[0].image}{"\n"}'

Expected:

s1 zone-a
s2 zone-b
s3 zone-c
2 1
topology.kubernetes.io/zone DoNotSchedule Honor
3 True
172.16.0.126:5000/kurz:1.6

Interview note

  • Topology spread vs. anti-affinity: spread distributes evenly and allows several pods per zone; anti-affinity forbids that. For scaling services, spread is right; nodeTaintsPolicy: Honor prevents a cordoned node from blocking pods.
  • PDBs only protect against planned disruptions. During the drain, they correctly slowed down Valkey; against the zone outage they did nothing. Pods with local volumes do not move during a drain – they wait.
  • Readiness checks your own pod, not the world. A probe that asks shared dependencies takes all pods out of traffic at once when those fail. Here: 42 % instead of 6 % errors in the first window of a zone outage.
  • Where does the state live? Primary, cache primaries, control plane. A zone outage hits exactly what is in that zone – Drill 1 is the first question of every outage analysis.

Enterprise note

  • In audits, “zone-redundant” often only means “pods in several zones”. What matters are the stateful parts and the control plane: here, the k3s server, CoreDNS and the Linkerd control plane sit in one zone. If zone-a fails, more than a third is down.
  • Local volumes (local-path) bind pods to nodes. For databases with replication per zone, that is fine (CNPG, NATS); everything else needs storage that spans zones – see the course “k0s and LINSTOR hands-on”.
  • Drains belong in maintenance windows with a prior switchover of the primary (kubectl cnpg promote) – the drain should not trigger a failover but catch up on a planned switch.

Contents

More