Skip to content

Commit ad2ed0e

Browse files
committed
Update default etcd server to 3.2.24 for kubernetes 1.12
Signed-off-by: Timothy St. Clair <timothysc@gmail.com>
1 parent e5f55dd commit ad2ed0e

19 files changed

Lines changed: 33 additions & 32 deletions

File tree

build/build-image/cross/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ RUN go get golang.org/x/tools/cmd/cover \
7171
golang.org/x/tools/cmd/goimports
7272

7373
# Download and symlink etcd. We need this for our integration tests.
74-
RUN export ETCD_VERSION=v3.2.18; \
74+
RUN export ETCD_VERSION=v3.2.24; \
7575
mkdir -p /usr/local/src/etcd \
7676
&& cd /usr/local/src/etcd \
7777
&& curl -fsSL https://github.com/coreos/etcd/releases/download/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz | tar -xz \

build/root/WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ http_archive(
2121
urls = mirror("https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"),
2222
)
2323

24-
ETCD_VERSION = "3.2.18"
24+
ETCD_VERSION = "3.2.24"
2525

2626
new_http_archive(
2727
name = "com_coreos_etcd",
2828
build_file = "third_party/etcd.BUILD",
29-
sha256 = "b729db0732448064271ea6fdcb901773c4fe917763ca07776f22d0e5e0bd4097",
29+
sha256 = "947849dbcfa13927c81236fb76a7c01d587bbab42ab1e807184cd91b026ebed7",
3030
strip_prefix = "etcd-v%s-linux-amd64" % ETCD_VERSION,
3131
urls = mirror("https://github.com/coreos/etcd/releases/download/v%s/etcd-v%s-linux-amd64.tar.gz" % (ETCD_VERSION, ETCD_VERSION)),
3232
)

cluster/gce/config-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ ENABLE_METADATA_AGENT="${KUBE_ENABLE_METADATA_AGENT:-none}"
176176
# Useful for scheduling heapster in large clusters with nodes of small size.
177177
HEAPSTER_MACHINE_TYPE="${HEAPSTER_MACHINE_TYPE:-}"
178178

179-
# Set etcd image (e.g. k8s.gcr.io/etcd) and version (e.g. 3.2.18-0) if you need
179+
# Set etcd image (e.g. k8s.gcr.io/etcd) and version (e.g. 3.2.24-0) if you need
180180
# non-default version.
181181
ETCD_IMAGE="${TEST_ETCD_IMAGE:-}"
182182
ETCD_DOCKER_REPOSITORY="${TEST_ETCD_DOCKER_REPOSITORY:-}"

cluster/gce/manifests/etcd-empty-dir-cleanup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ spec:
1414
dnsPolicy: Default
1515
containers:
1616
- name: etcd-empty-dir-cleanup
17-
image: k8s.gcr.io/etcd-empty-dir-cleanup:3.2.18.0
17+
image: k8s.gcr.io/etcd-empty-dir-cleanup:3.2.24.0

cluster/gce/manifests/etcd.manifest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"containers":[
1515
{
1616
"name": "etcd-container",
17-
"image": "{{ pillar.get('etcd_docker_repository', 'k8s.gcr.io/etcd') }}:{{ pillar.get('etcd_docker_tag', '3.2.18-0') }}",
17+
"image": "{{ pillar.get('etcd_docker_repository', 'k8s.gcr.io/etcd') }}:{{ pillar.get('etcd_docker_tag', '3.2.24-0') }}",
1818
"resources": {
1919
"requests": {
2020
"cpu": {{ cpulimit }}
@@ -30,7 +30,7 @@
3030
"value": "{{ pillar.get('storage_backend', 'etcd3') }}"
3131
},
3232
{ "name": "TARGET_VERSION",
33-
"value": "{{ pillar.get('etcd_version', '3.2.18') }}"
33+
"value": "{{ pillar.get('etcd_version', '3.2.24') }}"
3434
},
3535
{ "name": "DATA_DIRECTORY",
3636
"value": "/var/etcd/data{{ suffix }}"

cluster/gce/upgrade-aliases.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ export KUBE_GCE_ENABLE_IP_ALIASES=true
161161
export SECONDARY_RANGE_NAME="pods-default"
162162
export STORAGE_BACKEND="etcd3"
163163
export STORAGE_MEDIA_TYPE="application/vnd.kubernetes.protobuf"
164-
export ETCD_IMAGE=3.2.18-0
165-
export ETCD_VERSION=3.2.18
164+
export ETCD_IMAGE=3.2.24-0
165+
export ETCD_VERSION=3.2.24
166166

167167
# Upgrade master with updated kube envs
168168
${KUBE_ROOT}/cluster/gce/upgrade.sh -M -l

cluster/images/etcd-empty-dir-cleanup/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515
.PHONY: build push
1616

17-
ETCD_VERSION = 3.2.18
17+
ETCD_VERSION = 3.2.24
1818
# Image should be pulled from k8s.gcr.io, which will auto-detect
1919
# region (us, eu, asia, ...) and pull from the closest.
2020
REGISTRY = k8s.gcr.io
2121
# Images should be pushed to staging-k8s.gcr.io.
2222
PUSH_REGISTRY = staging-k8s.gcr.io
23-
TAG = 3.2.18.0
23+
TAG = 3.2.24.0
2424

2525
clean:
2626
rm -rf etcdctl etcd-v$(ETCD_VERSION)-linux-amd64 etcd-v$(ETCD_VERSION)-linux-amd64.tar.gz

cluster/images/etcd/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Build the etcd image
1616
#
1717
# Usage:
18-
# [BUNDLED_ETCD_VERSIONS=2.2.1 2.3.7 3.0.17 3.1.12 3.2.18] [REGISTRY=k8s.gcr.io] [ARCH=amd64] [BASEIMAGE=busybox] make (build|push)
18+
# [BUNDLED_ETCD_VERSIONS=2.2.1 2.3.7 3.0.17 3.1.12 3.2.18 3.2.24] [REGISTRY=k8s.gcr.io] [ARCH=amd64] [BASEIMAGE=busybox] make (build|push)
1919
#
2020
# The image contains different etcd versions to simplify
2121
# upgrades. Thus be careful when removing any versions from here.
@@ -26,10 +26,10 @@
2626
# Except from etcd-$(version) and etcdctl-$(version) binaries, we also
2727
# need etcd and etcdctl binaries for backward compatibility reasons.
2828
# That binary will be set to the last version from $(BUNDLED_ETCD_VERSIONS).
29-
BUNDLED_ETCD_VERSIONS?=2.2.1 2.3.7 3.0.17 3.1.12 3.2.18
29+
BUNDLED_ETCD_VERSIONS?=2.2.1 2.3.7 3.0.17 3.1.12 3.2.18 3.2.24
3030

3131
# LATEST_ETCD_VERSION identifies the most recent etcd version available.
32-
LATEST_ETCD_VERSION?=3.2.18
32+
LATEST_ETCD_VERSION?=3.2.24
3333

3434
# REVISION provides a version number fo this image and all it's bundled
3535
# artifacts. It should start at zero for each LATEST_ETCD_VERSION and increment

cluster/images/etcd/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ server.
2626

2727
`migrate` writes a `version.txt` file to track the "current" version
2828
of etcd that was used to persist data to disk. A "target" version may also be provided
29-
by the `TARGET_STORAGE` (e.g. "etcd3") and `TARGET_VERSION` (e.g. "3.2.11" )
29+
by the `TARGET_STORAGE` (e.g. "etcd3") and `TARGET_VERSION` (e.g. "3.2.24" )
3030
environment variables. If the persisted version differs from the target version,
3131
`migrate-if-needed.sh` will migrate the data from the current to the target
3232
version.

cluster/images/etcd/migrate-if-needed.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# This script performs etcd upgrade based on the following environmental
1919
# variables:
2020
# TARGET_STORAGE - API of etcd to be used (supported: 'etcd2', 'etcd3')
21-
# TARGET_VERSION - etcd release to be used (supported: '2.2.1', '2.3.7', '3.0.17', '3.1.12', '3.2.18')
21+
# TARGET_VERSION - etcd release to be used (supported: '2.2.1', '2.3.7', '3.0.17', '3.1.12', '3.2.18', '3.2.24')
2222
# DATA_DIRECTORY - directory with etcd data
2323
#
2424
# The current etcd version and storage format is detected based on the
@@ -30,6 +30,7 @@
3030
# - 2.3.7/etcd2 -> 3.0.17/etcd2
3131
# - 3.0.17/etcd3 -> 3.1.12/etcd3
3232
# - 3.1.12/etcd3 -> 3.2.18/etcd3
33+
# - 3.2.18/etcd3 -> 3.2.24/etcd3
3334
#
3435
# NOTE: The releases supported in this script has to match release binaries
3536
# present in the etcd image (to make this script work correctly).
@@ -42,7 +43,7 @@ set -o nounset
4243

4344
# NOTE: BUNDLED_VERSION has to match release binaries present in the
4445
# etcd image (to make this script work correctly).
45-
BUNDLED_VERSIONS="2.2.1, 2.3.7, 3.0.17, 3.1.12, 3.2.18"
46+
BUNDLED_VERSIONS="2.2.1, 2.3.7, 3.0.17, 3.1.12, 3.2.18 3.2.24"
4647

4748
ETCD_NAME="${ETCD_NAME:-etcd-$(hostname)}"
4849
if [ -z "${DATA_DIRECTORY:-}" ]; then

0 commit comments

Comments
 (0)