Need Assistance?

In only two hours, with an average response time of 15 minutes, our expert will have your problem sorted out.

Server Trouble?

For a single, all-inclusive fee, we guarantee the continuous reliability, safety, and blazing speed of your servers.

How to Install etcd on Ubuntu 24.04

etcd is a distributed key-value store used widely in modern infrastructure stacks like Kubernetes, service meshes, and microservice systems. It’s reliable, lightweight, and production-ready.This guide focuses on Install etcd on Ubuntu 24.04.

  • Distributed Configuration & Coordination
    etcd provides strong consistency and distributed coordination using the Raft algorithm  making it ideal for shared configs.
  • Service Discovery
    Applications can register themselves and discover each other via etcd.
  • Critical Component in Kubernetes
    Kubernetes stores all its cluster data (pods, services, secrets, configs) in etcd.

Steps to install etcd on Ubuntu 24.04

Update Package Lists

sudo apt-get update

Download etcd from GitHub

wget https://github.com/etcd-io/etcd/releases/download/v3.6.2/etcd-v3.6.2-linux-amd64.tar.gz

Extract the Tar File

tar -xvzf etcd-v3.6.2-linux-amd64.tar.gz
cd etcd-v3.6.2-linux-amd64/

Move Binaries to a System Path

sudo mv etcd etcdctl /usr/local/bin/

Check versions:

etcd --version

etcdctl version

Create Required Directories

sudo mkdir -p /etc/etcd /var/lib/etcd

Create etcd System User

sudo useradd -r -s /sbin/nologin etcd

Create a systemd Service File for etc

vim /etc/systemd/system/etcd.service 

[Unit]

Description=etcd key-value store

Documentation=https://etcd.io/docs/

After=network.target

[Service]

User=etcd

Type=notify

ExecStart=/usr/local/bin/etcd \\

  –name default \\

  –data-dir /var/lib/etcd \\

  –listen-client-urls http://0.0.0.0:2379 \\

  –advertise-client-urls http://localhost:2379

Restart=on-failure

LimitNOFILE=40000

[Install]

WantedBy=multi-user.target

Reload systemd and Enable the Service

sudo systemctl daemon-reload
sudo systemctl enable etcd

 Fix Permissions (important)

sudo chown -R etcd:etcd /var/lib/etcd
sudo chmod 700 /var/lib/etcd

 Start etcd

sudo systemctl start etcd

Check its status:

sudo systemctl status etcd

If needed, view logs:

journalctl -xeu etcd.service

Test etcd Works

etcdctl put hello "Ubuntu 24.04"
etcdctl get hello

Expected output:
hello

Ubuntu 24.04

conclusion

You have successfully installed and configured etcd on Ubuntu 24.04 from the official release, set it up as a systemd service, and verified that it’s functioning correctly. This setup forms a solid foundation for building reliable, distributed systems. Whether you’re using etcd as the backbone for Kubernetes, for service discovery in microservices, or as a centralized configuration store, it provides the consistency and reliability essential in modern infrastructure. With etcd running smoothly, you’re now well-equipped to scale your system, add clustering, or secure communication using TLS — all while keeping your data consistent and your services coordinated.

If you need expert assistance with Installing etcd on Ubuntu 24.04 or setting up your infrastructure reliably, our team is here to help. Skynats offers professional DevOps support services to streamline your deployment and ensure high availability. contact us today to get started!

Liked!! Share the post.

Get Support right now!

Start server management with our 24x7 monitoring and active support team

Let us know your requirement.

Can't get what you are looking for?

Get Support Right Away!

Thank You

We have received your query and will get back to you soon.