K3s high availability with embedded etcd

Running K3s with three or more servers and embedded etcd gives the control plane fault tolerance, but only when server counts, flags and the registration address are planned together. This page covers the decisions, build sequence and limits to confirm.

On this page

When K3s high availability with embedded etcd is worth building

Build K3s high availability with embedded etcd when losing one server node would stop the cluster's control plane and the business work that depends on it. A default K3s install runs a single server that keeps cluster state in an embedded SQLite database on that node. That is simple to operate, but the API, scheduling and cluster configuration then have no second copy. Embedded etcd replaces that database with an etcd cluster that runs inside the K3s server processes, so several servers hold replicated state and the control plane can keep serving requests while one member is down or under maintenance. This suits teams whose applications now carry production traffic, whose change windows cannot absorb a full cluster rebuild, and who can dedicate at least three servers to the control plane.

The trade-off is operational weight. Each extra server adds compute, a second place to patch and monitor, and a member that must agree with the others through etcd quorum. Before committing, confirm that you can place three servers on separate hosts or failure domains, that the network between them is stable enough for consensus traffic, and that someone owns etcd snapshots and restore testing. Replication does not protect against accidental deletion or corrupted data, so snapshots remain necessary. Also confirm that a fixed registration address and a load balancer in front of the servers are part of the plan, because without them agents and kubectl users still depend on one server's address.

Stay with a single server when the cluster is a development environment, a small edge site where rebuilding from configuration is acceptable, or a workload that can tolerate a short outage while a node is replaced. If your recovery objectives are unclear, write them down first, because they set how many servers you need, how often snapshots run and how much restore practice your team must do. Once you have decided that embedded etcd fits, the sections that follow cover server counts, flags that must match on every server, conversion from a single node and sizing for your agent count.

Server topology and configuration choices

This table compares four K3s server layouts: one SQLite node, a three-server embedded etcd cluster, a five-server embedded etcd cluster and an external datastore. Read each row for the failure tolerance, operational load and agent capacity it brings, then confirm the exact datastore options and limits against the K3s documentation for the version you plan to run.

OptionFailure toleranceOperations and agent fit
Single server with SQLiteNone. Loss of the server stops the control plane and the datastore is one file on one node.Lowest setup effort and suits lab, test or small edge sites. Backups are a file copy of the datastore, and it is not a path to highly available control planes.
Three servers with embedded etcdTolerates loss of one server while keeping quorum. Losing two servers stops writes.Common starting point for production. Three servers are a reasonable default for small to mid-sized agent pools, and each server adds etcd replication work.
Five servers with embedded etcdTolerates loss of two servers while keeping quorum, at the cost of more replication traffic and more nodes to patch.Chosen when the uptime target justifies extra servers or when maintenance windows overlap. Confirm the agent count you expect and whether the extra servers' load is acceptable on your hardware.
External datastoreDepends on the availability of the external database service and its own backup design, which sits outside K3s.Suits teams that already run a supported database platform with its own backup and monitoring. Confirm supported datastore engines and the server count for the K3s version in use.

Flags and settings that must match on every server

The cluster token is the shared secret that lets a server or agent join an existing cluster. Every server in the cluster must use the same token value, and each additional server must point at a server that is already running and reachable. If the token differs, the new node is rejected during join, and a node that was started with a different token before it joined is not simply a member of the wrong cluster, it is an independent one. The join address is different: it tells a new server where to fetch cluster state, and it only needs to reach one healthy server at the time of joining. Treat the token as a credential, store it in your secrets process, and never paste it into shared documentation.

  • Identical token value: Use the same token on all servers and agents, delivered from one source such as your configuration management or secrets store.
  • Join address on first start: New servers point at an existing server's supervisor port, typically the fixed registration address described in the next tab.
  • Token rotation: Changing the token later is an operational procedure, not a single edit, so plan it as a maintenance change.
  • Node identity: Give each node a unique name, since duplicate hostnames cause confusing registration failures.

Before you add a server, confirm the token and join address against a running server, and check the exact flag names for your K3s version in its documentation.

How to build the embedded etcd cluster step by step

This sequence turns three or more K3s servers into one highly available control plane with embedded etcd, with a fixed registration address in front of them and agents joining through that address. Each step ends with a check so you know the cluster is healthy before you move on.

  1. Choose and publish the registration address

    Before any node is installed, create a DNS name or a virtual IP that will sit in front of the server nodes, and decide which port it listens on for the K3s API. Agents and the other servers will use this address for joining, so it must not point at one server's own IP alone. Ask your network team to confirm that the address can be moved between servers or that the load balancer health checks will route around a failed server. Done means the name resolves from every subnet that will hold a node, and you have written down the value you will pass to the installer.

  2. Initialize the first server with embedded etcd

    On the first server, run the K3s installer in server mode with the cluster initialization flag so that K3s starts embedded etcd instead of SQLite. Set the shared token, the TLS SAN entries for the registration address, and any other settings you intend to keep identical on every server, such as the CNI choice, disabled bundled components and the cluster CIDRs. Check that the K3s service is active, that the node reports Ready in kubectl get nodes, and that the node is listed as a member when you query the cluster's etcd member list with the bundled tooling. Only continue when the single member is healthy.

  3. Confirm the server configuration matches before joining

    Before adding a second server, compare the configuration file or install flags on the first server with the ones you plan to use on the others. Pay particular attention to the token, the cluster initialization setting, the TLS SAN list, the networking CIDRs, and any disabled components, because a mismatch on a joining server can stop it from joining or split behavior between nodes. Record the configuration in version control so that the same file can be reused for every server. Done means you have a single reviewed configuration that every server will receive.

  4. Join the second and third servers through the registration address

    On each additional server, run the installer in server mode with the same token and the registration address as the server URL, using the identical configuration. Join one server at a time and wait for it to finish starting before you start the next. Check that the new node appears as a Ready server in kubectl get nodes, and that the etcd member list now shows the new member alongside the first. Repeat until you have the number of servers you planned, keeping the count odd. Do not start a second server while another is still joining.

  5. Verify etcd quorum and API reachability

    With all servers joined, check the etcd member list again and confirm that every member is listed and started. Test the registration address directly, for example by requesting the API through it from a machine outside the cluster, and confirm that the certificate presented covers that name. Stop the K3s service on one server in a maintenance window and confirm that the API still answers through the registration address and that the cluster still reports the remaining members. Restart that server and confirm it rejoins. Done means the cluster survives the loss of one member as you designed it to.

  6. Join agent nodes through the registration address

    On each agent node, run the installer in agent mode with the same token and the registration address as the server URL. Agents do not hold etcd data, so they can be added and removed without changing the control plane membership. Check that each agent appears in kubectl get nodes with a Ready status and that the expected labels and taints are applied. If an agent fails to register, check the token, the registration address resolution and the certificate names before changing anything else.

  7. Confirm workloads schedule across the cluster

    Deploy a small test workload with several replicas and confirm that the scheduler places pods on both server and agent nodes, if your design allows workloads on servers. Check the pod status and node placement with kubectl get pods -o wide. Confirm that the cluster DNS and the CNI are working by resolving a service name from inside a pod. Remove the test workload when the checks pass. Done means the cluster is ready for the platform components you will install next, such as ingress, monitoring and backups.

Converting a single SQLite node to embedded etcd

Converting a single server changes where the cluster keeps its state, not only how many servers run. A single-node K3s cluster stores its datastore in a SQLite file on that host. Embedded etcd is a different datastore: each K3s server runs an etcd member inside its own process, and the first converted server becomes the foundation the other servers join. The conversion therefore changes the storage layer as well as adding capacity. Once the node has started on etcd, the old SQLite data is not a safe fallback. Before you change anything, back up the datastore and the server token, and record the exact configuration file and flags the node runs with. Store the copy off the node, and confirm it can be restored before you rely on it as your rollback point.

Work in a fixed order. First, stop the single server cleanly and restart it with the embedded etcd initialization setting, so it becomes the first member of the cluster. Check that the node returns to Ready, that system pods and your workloads come back, and that kubectl access and the node name behave as they did before. Only then add the second server, giving it the same cluster token and the same datastore and networking flags as the first, and pointing it at the fixed registration address for the cluster. Confirm the new member appears in the etcd member list before you add a third. Two members give no fault tolerance, so do not stay at two. Three members, which is an odd count, let the cluster tolerate the loss of one server. Confirm the exact flag names and join steps for your K3s version before the change window.

How the servers, registration address and agents connect

Agents and administrators reach one fixed registration address, which forwards to any of the three or more K3s servers. Each server runs an embedded etcd member, so the servers together hold the cluster state and form the control plane boundary. Agents join through the same address and run workloads on their own nodes, outside that boundary. Check that every server uses the same flags, that the address stays stable when a server is replaced, and that the server count stays odd.

Agents and clients reach three or more K3s servers through one fixed address.

Sizing servers for the number of agents

Server sizing for a K3s high availability cluster depends on three things: how many agents will join, how often workloads change, and how heavily the embedded etcd is written. The number of servers is set by fault tolerance, but the size of each server is set by these load factors, so the two decisions should not be made together. Start by estimating the agent count for the next 12 to 18 months, the number of pods created and deleted per hour during normal operation and during deployments, and the number of Kubernetes objects such as Secrets, ConfigMaps and leases that controllers and operators will write. Ask your K3s and hardware vendors for their current sizing guidance for those inputs, then confirm it with your own load tests. No public figure in this section replaces a test on your own hardware and workload mix.

Keep the server role for control plane work. Where the cluster is small enough to run workloads on servers, a taint on the servers keeps application pods off them so that a noisy workload cannot starve etcd of disk or CPU. K3s applies a CriticalAddonsOnly taint to servers by default, and you should review which system pods tolerate it before adding your own taints. Dedicated servers also make it easier to set disk and CPU limits and to attach faster storage to etcd. Where servers and agents share hardware, measure etcd fsync latency and API server request latency first, because a shared disk is the most common cause of slow leader elections.

Measure before you grow and again after each change. Record etcd database size, wal_fsync_duration_seconds and backend_commit_duration_seconds, API server request latency, leader changes, CPU and disk utilization on each server, and the number of objects in the cluster. Add the same measurements to your monitoring before growth starts so that you have a baseline. When you add agents, check the server numbers after the new nodes have settled. When you add a server, remember that a larger member count increases the replication work for every write, so raise the count only when you need the extra fault tolerance and have the disk and network to support it. Confirm the thresholds you will alert on with the etcd and K3s documentation that matches your version.

Security and operational risks to plan for

A K3s high availability cluster concentrates cluster state, credentials and join material on a few server nodes. The cards below cover the risks that follow from that design, and each one needs an owner and a check before the cluster carries workloads.

Protect the cluster token

The cluster token lets a node join the control plane as a server or agent, so anyone holding it can add a machine to your cluster. Store it in your secrets system, limit who can read the server configuration file, and rotate it through a planned change if it is exposed. Confirm how your team will add nodes later without copying the token into scripts or chat history.

Encrypt Secrets at rest in etcd

Kubernetes stores Secrets unencrypted in etcd by default, and embedded etcd keeps that data on each server's disk. Configure encryption at rest for Secret resources on every server, then verify that existing Secrets are rewritten under the new key. Check that snapshot files and server disks are protected to the same standard, since a copy of a snapshot holds the same data.

Secrets good practices

Restrict access with least-privilege RBAC

Users and service accounts that can list or watch Secrets can read credentials across a namespace or cluster. Bind roles to the smallest set of verbs and namespaces each team needs, and keep cluster-admin for a short list of named operators. Review bindings after each team change and confirm that the kubeconfig distributed to operators is not the one that holds the cluster token.

Back up and restore etcd snapshots

K3s can take embedded etcd snapshots on a schedule, but a snapshot is only useful if you have restored from one. Store copies off the server nodes, record the retention you set, and rehearse a restore on a separate cluster. Use etcdctl for snapshot save operations and etcdutl for restore work, and document which server holds the authoritative data after a failure.

Operating etcd clusters

Manage certificates and SANs for the registration address

Servers and agents reach the fixed registration address over TLS, so the serving certificate must include that address as a subject alternative name. Adding a new name later, such as a DNS record for the load balancer, changes the certificate that every server presents. Plan the names before the first install, record the expiry dates, and test a rotation on a non-production cluster before the first real renewal.

Follow the upgrade order and skew policy

Upgrade one minor version at a time and move the server nodes before agents, because kubelets may be up to three minor versions older than kube-apiserver. Keep each server on the same K3s release during the window so embedded etcd and the control plane do not run mixed versions for long. Confirm the target minor version against the current release list and schedule the window around the end-of-life dates your team tracks.

Maximum kubelet lag
3 minor versions
Version skew policy

Questions teams ask before building K3s HA

What does a K3s high availability build cost and what drives the price?

The cost is set by the written scope, not by a list price. DeployOpen does not publish a price list, and a quote follows from the agreed scope. The main cost drivers are the number of server and agent nodes, whether the cluster is in a data center, a cloud account or remote edge sites, how many environments need the same build (for example, staging and production), how much of the surrounding work is included (load balancing, DNS, backups, monitoring and documentation), and how much integration with identity or GitOps tooling is required. Ask for the quote to separate one-time build work from recurring items such as upgrades, patch cycles and retainers, and to list which of your staff must attend reviews and change windows.

How long does a K3s HA project take?

Duration depends on the environment and the scope, and no fixed figure applies to every team. The largest variables are how many clusters are built, whether hardware and virtual machines already exist, how quickly your network, DNS and load balancer changes are approved, and whether a change window is needed for the conversion of an existing single-node SQLite cluster. Teams with ready infrastructure and clear requirements move faster. Ask for a timeline in the written scope that lists dependencies on your side, so delays in provisioning or approvals are visible before the build starts.

What must our internal team provide before the build starts?

Most delays come from missing inputs rather than from the K3s work itself. Plan for the following before the build starts:

  • Three or more server hosts or virtual machines, with the CPU, memory and disk that your agent count requires, and a decision on an odd server count
  • A fixed registration address, usually a DNS name in front of a TCP load balancer, and the DNS zone where it will be created
  • Network paths between servers for the etcd and API ports, plus firewall rules for agents
  • Change windows for the first install and for any conversion from a single SQLite node
  • Named owners for identity, backup storage and monitoring, and the approval path for each

Confirm each item with your network, platform and security teams early.

Can our team build K3s HA without outside help?

Yes, a capable platform team can build K3s HA alone, provided it has Linux administration, DNS and load balancing skills and time to test failure cases. The K3s documentation describes the install flags and the embedded etcd topology, so the steps are not hidden. The harder part is consistency: every server must carry matching flags, the registration address must stay stable, and backups and restores must be rehearsed. A partner makes sense when the team lacks that experience, when several clusters must match, or when auditors need documented evidence. Compare the cost of your own staff time with a fixed-scope quote before deciding.

How do we test failover in a K3s HA cluster?

Test by stopping components on purpose and checking that the API, workloads and agents keep working. A reasonable test plan covers stopping one server at a time and confirming that the registration address still answers and kubectl commands succeed, then stopping a second server in a three-server cluster to confirm the expected loss of quorum and recovery after restart. Also test an agent restart, a load balancer failover if you use more than one, and a restore from an etcd snapshot into a lab copy. Record results, timings and the commands used, so the same test can be repeated after upgrades.

When does a fixed-scope K3s HA engagement make sense?

A fixed-scope engagement suits work with clear boundaries: a defined number of clusters, agreed node counts, named integrations and a documented test plan. DeployOpen works this way for most engagements, and scope, deliverables and timelines are agreed in writing before work starts. It is a poor fit when requirements are still changing, when the cluster design depends on decisions not yet made by your architecture or security teams, or when you want open-ended operational support. In those cases, start with a short design review, then agree a fixed scope for the build. Ongoing upgrades and support can be handled under a retainer.

What should we check on a K3s HA cluster before it carries production traffic?

Check the parts that most often fail in practice. Confirm that every server uses the same flags for the cluster token, the registration address, the embedded etcd settings and the networking options, because a mismatch can prevent servers from joining. Confirm the server count is odd and that the registration address resolves to all healthy servers. Verify that etcd snapshots are scheduled, stored off the server nodes and restorable in a test environment. Finally, confirm that the Kubernetes distribution's security settings, such as Secrets encryption at rest, are enabled and documented for your auditors.

Limits to confirm in your environment

A K3s high availability design depends on facts that vary by release, hardware and network. The cards below list the items to verify before you commit to a server count, a datastore and a registration path, so the design holds up once nodes are in production.

K3s release and Kubernetes minor

Each K3s release tracks one Kubernetes minor version, and that minor version has its own end-of-life date. Check the K3s release you plan to install against the supported Kubernetes release list before you pick it. As of September 2026, the three supported minors were 1.37, 1.36 and 1.35, so a K3s build on an older minor may already be out of support. Confirm the target release with your platform owner and plan the upgrade path before go-live, since the server count and etcd settings must match across all servers during changes.

Kubernetes releases

Embedded etcd datastore limits

Embedded etcd is a Kubernetes datastore, so its performance depends on disk latency and the number of objects the cluster stores. Etcd needs an odd number of members, and the Kubernetes documentation recommends five members in production. Confirm with your storage team that the server disks sustain low write latency, and agree on a backup schedule with snapshots stored off the cluster. Ask K3s support questions about the size limits you expect to reach before you commit to a server count.

Recommended production members
5
etcd operations docs

Latency between servers

Each server participates in etcd consensus, so every write waits on acknowledgments from other servers. Latency and packet loss between server nodes affect control plane responsiveness and can trigger leader elections. Measure round-trip time and jitter between every pair of server nodes, including across racks, zones or sites. If servers span sites, confirm that the link is stable enough for consensus traffic and decide whether a stretched design is acceptable for your recovery goals before you place a server in a second location.

Hardware minimums for the workload

Server sizing depends on the agent count, the object count and the workloads that run on servers. K3s can schedule workloads on server nodes unless you taint them, which increases their resource use. Measure CPU, memory and disk IOPS on a test cluster that matches your expected agent count, then size servers with headroom for upgrades and node failure. Ask your hardware team to confirm that the chosen machines are supported in your data center and that a server loss does not leave the remaining servers unable to meet capacity.

Bundled components and existing tooling

K3s ships with bundled components, including a default ingress controller, a load balancer, a network policy controller and a local path storage provider. Each one may conflict with a component your team already runs, such as an ingress controller, a CNI plugin, a monitoring agent or a storage class. Review the bundled list for your release, decide which components to disable at install time, and confirm that the flags match on every server. Document each choice so that upgrades do not reintroduce a component you removed.

Air-gapped and private registry path

If the servers cannot reach public registries, you need a plan for delivering the K3s binaries, the system images and the workload images to each node. Confirm which artifacts your chosen K3s release requires, where they will be mirrored, and how the registry configuration reaches every server and agent. Test a fresh install and an upgrade from the private source before production. Ask your security team to approve the transfer method for signed artifacts, since a mismatch between the mirrored and upstream images can block a join or upgrade.

How DeployOpen scopes and delivers K3s high availability

DeployOpen plans and builds K3s high availability with embedded etcd inside infrastructure you control, from server count and registration address to backups and handover. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.

How we scope

  • Confirm server count, odd-numbered etcd membership and the hardware or virtual machines each server will run on
  • Document the fixed registration address, load balancer or DNS design and the agent count the servers must handle
  • Agree in writing whether the work includes converting an existing single-node SQLite cluster to embedded etcd

How we build

  • Install every server with identical K3s version and matching flags, including cluster token, TLS SAN and datastore settings
  • Join agents through the registration address, then test that a single server failure leaves the API and workloads available
  • Configure etcd snapshots and restore steps, and verify a snapshot restore in a test environment before handover

How we hand over

  • Deliver the written configuration for each server, the registration address design and the flag baseline used
  • Provide runbooks for adding or removing servers, rotating the cluster token and taking and restoring etcd snapshots
  • Document the upgrade sequence for servers and agents so your team can repeat it without DeployOpen present

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover
  • Retainers can cover K3s version upgrades, snapshot restore testing and review of server sizing as agent counts grow
  • Ask for the support scope, response expectations and upgrade responsibilities in the written quote before signing

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.