Skip to content

v3.0.16

Compare
Choose a tag to compare
@gyuho gyuho released this 13 Jan 20:42

Today we're announcing etcd v3.0.16. This is primarily a bug fix release, backward-compatible with all previous v3.0.0+ releases. Please read NEWS for highlighted changes.

Release signing key can be found at coreos.com/security/app-signing-key.

Bug fixes
  • GH6929: etcdserver: use context for Renew
  • GH7023: clientv3: fix lease "freezing" on unhealthy cluster
  • GH7148: clientv3: don't reset stream on keepaliveonce or revoke failure
Getting started
Linux
ETCD_VER=v3.0.16
DOWNLOAD_URL=https://github.com/coreos/etcd/releases/download
curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
mkdir -p /tmp/test-etcd && tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /tmp/test-etcd --strip-components=1

/tmp/test-etcd/etcd --version

Git SHA: a23109a
Go Version: go1.6.4
Go OS/Arch: linux/amd64
# start a local etcd server
/tmp/test-etcd/etcd

# write,read to etcd
ETCDCTL_API=3 /tmp/test-etcd/etcdctl --endpoints=localhost:2379 put foo "bar"
ETCDCTL_API=3 /tmp/test-etcd/etcdctl --endpoints=localhost:2379 get foo
Mac OS (Darwin)
ETCD_VER=v3.0.16
DOWNLOAD_URL=https://github.com/coreos/etcd/releases/download
curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-darwin-amd64.zip -o /tmp/etcd-${ETCD_VER}-darwin-amd64.zip
mkdir -p /tmp/test-etcd && unzip /tmp/etcd-${ETCD_VER}-darwin-amd64.zip -d /tmp && mv /tmp/etcd-${ETCD_VER}-darwin-amd64/* /tmp/test-etcd

/tmp/test-etcd/etcd --version
Run in containers
rkt
RKT_VERSION=v1.22.0

GITHUB_URL=https://github.com/coreos/rkt/releases/download

DOWNLOAD_URL=${GITHUB_URL}

rm -f /tmp/rkt-${RKT_VERSION}.tar.gz
rm -rf /tmp/test-rkt-${RKT_VERSION} && mkdir -p /tmp/test-rkt-${RKT_VERSION}

curl -L ${DOWNLOAD_URL}/${RKT_VERSION}/rkt-${RKT_VERSION}.tar.gz -o /tmp/rkt-${RKT_VERSION}.tar.gz
tar xzvf /tmp/rkt-${RKT_VERSION}.tar.gz -C /tmp/test-rkt-${RKT_VERSION} --strip-components=1

# sudo cp /tmp/test-rkt-${RKT_VERSION}/rkt /usr/local/bin
sudo cp /tmp/test-rkt-${RKT_VERSION}/rkt /

/rkt version


sudo /rkt \
    --trust-keys-from-https \
    run \
    --stage1-name coreos.com/rkt/stage1-fly:1.22.0 \
    quay.io/coreos/etcd:v3.0.16 \
    --exec=/bin/sh -- -c "export ETCDCTL_API=3 && /usr/local/bin/etcdctl version"

sudo rm -rf /tmp/etcd-data
sudo mkdir -p /tmp/etcd-data
sudo chown -R root:$(whoami) /tmp/etcd-data
sudo chmod -R a+rw /tmp/etcd-data

sudo /rkt \
    --trust-keys-from-https \
    run \
    --stage1-name coreos.com/rkt/stage1-fly:1.22.0 \
    --net=host \
    --volume etcd-data-dir,kind=host,source=/tmp/etcd-data \
    --mount volume=etcd-data-dir,target=/tmp/etcd-data \
    quay.io/coreos/etcd:v3.0.16 -- \
    --name my-etcd-1 \
    --data-dir /tmp/etcd-data \
    --listen-client-urls http://localhost:2379 \
    --advertise-client-urls http://localhost:2379 \
    --listen-peer-urls http://localhost:2380 \
    --initial-advertise-peer-urls http://localhost:2380 \
    --initial-cluster my-etcd-1=http://localhost:2380 \
    --initial-cluster-token my-etcd-token \
    --initial-cluster-state new \
    --auto-compaction-retention 1

sudo /rkt \
    --trust-keys-from-https \
    run \
    --stage1-name coreos.com/rkt/stage1-fly:1.22.0 \
    quay.io/coreos/etcd:v3.0.16 \
    --exec=/bin/sh -- -c "export ETCDCTL_API=3 && /usr/local/bin/etcdctl put foo bar"

For more details, please check rkt commands.

Docker
docker run --name etcd quay.io/coreos/etcd:v3.0.16

For more details, please check Docker guide.