Install
Requirements
Before installing etcd, see the following pages:
Install pre-built binaries
The easiest way to install etcd is from pre-built binaries:
Download the compressed archive file for your platform from Releases , choosing release v3.7.0 or later.
Unpack the archive file. This results in a directory containing the binaries.
Add the executable binaries to your path. For example, rename and/or move the binaries to a directory in your path (like
/usr/local/bin), or add the directory created by the previous step to your path.From a shell, test that
etcdis in your path:
Build from source
If you have Go version 1.21+ , you can build etcd from source by following these steps:
Download the etcd repo as a zip file and unzip it, or clone the repo using the following command.
To build from
main@HEAD, omit the-b v3.7.0flag.Change directory:
Run the build script:
The binaries are under the
bindirectory.Add the full path to the
bindirectory to your path, for example:Test that
etcdis in your path:
Installation via OS packages
Disclaimer: etcd installations through OS package managers can deliver outdated versions since they are not being automatically maintained nor officially supported by etcd project. Therefore use OS packages with caution.
There are various ways of installing etcd on different operating systems and these are just some examples how it can be done.
MacOS (Homebrew)
- Update homebrew:
- Install etcd:
- Verify install
Linux
Although installing etcd through many major Linux distributions’ official repositories and package managers is possible, the published versions can be significantly outdated. So, installing this way is strongly discouraged.
The recommended way to install etcd on Linux is either through pre-built binaries or by using Homebrew.
Homebrew on Linux
Homebrew can run on Linux , and can provide recent software versions.
Prerequisites
Update Homebrew:
Procedure
Install using
brew:
Result
Verify installation by getting the version:
Docker
etcd uses gcr.io/etcd-development/etcd
as a
primary container registry, and quay.io/coreos/etcd
as
secondary.
To run etcd using Docker:
Installation as part of Kubernetes installation
Installation check
For a slightly more involved sanity check of your installation, see Quickstart .