Operate and shipLesson 8 of 10
  1. Metrics, logs, events and traces, not reconciled
  2. Horizontal pod autoscaling, not reconciled
  3. Right-sizing and in-place resize, not reconciled
  4. A troubleshooting method, not reconciled
  5. kubectl debug and ephemeral containers, not reconciled
  6. Debugging from the node: crictl, journalctl and nsenter, not reconciled
  7. Upgrades and version skew, not reconciled
  8. etcd, backup and disaster recovery, not reconciled
    1. etcd and Raft
    2. Health and maintenance
    3. Snapshots
    4. What etcd backups miss
    5. Object and volume backup
    6. GitOps as backup
    7. DR drills
  9. GitOps with Argo CD, not reconciled
  10. Progressive delivery, not reconciled

etcd, backup and disaster recovery

etcd holds every object in the cluster and survives only while a quorum of members does. Snapshots restore the control plane, Velero restores objects and volumes, and only a timed drill tells you whether either meets your RTO and RPO.

  • 26 min
  • 5 objectives
  • 7 scenes
  • Includes an On AWS layer

Shows the lesson one block at a time. Arrow keys step, number keys jump to a scene, and Escape returns to the page where you were.

Everything you have ever applied to a cluster lives in one place: etcd. Lose it without a backup and the nodes keep running their containers for a while, but nothing can be scheduled, scaled or repaired, and there is no record of what should be running. This lesson covers how etcd stays available, how to keep it healthy, how to snapshot and restore it, and the larger question a snapshot does not answer: getting a whole application, data included, back within a deadline.

Reconcile, in 7 scenes

etcd and Raft

etcd is a key-value store that replicates its data with the Raft consensus algorithm. One member is the leader; it orders every write into a log and sends each entry to the followers, and an entry is committed once a majority of members have written it to disk. Followers that stop hearing the leader’s heartbeat hold an election. That majority is the quorumThe number of members, a strict majority, that must agree before etcd commits a write or elects a leader., and it sets the arithmetic of every etcd deployment:

MembersQuorumFailures tolerated
110
321
431
532

A cluster of 2n+1 members tolerates n failures. Adding a member to reach an even count raises the quorum without raising the tolerance, and every write then waits for one more disk, so the upstream advice is an odd count, with five recommended for production. When a member dies, remove it before adding its replacement: adding first would raise a three-member cluster’s quorum to three while one member is already down.

Raft makes etcd sensitive to latency. Every commit waits for an fsync on a majority of disks and a network round trip to the followers, and slow heartbeats trigger elections, during which no write can commit. So members go on dedicated, low-latency SSDs, and they are spread one per failure zone in a region whose zones are close together. Putting every member in one zone to save latency means one zone outage takes quorum with it.

Only kube-apiserver talks to etcd. The scheduler, controllers and kubelets list and watch through the API server, which caches and fans out those watches; access to etcd is equivalent to root on the cluster, so nothing else gets credentials. Objects live under keys such as /registry/deployments/default/web. Built-in resources are stored protobuf-encoded, custom resources as JSON, and any resource listed in an EncryptionConfiguration as ciphertext. The recommended encryption provider is KMS v2, stable since 1.29; the configuration can cover any resource, not only Secrets.

Where etcd lives on kx
kubectl get pods -n kube-system -l component=etcd -o wide
NAME                    READY   STATUS    RESTARTS   AGE   IP           NODE               NOMINATED NODE   READINESS GATES
etcd-kx-control-plane   1/1     Running   0          60s   172.18.0.2   kx-control-plane   <none>           <none>
kubectl get pod etcd-kx-control-plane -n kube-system -o jsonpath='{range .spec.containers[0].command[*]}{@}{"\n"}{end}'
etcd
--advertise-client-urls=https://172.18.0.2:2379
--cert-file=/etc/kubernetes/pki/etcd/server.crt
--client-cert-auth=true
--data-dir=/var/lib/etcd
--feature-gates=InitialCorruptCheck=true
--initial-advertise-peer-urls=https://172.18.0.2:2380
--initial-cluster=kx-control-plane=https://172.18.0.2:2380
--key-file=/etc/kubernetes/pki/etcd/server.key
--listen-client-urls=https://127.0.0.1:2379,https://172.18.0.2:2379
--listen-metrics-urls=http://127.0.0.1:2381
--listen-peer-urls=https://172.18.0.2:2380
--name=kx-control-plane
--peer-cert-file=/etc/kubernetes/pki/etcd/peer.crt
--peer-client-cert-auth=true
--peer-key-file=/etc/kubernetes/pki/etcd/peer.key
--peer-trusted-ca-file=/etc/kubernetes/pki/etcd/ca.crt
--snapshot-count=10000
--trusted-ca-file=/etc/kubernetes/pki/etcd/ca.crt
--watch-progress-notify-interval=5s
kubectl get pod kube-apiserver-kx-control-plane -n kube-system -o yaml | grep etcd
    - --etcd-cafile=/etc/kubernetes/pki/etcd/ca.crt
    - --etcd-certfile=/etc/kubernetes/pki/apiserver-etcd-client.crt
    - --etcd-keyfile=/etc/kubernetes/pki/apiserver-etcd-client.key
    - --etcd-servers=https://127.0.0.1:2379

Those flags are everything a backup needs: clients connect on 2379, peers on 2380, client certificates are required and signed by the CA in /etc/kubernetes/pki/etcd, the data lives in /var/lib/etcd, and metrics are served without TLS on 127.0.0.1:2381. kx runs one member, so its failure tolerance is zero; that is fine for learning and is exactly why production control planes run three or five.

Health and maintenance

etcdctl endpoint health and etcdctl endpoint status -w table show whether each member answers, which one is leader, its Raft term and index, and the database size; etcdctl member list -w table shows membership. Over time, watch the metrics that predict trouble before quorum is lost: etcd_disk_wal_fsync_duration_seconds and etcd_disk_backend_commit_duration_seconds for disk latency, etcd_network_peer_round_trip_time_seconds for the network, etcd_server_leader_changes_seen_total for elections, and etcd_mvcc_db_total_size_in_bytes for size.

Size needs active care, because etcd never overwrites. It keeps every revision of every key, which is what lets watchers resume from a resourceVersion. Three mechanisms keep that history bounded:

  • Compaction drops revisions older than a given one. kube-apiserver requests it on a timer, every five minutes by default, so a Kubernetes-managed etcd rarely needs it by hand.
  • Defragmentation returns the space compaction freed to the filesystem; until then the database file stays the same size. Defragmenting a live member blocks its reads and writes while it rebuilds, so it runs one member at a time, and etcdutl defrag does it offline. Upstream suggests a tool such as etcd-defrag, run as a CronJob.
  • The space quota, 2 GiB by default and set with --quota-backend-bytes, with 8 GiB the suggested maximum. A member that passes it raises a cluster-wide NOSPACE alarm, and the whole cluster accepts only reads and deletes. Every write through the API fails with etcdserver: mvcc: database space exceeded.

Recovering from the alarm always takes the same four steps: find and remove whatever filled the store (often a controller writing an object in a loop, or a flood of Events), compact to the current revision, defragment each member, then run etcdctl alarm disarm.

Snapshots

A snapshotA point-in-time copy of an etcd member’s whole keyspace, written to one file with an integrity hash. is taken from a live member over the client port, with the same certificates the API server uses:

etcdctl --endpoints=https://127.0.0.1:2379 \
  --cacert=/etc/kubernetes/pki/etcd/ca.crt \
  --cert=/etc/kubernetes/pki/etcd/server.crt \
  --key=/etc/kubernetes/pki/etcd/server.key \
  snapshot save /var/backups/etcd/snapshot.db

etcdutl --write-out=table snapshot status /var/backups/etcd/snapshot.db

etcd splits its tools by what they touch. etcdctl talks to running members over the network; etcdutl works on files: it restores snapshots, inspects them and defragments offline data directories. etcd 3.5 deprecated etcdctl snapshot restore and etcdctl snapshot status, and etcd 3.6 removed them, so runbooks that restore with etcdctl fail against etcd 3.6 and later. etcd also upgrades only one minor version at a time: a 3.5 cluster moves to 3.5.32 or later and then to 3.6, and a 3.6 cluster reaches 3.6.11 or later before it moves to 3.7.

Restoring is the opposite of incremental. It builds a new data directory and a new logical cluster from the file: the member ID and cluster ID are overwritten so a restored member can never rejoin the old cluster by accident. For a cluster of several members, every member restores from the same snapshot, with the same new --initial-cluster-token and the full --initial-cluster list, so the restored members find only each other:

etcdutl snapshot restore snapshot.db \
  --name cp-1 \
  --data-dir /var/lib/etcd-restored \
  --initial-cluster cp-1=https://10.0.0.11:2380,cp-2=https://10.0.0.12:2380,cp-3=https://10.0.0.13:2380 \
  --initial-cluster-token kx-restore-1 \
  --initial-advertise-peer-urls https://10.0.0.11:2380

Kubernetes adds an order around that. Stop every kube-apiserver first; restoring underneath a running API server leaves it serving a cache newer than the store. On a kubeadm control plane, moving kube-apiserver.yaml and etcd.yaml out of /etc/kubernetes/manifests makes the kubelet stop those static pods. Restore each member, point the etcd manifest’s data volume at the restored directory, put the manifests back so etcd and then the API servers start, and restart kube-scheduler, kube-controller-manager and the kubelets so none of them acts on cached state newer than the snapshot. Everything created after the snapshot is gone from the API, and controllers converge the cluster back to what the snapshot says.

Automating snapshots inside the cluster is possible, and every detail matters. The job has to reach 127.0.0.1:2379 from the host network, run on a control-plane node, read the etcd certificates from the host, and use an image whose etcdctl matches the cluster’s etcd:

apiVersion: batch/v1
kind: CronJob
metadata:
  name: etcd-snapshot
  namespace: kube-system
spec:
  schedule: "0 * * * *"
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      backoffLimit: 2
      template:
        spec:
          hostNetwork: true
          nodeSelector:
            node-role.kubernetes.io/control-plane: ""
          tolerations:
            - key: node-role.kubernetes.io/control-plane
              operator: Exists
              effect: NoSchedule
          restartPolicy: OnFailure
          containers:
            - name: snapshot
              image: gcr.io/etcd-development/etcd:v3.7.0
              command:
                - etcdctl
                - --endpoints=https://127.0.0.1:2379
                - --cacert=/etc/kubernetes/pki/etcd/ca.crt
                - --cert=/etc/kubernetes/pki/etcd/healthcheck-client.crt
                - --key=/etc/kubernetes/pki/etcd/healthcheck-client.key
                - snapshot
                - save
                - /backup/snapshot.db
              volumeMounts:
                - name: etcd-certs
                  mountPath: /etc/kubernetes/pki/etcd
                  readOnly: true
                - name: backup
                  mountPath: /backup
          volumes:
            - name: etcd-certs
              hostPath:
                path: /etc/kubernetes/pki/etcd
                type: Directory
            - name: backup
              hostPath:
                path: /var/backups/etcd
                type: DirectoryOrCreate

etcd’s own release image, gcr.io/etcd-development/etcd, holds etcd, etcdctl and etcdutl on a distroless base with no shell, so the command runs etcdctl directly, and the file lands on the node. Each run overwrites the last file, and shipping it off the node, which is also what keeps a history of snapshots, is a second step with its own credentials, ideally a workload identity rather than stored keys. Pin the image to the cluster’s etcd version; kubeadm 1.37 deploys etcd 3.7.0. Third-party images are a poor substitute: from August 2025 Bitnami froze its versioned public images in a bitnamilegacy repository and kept only latest tags free.

What etcd backups miss

An etcd snapshot restores the API, the whole API, as of one moment. It cannot restore one namespace, and it carries none of the following:

  • Volume data. A PersistentVolume object is a pointer; the bytes live in the storage system.
  • The control plane’s own files. The cluster CA, the service account signing key, kubeconfigs and the encryption configuration sit on the control-plane disks under /etc/kubernetes. Rebuilding nodes without them means new certificates that no existing client trusts.
  • Everything outside the cluster. Cloud load balancers, DNS records, IAM roles, images in registries, secrets in external stores.

Object and volume backup

VeleroAn open-source tool that backs up Kubernetes objects through the API server, and volume data through snapshots or file-system copies, to object storage, and restores them by namespace or selector. works one level up from etcd. It never reads etcd. Its server queries the API for the objects in scope, writes them as a tarball to a backup storage location in object storage, and backs up volumes either through the storage provider’s snapshot API, through CSI snapshots, or with file-system backup, which copies files from inside a pod’s volume using Kopia, the default uploader since Velero 1.12. Restic is deprecated: from Velero 1.17 backups can no longer use it, restores from existing Restic backups work through 1.18, and 1.19 disables those restores too. Because it works through the API, Velero runs the same way on a self-managed cluster and on a managed control plane where etcd is out of reach.

velero backup create shop-daily --include-namespaces shop --wait
velero backup create critical --selector tier=critical
velero restore create --from-backup shop-daily --namespace-mappings shop:shop-restored

A Schedule turns that into a policy. Its ttl sets how long each backup is kept, 30 days when unset:

apiVersion: velero.io/v1
kind: Schedule
metadata:
  name: shop-hourly
  namespace: velero
spec:
  schedule: "0 * * * *"
  template:
    includedNamespaces:
      - shop
    ttl: 720h

The restore semantics are where surprises live:

  • Non-destructive by default. A resource that already exists in the target is skipped, not overwritten; --existing-resource-policy update patches it instead, on a best-effort basis.
  • Ordered. Custom resource definitions go first, then namespaces, StorageClasses, volume snapshots, PersistentVolumes and claims, Secrets, ConfigMaps, and workloads after them.
  • Namespace filters drop cluster-scoped objects such as ClusterRoles and CRDs unless you add --include-cluster-resources=true. PersistentVolumes bound to included claims are the exception and come along with them.
  • Not atomic. Objects that change while a backup runs may be captured mid-change, so application-consistent database backups still need the database’s own tools or hooks.

Restoring into another cluster is the same operation pointed at the same bucket: install Velero in the new cluster with the same storage location, set that location’s accessMode to ReadOnly so the new cluster cannot delete or overwrite backups, and restore. Watch for zonal storage: a volume restored from a snapshot belongs to one zone, and if the new cluster has no node there, the pod stays Pending with a volume node affinity conflict.

GitOps as backup

If every manifest is in Git and an agent such as Argo CD applies it, a lost cluster can be rebuilt: create a cluster, install the agent, point it at the repository, wait. That restores what Git declares and nothing else. Data is the obvious gap:

Re-applying the manifests is not restoring the data
kubectl apply -f shop.yaml
namespace/shop created
persistentvolumeclaim/data created
pod/db created
kubectl -n shop wait --for=condition=Ready pod/db
pod/db condition met
kubectl get pv
NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM       STORAGECLASS   VOLUMEATTRIBUTESCLASS   REASON   AGE
pvc-67e5a683-592b-4265-8cb5-e3bbd98e5941   1Gi        RWO            Delete           Bound    shop/data   standard       <unset>                          21s
kubectl delete namespace shop
namespace "shop" deleted
kubectl wait --for=delete namespace/shop --timeout=60s
namespace/shop condition met
kubectl get pv
No resources found
kubectl apply -f shop.yaml
namespace/shop created
persistentvolumeclaim/data created
pod/db created
kubectl -n shop wait --for=condition=Ready pod/db
pod/db condition met
kubectl get pvc -n shop
NAME   STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   VOLUMEATTRIBUTESCLASS   AGE
data   Bound    pvc-3ac684d6-61d8-42d1-96b4-6d3510447166   1Gi        RWO            standard       <unset>                 21s

The StorageClass’s Delete reclaim policy removed the volume with its claim. Re-applying the same manifest produced the same objects bound to a different, empty volume, pvc-3ac6… instead of pvc-67e5…. A Retain reclaim policy keeps the volume for manual recovery, and a volume backup puts the bytes back.

Secrets are the other gap. A Secret created by hand, or by an operator, exists only in the cluster that held it. Keep secret values in an external store and sync them in, for example with the External Secrets Operator, whose stable API is external-secrets.io/v1; ESO 0.17 stopped serving v1beta1. Dynamic state is gone too: replica counts set by an autoscaler, Events, Leases, and any object a controller created that is not in Git. GitOps makes the configuration recoverable; it is half of a backup.

DR drills

Two numbers define what recovery has to achieve. The RTORecovery time objective: the longest acceptable time from an outage to restored service. bounds how long recovery may take. The RPORecovery point objective: the most data, measured in time, that may be lost. bounds how much may be lost, and the backup schedule is its floor: an hourly snapshot cannot give an RPO better than an hour. Retention is a third number people forget. With a 30-day TTL, corruption discovered on day 31 has no clean copy left to restore.

Four standard strategies trade cost against those numbers: backup and restore, pilot light, warm standby, and multi-site active/active. The first three are all active/passive, with recovery time shrinking as more of the standby runs ahead of time; pilot light is one of them, not a synonym for passive DR. Running across several zones is high availability, not disaster recovery: it survives a node or a zone, not a deleted namespace, corrupted data or a lost region.

None of it counts until it has been run. A drill restores into a scratch cluster or namespace, with a clock running, and records:

  • the time from declaring the incident to serving traffic, against the RTO;
  • the age of the newest data that came back, against the RPO;
  • every manual step, missing credential and undocumented dependency, each of which becomes a runbook fix.

Run tabletop walkthroughs often, component restores monthly, and a full restore at least once a year. A backup that has never been restored is a hope, not a plan.

Snapshot kx's etcd

  1. kubectl --context kind-kx -n kube-system exec etcd-kx-control-plane -- etcdctl --endpoints=https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key endpoint status -w table
  2. kubectl --context kind-kx -n kube-system exec etcd-kx-control-plane -- etcdctl --endpoints=https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key snapshot save /var/lib/etcd/kx-snapshot.db
  3. docker cp kx-control-plane:/var/lib/etcd/kx-snapshot.db ./kx-snapshot.db
  4. docker exec kx-control-plane rm /var/lib/etcd/kx-snapshot.db
  5. etcdutl --write-out=table snapshot status ./kx-snapshot.db

For your own kind cluster kx: copy a command and paste it into your terminal.Nothing on this page touches your machine. The etcd pod mounts its data directory from the node container, so the snapshot written there can be copied out with docker cp. etcdutl comes in the etcd release archive; install it locally for the last command.

Actual state

Check your understanding

6 checks

Your first answer to each check is the one that counts. After a miss you can answer again; passing every check reconciles the lesson.

  1. Check 1 of 6

    Why does a four-member etcd cluster tolerate no more failures than a three-member one?

  2. Check 2 of 6

    Check runs your command on a private cluster; what it prints shows here.

  3. Check 3 of 6

    Which command restores an etcd 3.6 snapshot file into a new data directory?

  4. Check 4 of 6

    You restore a three-member etcd cluster after corruption. Which plan is right?

  5. Check 5 of 6

    Every write to the API server fails with etcdserver: mvcc: database space exceeded. What state is etcd in, and what clears it?

  6. Check 6 of 6

    A namespace with a PostgreSQL pod and a PVC on a StorageClass with reclaimPolicy: Delete is deleted. GitOps re-applies the same manifests. What comes back?

Lesson not yet reconciled

Desired: 5 objectives, 0 metReconciled: 5 of 5 objectives met

  • Explain etcd quorum and why an even member count adds no fault tolerance. (not yet met)
  • Snapshot etcd with etcdctl and restore it with etcdutl, in the order kube-apiserver needs. (not yet met)
  • Keep etcd healthy with compaction, defragmentation and the space quota, and recover from a NOSPACE alarm. (not yet met)
  • Back up cluster objects and volumes with Velero and restore them into another cluster. (not yet met)
  • Say what etcd snapshots and GitOps rebuilds leave out, and set RTO and RPO targets you test. (not yet met)

Pass every check above to reconcile this lesson.

Every check has passed, so the desired state is met. First-try accuracy: 0 of 6. This lesson's review cards are in your queue.

Changed since the notes

This lesson draws on an earlier set of study notes. Where the documentation contradicts a claim in them, qualifies it or has moved past it, the claim is listed here with the corrected statement and the source it was checked against.

Show 20 corrections
  1. Stale, true once, no longerDisaster Recovery

    The notes saidvelero install --plugins velero/velero-plugin-for-aws:v1.7.0

    CorrectedVelero v1.18.4 is the most recent stable release as of 2026-11-19 (v1.19 in release candidate) and pairs with velero-plugin-for-aws v1.14.x (plugin 1.13 pairs with Velero 1.17). File-system backup uses Kopia (the default uploader since Velero 1.12). Velero 1.17 removed Restic as a backup path, and restoring existing Restic backups is supported until v1.19.

    Sourcegithub.com/vmware-tanzu/velero-plugin-for-aws%20;%20https://velero.io/blog/velero-1.17

  2. Nuance, true with conditionsDisaster Recovery

    The notes saidIn EKS … focus on backing up your resources (Velero)

    CorrectedAWS Backup also backs up EKS clusters natively. It creates a composite recovery point holding the cluster state (Kubernetes manifests) and the persistent volumes (EBS, EFS, S3), and requires the cluster's authentication mode to be API or API_AND_CONFIG_MAP. Velero remains an option.

    Sourcedocs.aws.amazon.com/aws-backup/latest/devguide/eks-backups.html

  3. Stale, true once, no longerDisaster Recovery

    The notes saidExternal Secrets Operator usage / apiVersion: external-secrets.io/v1beta1 (grouped: notes 44, 45 and 53)

    CorrectedESO's stable API is external-secrets.io/v1. ESO v0.17.0 (May 2025) stopped serving v1beta1, so v1beta1 ExternalSecret and SecretStore manifests are rejected by current releases (v2.15.0 is the most recent as of 2026-11-19). Change apiVersion to external-secrets.io/v1 in notes 44, 45 and 53.

    Sourcegithub.com/external-secrets/external-secrets/releases/tag/v0.17.0

  4. Nuance, true with conditionsDisaster Recovery

    The notes saidS3 lifecycle StorageClass GLACIER / Glacier Deep Archive naming

    CorrectedIn lifecycle rules, StorageClass GLACIER is the API name for S3 Glacier Flexible Retrieval (90-day minimum storage duration) and DEEP_ARCHIVE is S3 Glacier Deep Archive (180-day minimum). GLACIER_IR (Glacier Instant Retrieval) is a third option.

    Sourcedocs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-transition-general-considerations.html

  5. Wrong, not trueDisaster Recovery

    The notes saidDR tiers omit 'Backup & Restore' and equate 'passive DR' with pilot light

    CorrectedConfirmed. AWS's DR whitepaper lists four strategies: backup and restore, pilot light, warm standby, and multi-site active/active. Backup and restore, pilot light and warm standby are all active/passive, so passive DR isn't a synonym for pilot light.

    Sourcedocs.aws.amazon.com/whitepapers/latest/disaster-recovery-workloads-on-aws/disaster-recovery-options-in-the-cloud.html

  6. Wrong, not trueDisaster Recovery

    The notes saidECR replication registryId '123456789' is not a valid 12-digit account ID

    CorrectedConfirmed. ReplicationDestination.registryId must match [0-9]{12}; use a 12-digit placeholder such as 123456789012.

    Sourcedocs.aws.amazon.com/AmazonECR/latest/APIReference/API_ReplicationDestination.html

  7. Nuance, true with conditionsDisaster Recovery

    The notes said'Load balancers are regional and multi-AZ by default'

    CorrectedConfirmed. An ALB requires subnets in at least two AZs, but an NLB can be enabled in one or more AZs (one subnet each), so its AZ coverage is whatever subnets you give it, and cross-zone load balancing is off by default for NLBs.

    Sourcedocs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html%20;%20https://docs.aws.amazon.com/elasticloadbalancing/latest/network/availability-zones.html

  8. Nuance, true with conditionsDisaster Recovery

    The notes saidVelero is installed with static IAM keys (--secret-file ./credentials-velero) rather than IRSA/Pod Identity

    CorrectedConfirmed as a best-practice gap. The plugin README documents IAM-user keys and kube2iam (install with --no-secret), while EKS best practices recommend EKS Pod Identity, or IRSA, for pod credentials instead of long-lived keys. Use a role for the velero ServiceAccount and install with --no-secret.

    Sourcegithub.com/vmware-tanzu/velero-plugin-for-aws%20;%20https://docs.aws.amazon.com/eks/latest/best-practices/identity-and-access-management.html

  9. Stale, true once, no longeretcd Operations and Backup

    The notes saidetcdctl snapshot restore … (and etcdctl snapshot save).

    Correctedetcd 3.6 removed etcdctl snapshot restore and snapshot status (deprecated in 3.5); use etcdutl snapshot restore <file> --data-dir … (--name, --initial-cluster, --initial-cluster-token, --initial-advertise-peer-urls). etcdctl snapshot save still works. Kubernetes 1.34 and later pair with etcd 3.6.x (upgrade to 3.5.20+ before moving to 3.6).

    Sourceetcd.io/blog/2025/announcing-etcd-3.6/%20;%20https://etcd.io/docs/v3.6/op-guide/recovery

  10. Stale, true once, no longeretcd Operations and Backup

    The notes saidCronJob uses image bitnami/etcd:latest.

    CorrectedFrom August 28, 2025 Bitnami moved its public catalog: versioned images went to the frozen docker.io/bitnamilegacy repository (no updates), and free hardened images are latest-only and intended for development; stable tags require a Bitnami Secure Images subscription. Use the upstream etcd image (registry.k8s.io/etcd or gcr.io/etcd-development/etcd) pinned to the cluster's etcd version.

    Sourcecommunity.broadcom.com/tanzu/blogs/beltran-rueda-borrego/2025/08/18/how-to-prepare-for-the-bitnami-changes-coming-soon

  11. Nuance, true with conditionsetcd Operations and Backup

    The notes saidDatabase size default limit is 2GB; key-value size limit 1.5MB.

    CorrectedDefault storage quota is 2 GiB (--quota-backend-bytes), 8 GiB is the suggested maximum, and the default max request size is 1.5 MiB. EKS documents an 8 GiB etcd limit (monitor apiserver_storage_size_bytes); Provisioned Control Plane tiers raise the database to 16 GB (24 GB for 4XL/8XL on 1.34+).

    Sourceetcd.io/docs/v3.6/dev-guide/limit/%20;%20https://docs.aws.amazon.com/eks/latest/best-practices/known_limits_and_service_quotas.html%20;%20https://docs.aws.amazon.com/eks/latest/userguide/eks-provisioned-control-plane.html

  12. Nuance, true with conditionsetcd Operations and Backup

    The notes saidIn EKS, AWS handles etcd backups, encryption, scaling; you can't access etcd directly.

    CorrectedDirect etcd access is still not available. Since Kubernetes 1.28, EKS envelope-encrypts all Kubernetes API data with KMS v2 by default (customer-managed KMS keys optional). etcd runs three members across three AZs. Database size is visible through apiserver_storage_size_bytes and, for provisioned tiers, etcd_mvcc_db_total_size_in_use_in_bytes in CloudWatch. AWS does not offer customer-restorable etcd snapshots, so you still back up workloads at the API level.

    Sourcedocs.aws.amazon.com/eks/latest/userguide/envelope-encryption.html%20;%20https://docs.aws.amazon.com/eks/latest/userguide/eks-architecture.html%20;%20https://docs.aws.amazon.com/eks/latest/userguide/eks-provisioned-control-plane.html

  13. Nuance, true with conditionsetcd Operations and Backup

    The notes saidKubernetes can encrypt secrets before storing in etcd (EncryptionConfiguration).

    CorrectedCorrect; the recommended provider is KMS v2 (stable since 1.29). KMS v1 is deprecated since 1.28 and disabled by default from 1.29 (needs --feature-gates=KMSv1=true). EncryptionConfiguration can cover any resource, not only Secrets.

    Sourcekubernetes.io/docs/tasks/administer-cluster/kms-provider

  14. Wrong, not trueetcd Operations and Backup

    The notes saidController manager reads desired state from etcd and the scheduler queries etcd.

    CorrectedOnly kube-apiserver talks to etcd. The scheduler and controllers list/watch through the API server using informer caches; Kubernetes advises that ideally only the API server has etcd access.

    Sourcekubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd

  15. Wrong, not trueetcd Operations and Backup

    The notes saidKubernetes resources are stored as JSON.

    Correctedkube-apiserver's --storage-media-type defaults to application/vnd.kubernetes.protobuf, so built-in resources are stored protobuf-encoded; custom resources are stored as JSON (CBOR possible behind the CBORServingAndStorage gate); resources covered by EncryptionConfiguration are stored as ciphertext.

    Sourcekubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver

  16. Wrong, not trueetcd Operations and Backup

    The notes saidVelero provides Kubernetes-native backup 'including etcd'.

    CorrectedVelero backs up Kubernetes objects by querying the API server and backs up volumes with snapshots or file-system backup (kopia); it never reads or snapshots etcd, which is why it works on managed control planes like EKS. Backups are not strictly atomic.

    Sourcevelero.io/docs/main/how-velero-works

  17. Wrong, not trueetcd Operations and Backup

    The notes saidLarge ConfigMaps or Secrets can hit the 1.5MB etcd value limit.

    CorrectedConfigMap data cannot exceed 1 MiB (Secrets likewise 1 MiB), enforced by API validation, so that limit is hit before etcd's 1.5 MiB request limit.

    Sourcekubernetes.io/docs/concepts/configuration/configmap/%20;%20https://etcd.io/docs/v3.6/dev-guide/limit

  18. Wrong, not trueetcd Operations and Backup

    The notes saidBackup CronJob as written (etcdctl snapshot save without endpoints/certs, no hostNetwork, no control-plane scheduling, no aws CLI, :latest).

    CorrectedIt cannot work: kubeadm etcd requires --endpoints=https://127.0.0.1:2379 plus --cacert/--cert/--key (from /etc/kubernetes/pki/etcd mounted via hostPath); 127.0.0.1 is only etcd with hostNetwork: true; the pod needs a nodeSelector/toleration for control-plane nodes; uploading to S3 needs an image with the aws CLI and credentials (Pod Identity/IRSA); and the image must be a pinned version. It is not applicable on EKS at all.

    Sourcekubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd

  19. Wrong, not trueetcd Operations and Backup

    The notes saidAdvises keeping etcd members in the same availability zone.

    CorrectedSpread control-plane and etcd members across failure zones (one member per AZ in a low-latency Region); a single-AZ etcd loses quorum with that AZ. EKS itself runs three etcd instances across three AZs.

    Sourcekubernetes.io/docs/setup/best-practices/multiple-zones/%20;%20https://docs.aws.amazon.com/eks/latest/userguide/eks-architecture.html

  20. Wrong, not trueetcd Operations and Backup

    The notes saidRestore steps omit a new --initial-cluster-token and that all members must restore from the same snapshot.

    CorrectedAll members must restore from the same snapshot. Restore overwrites member ID and cluster ID and starts a new logical cluster; pass the same new --initial-cluster-token and --initial-cluster to each member so restored members join only each other, not surviving old members.

    Sourceetcd.io/docs/v3.6/op-guide/recovery

Every correction across the guide, by note and topic.

Sources

Checked against kubernetes.io and AWS documentation for Kubernetes 1.37 on .

  1. kubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd
  2. kubernetes.io/docs/tasks/administer-cluster/encrypt-data
  3. kubernetes.io/docs/concepts/configuration/configmap
  4. etcd.io/docs/v3.6/faq
  5. etcd.io/docs/v3.6/op-guide/recovery
  6. etcd.io/docs/v3.6/op-guide/maintenance
  7. etcd.io/docs/v3.6/dev-guide/limit
  8. etcd.io/docs/v3.6/upgrades/upgrade_3_6
  9. etcd.io/docs/v3.7/upgrades/upgrade_3_7
  10. github.com/etcd-io/etcd/blob/v3.7.0/Dockerfile
  11. github.com/kubernetes/kubernetes/blob/release-1.37/cmd/kubeadm/app/constants/constants.go
  12. velero.io/docs/v1.18/how-velero-works
  13. velero.io/docs/v1.18/restore-reference
  14. velero.io/docs/v1.18/resource-filtering
  15. velero.io/docs/v1.18/file-system-backup
  16. docs.aws.amazon.com/aws-backup/latest/devguide/eks-backups.html
  17. docs.aws.amazon.com/eks/latest/userguide/envelope-encryption.html
  18. docs.aws.amazon.com/whitepapers/latest/disaster-recovery-workloads-on-aws/disaster-recovery-options-in-the-cloud.html

etcd, backup and disaster recovery

↓ ↑ step, 1 to 7 scene, Esc leave

kind cluster kxLast command: Nothing run yet