Skip to content

Commit c4c6467

Browse files
authored
Merge pull request kubernetes#82199 from dims/update-to-etcd-3.3.15-0-image
Update default etcd server to 3.3.15 for kubernetes 1.16
2 parents 84fe3db + 8ca2436 commit c4c6467

File tree

16 files changed

+38
-29
lines changed

16 files changed

+38
-29
lines changed

build/dependencies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: "etcd"
3-
version: 3.3.10
3+
version: 3.3.15
44
refPaths:
55
- path: cluster/gce/manifests/etcd.manifest
66
match: etcd_docker_tag|etcd_version

build/workspace.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ _CRI_TARBALL_ARCH_SHA256 = {
3535
"s390x": "8b7b5749cba88ef337997ae90aa04380e3cab2c040b44b505b2fcd691c4935e4",
3636
}
3737

38-
ETCD_VERSION = "3.3.10"
38+
ETCD_VERSION = "3.3.15"
3939
_ETCD_TARBALL_ARCH_SHA256 = {
40-
"amd64": "1620a59150ec0a0124a65540e23891243feb2d9a628092fb1edcc23974724a45",
41-
"arm64": "5ec97b0b872adce275b8130d19db314f7f2b803aeb24c4aae17a19e2d66853c4",
42-
"ppc64le": "148fe96f0ec1813c5db9916199e96a913174304546bc8447a2d2f9fee4b8f6c2",
40+
"amd64": "87e30dc472a48b775a9e764cb742a5df0a2844e7b82d12917d7ea489febbc8c8",
41+
"arm64": "0cdacf1a5f8095322ee77b62ac5e79c3326a5166deb69f558214b110b312b4c0",
42+
"ppc64le": "dcaa8d0ec1a117f6456778f3b9c7e685d4609c2a3c448afda1aa7a4232d0c481",
4343
}
4444

4545
# Dependencies needed for a Kubernetes "release", e.g. building docker images,

cluster/gce/config-test.sh

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

190-
# Set etcd image (e.g. k8s.gcr.io/etcd) and version (e.g. 3.3.10-1) if you need
190+
# Set etcd image (e.g. k8s.gcr.io/etcd) and version (e.g. 3.3.15-0) if you need
191191
# non-default version.
192192
ETCD_IMAGE="${TEST_ETCD_IMAGE:-}"
193193
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
@@ -13,4 +13,4 @@ spec:
1313
dnsPolicy: Default
1414
containers:
1515
- name: etcd-empty-dir-cleanup
16-
image: k8s.gcr.io/etcd-empty-dir-cleanup:3.3.10.1
16+
image: k8s.gcr.io/etcd-empty-dir-cleanup:3.3.15.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.3.10-1') }}",
17+
"image": "{{ pillar.get('etcd_docker_repository', 'k8s.gcr.io/etcd') }}:{{ pillar.get('etcd_docker_tag', '3.3.15-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.3.10') }}"
33+
"value": "{{ pillar.get('etcd_version', '3.3.15') }}"
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
@@ -170,8 +170,8 @@ export KUBE_GCE_ENABLE_IP_ALIASES=true
170170
export SECONDARY_RANGE_NAME="pods-default"
171171
export STORAGE_BACKEND="etcd3"
172172
export STORAGE_MEDIA_TYPE="application/vnd.kubernetes.protobuf"
173-
export ETCD_IMAGE=3.3.10-1
174-
export ETCD_VERSION=3.3.10
173+
export ETCD_IMAGE=3.3.15-0
174+
export ETCD_VERSION=3.3.15
175175

176176
# Upgrade master with updated kube envs
177177
"${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.3.10
17+
ETCD_VERSION = 3.3.15
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.3.10.0
23+
TAG = 3.3.15.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: 5 additions & 5 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=3.0.17 3.1.12 3.2.24 3.3.10] [REGISTRY=k8s.gcr.io] [ARCH=amd64] [BASEIMAGE=busybox] make (build|push)
18+
# [BUNDLED_ETCD_VERSIONS=3.0.17 3.1.12 3.2.24 3.3.15] [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,15 +26,15 @@
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?=3.0.17 3.1.12 3.2.24 3.3.10
29+
BUNDLED_ETCD_VERSIONS?=3.0.17 3.1.12 3.2.24 3.3.15
3030

3131
# LATEST_ETCD_VERSION identifies the most recent etcd version available.
32-
LATEST_ETCD_VERSION?=3.3.10
32+
LATEST_ETCD_VERSION?=3.3.15
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
3636
# for each revision of this image at that etcd version.
37-
REVISION?=2
37+
REVISION?=0
3838

3939
# IMAGE_TAG Uniquely identifies k8s.gcr.io/etcd docker image with a tag of the form "<etcd-version>-<revision>".
4040
IMAGE_TAG=$(LATEST_ETCD_VERSION)-$(REVISION)
@@ -62,7 +62,7 @@ endif
6262
# This option is for running docker manifest command
6363
export DOCKER_CLI_EXPERIMENTAL := enabled
6464
# golang version should match the golang version from https://github.com/coreos/etcd/releases for the current ETCD_VERSION.
65-
GOLANG_VERSION?=1.10.4
65+
GOLANG_VERSION?=1.12.9
6666
GOARM?=7
6767
TEMP_DIR:=$(shell mktemp -d)
6868

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.3.10" )
29+
by the `TARGET_STORAGE` (e.g. "etcd3") and `TARGET_VERSION` (e.g. "3.3.15" )
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 & 3 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: 'etcd3')
21-
# TARGET_VERSION - etcd release to be used (supported: '3.0.17', '3.1.12', '3.2.24', "3.3.10")
21+
# TARGET_VERSION - etcd release to be used (supported: '3.0.17', '3.1.12', '3.2.24', "3.3.15")
2222
# DATA_DIRECTORY - directory with etcd data
2323
#
2424
# The current etcd version and storage format is detected based on the
@@ -28,7 +28,7 @@
2828
# The update workflow support the following upgrade steps:
2929
# - 3.0.17/etcd3 -> 3.1.12/etcd3
3030
# - 3.1.12/etcd3 -> 3.2.24/etcd3
31-
# - 3.2.24/etcd3 -> 3.3.10/etcd3
31+
# - 3.2.24/etcd3 -> 3.3.15/etcd3
3232
#
3333
# NOTE: The releases supported in this script has to match release binaries
3434
# present in the etcd image (to make this script work correctly).
@@ -41,7 +41,7 @@ set -o nounset
4141

4242
# NOTE: BUNDLED_VERSION has to match release binaries present in the
4343
# etcd image (to make this script work correctly).
44-
BUNDLED_VERSIONS="3.0.17, 3.1.12, 3.2.24, 3.3.10"
44+
BUNDLED_VERSIONS="3.0.17, 3.1.12, 3.2.24, 3.3.15"
4545

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

0 commit comments

Comments
 (0)