Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ad2ed0e7
Commit
ad2ed0e7
authored
Sep 05, 2018
by
Timothy St. Clair
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update default etcd server to 3.2.24 for kubernetes 1.12
Signed-off-by:
Timothy St. Clair
<
timothysc@gmail.com
>
parent
e5f55dd9
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
33 additions
and
32 deletions
+33
-32
Dockerfile
build/build-image/cross/Dockerfile
+1
-1
WORKSPACE
build/root/WORKSPACE
+2
-2
config-test.sh
cluster/gce/config-test.sh
+1
-1
etcd-empty-dir-cleanup.yaml
cluster/gce/manifests/etcd-empty-dir-cleanup.yaml
+1
-1
etcd.manifest
cluster/gce/manifests/etcd.manifest
+2
-2
upgrade-aliases.sh
cluster/gce/upgrade-aliases.sh
+2
-2
Makefile
cluster/images/etcd-empty-dir-cleanup/Makefile
+2
-2
Makefile
cluster/images/etcd/Makefile
+3
-3
README.md
cluster/images/etcd/README.md
+1
-1
migrate-if-needed.sh
cluster/images/etcd/migrate-if-needed.sh
+3
-2
constants.go
cmd/kubeadm/app/constants/constants.go
+3
-3
constants_test.go
cmd/kubeadm/app/constants/constants_test.go
+1
-1
compute_test.go
cmd/kubeadm/app/phases/upgrade/compute_test.go
+4
-4
etcd.sh
hack/lib/etcd.sh
+1
-1
rc.yaml
.../k8s.io/apiextensions-apiserver/artifacts/example/rc.yaml
+1
-1
rc.yaml
...ing/src/k8s.io/sample-apiserver/artifacts/example/rc.yaml
+1
-1
aggregator.go
test/e2e/apimachinery/aggregator.go
+1
-1
nodes_util.go
test/e2e/framework/nodes_util.go
+2
-2
start-kubemark.sh
test/kubemark/start-kubemark.sh
+1
-1
No files found.
build/build-image/cross/Dockerfile
View file @
ad2ed0e7
...
...
@@ -71,7 +71,7 @@ RUN go get golang.org/x/tools/cmd/cover \
golang.org/x/tools/cmd/goimports
# Download and symlink etcd. We need this for our integration tests.
RUN
export
ETCD_VERSION
=
v3.2.
18
;
\
RUN
export
ETCD_VERSION
=
v3.2.
24
;
\
mkdir
-p
/usr/local/src/etcd
\
&&
cd
/usr/local/src/etcd
\
&&
curl
-fsSL
https://github.com/coreos/etcd/releases/download/
${
ETCD_VERSION
}
/etcd-
${
ETCD_VERSION
}
-linux-amd64
.tar.gz |
tar
-xz
\
...
...
build/root/WORKSPACE
View file @
ad2ed0e7
...
...
@@ -21,12 +21,12 @@ http_archive(
urls = mirror("https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"),
)
ETCD_VERSION = "3.2.
18
"
ETCD_VERSION = "3.2.
24
"
new_http_archive(
name = "com_coreos_etcd",
build_file = "third_party/etcd.BUILD",
sha256 = "
b729db0732448064271ea6fdcb901773c4fe917763ca07776f22d0e5e0bd409
7",
sha256 = "
947849dbcfa13927c81236fb76a7c01d587bbab42ab1e807184cd91b026ebed
7",
strip_prefix = "etcd-v%s-linux-amd64" % ETCD_VERSION,
urls = mirror("https://github.com/coreos/etcd/releases/download/v%s/etcd-v%s-linux-amd64.tar.gz" % (ETCD_VERSION, ETCD_VERSION)),
)
...
...
cluster/gce/config-test.sh
View file @
ad2ed0e7
...
...
@@ -176,7 +176,7 @@ ENABLE_METADATA_AGENT="${KUBE_ENABLE_METADATA_AGENT:-none}"
# Useful for scheduling heapster in large clusters with nodes of small size.
HEAPSTER_MACHINE_TYPE
=
"
${
HEAPSTER_MACHINE_TYPE
:-}
"
# Set etcd image (e.g. k8s.gcr.io/etcd) and version (e.g. 3.2.
18
-0) if you need
# Set etcd image (e.g. k8s.gcr.io/etcd) and version (e.g. 3.2.
24
-0) if you need
# non-default version.
ETCD_IMAGE
=
"
${
TEST_ETCD_IMAGE
:-}
"
ETCD_DOCKER_REPOSITORY
=
"
${
TEST_ETCD_DOCKER_REPOSITORY
:-}
"
...
...
cluster/gce/manifests/etcd-empty-dir-cleanup.yaml
View file @
ad2ed0e7
...
...
@@ -14,4 +14,4 @@ spec:
dnsPolicy
:
Default
containers
:
-
name
:
etcd-empty-dir-cleanup
image
:
k8s.gcr.io/etcd-empty-dir-cleanup:3.2.
18
.0
image
:
k8s.gcr.io/etcd-empty-dir-cleanup:3.2.
24
.0
cluster/gce/manifests/etcd.manifest
View file @
ad2ed0e7
...
...
@@ -14,7 +14,7 @@
"containers":[
{
"name": "etcd-container",
"image": "{{ pillar.get('etcd_docker_repository', 'k8s.gcr.io/etcd') }}:{{ pillar.get('etcd_docker_tag', '3.2.
18
-0') }}",
"image": "{{ pillar.get('etcd_docker_repository', 'k8s.gcr.io/etcd') }}:{{ pillar.get('etcd_docker_tag', '3.2.
24
-0') }}",
"resources": {
"requests": {
"cpu": {{ cpulimit }}
...
...
@@ -30,7 +30,7 @@
"value": "{{ pillar.get('storage_backend', 'etcd3') }}"
},
{ "name": "TARGET_VERSION",
"value": "{{ pillar.get('etcd_version', '3.2.
18
') }}"
"value": "{{ pillar.get('etcd_version', '3.2.
24
') }}"
},
{ "name": "DATA_DIRECTORY",
"value": "/var/etcd/data{{ suffix }}"
...
...
cluster/gce/upgrade-aliases.sh
View file @
ad2ed0e7
...
...
@@ -161,8 +161,8 @@ export KUBE_GCE_ENABLE_IP_ALIASES=true
export
SECONDARY_RANGE_NAME
=
"pods-default"
export
STORAGE_BACKEND
=
"etcd3"
export
STORAGE_MEDIA_TYPE
=
"application/vnd.kubernetes.protobuf"
export
ETCD_IMAGE
=
3.2.
18
-0
export
ETCD_VERSION
=
3.2.
18
export
ETCD_IMAGE
=
3.2.
24
-0
export
ETCD_VERSION
=
3.2.
24
# Upgrade master with updated kube envs
${
KUBE_ROOT
}
/cluster/gce/upgrade.sh
-M
-l
...
...
cluster/images/etcd-empty-dir-cleanup/Makefile
View file @
ad2ed0e7
...
...
@@ -14,13 +14,13 @@
.PHONY
:
build push
ETCD_VERSION
=
3.2.
18
ETCD_VERSION
=
3.2.
24
# Image should be pulled from k8s.gcr.io, which will auto-detect
# region (us, eu, asia, ...) and pull from the closest.
REGISTRY
=
k8s.gcr.io
# Images should be pushed to staging-k8s.gcr.io.
PUSH_REGISTRY
=
staging-k8s.gcr.io
TAG
=
3.2.
18
.0
TAG
=
3.2.
24
.0
clean
:
rm
-rf
etcdctl etcd-v
$(ETCD_VERSION)
-linux-amd64
etcd-v
$(ETCD_VERSION)
-linux-amd64
.tar.gz
...
...
cluster/images/etcd/Makefile
View file @
ad2ed0e7
...
...
@@ -15,7 +15,7 @@
# Build the etcd image
#
# Usage:
# [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)
# [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)
#
# The image contains different etcd versions to simplify
# upgrades. Thus be careful when removing any versions from here.
...
...
@@ -26,10 +26,10 @@
# Except from etcd-$(version) and etcdctl-$(version) binaries, we also
# need etcd and etcdctl binaries for backward compatibility reasons.
# That binary will be set to the last version from $(BUNDLED_ETCD_VERSIONS).
BUNDLED_ETCD_VERSIONS
?=
2.2.1 2.3.7 3.0.17 3.1.12 3.2.18
BUNDLED_ETCD_VERSIONS
?=
2.2.1 2.3.7 3.0.17 3.1.12 3.2.18
3.2.24
# LATEST_ETCD_VERSION identifies the most recent etcd version available.
LATEST_ETCD_VERSION
?=
3.2.
18
LATEST_ETCD_VERSION
?=
3.2.
24
# REVISION provides a version number fo this image and all it's bundled
# artifacts. It should start at zero for each LATEST_ETCD_VERSION and increment
...
...
cluster/images/etcd/README.md
View file @
ad2ed0e7
...
...
@@ -26,7 +26,7 @@ server.
`migrate`
writes a
`version.txt`
file to track the "current" version
of etcd that was used to persist data to disk. A "target" version may also be provided
by the
`TARGET_STORAGE`
(e.g. "etcd3") and
`TARGET_VERSION`
(e.g. "3.2.
11
" )
by the
`TARGET_STORAGE`
(e.g. "etcd3") and
`TARGET_VERSION`
(e.g. "3.2.
24
" )
environment variables. If the persisted version differs from the target version,
`migrate-if-needed.sh`
will migrate the data from the current to the target
version.
...
...
cluster/images/etcd/migrate-if-needed.sh
View file @
ad2ed0e7
...
...
@@ -18,7 +18,7 @@
# This script performs etcd upgrade based on the following environmental
# variables:
# TARGET_STORAGE - API of etcd to be used (supported: 'etcd2', 'etcd3')
# TARGET_VERSION - etcd release to be used (supported: '2.2.1', '2.3.7', '3.0.17', '3.1.12', '3.2.18')
# 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'
)
# DATA_DIRECTORY - directory with etcd data
#
# The current etcd version and storage format is detected based on the
...
...
@@ -30,6 +30,7 @@
# - 2.3.7/etcd2 -> 3.0.17/etcd2
# - 3.0.17/etcd3 -> 3.1.12/etcd3
# - 3.1.12/etcd3 -> 3.2.18/etcd3
# - 3.2.18/etcd3 -> 3.2.24/etcd3
#
# NOTE: The releases supported in this script has to match release binaries
# present in the etcd image (to make this script work correctly).
...
...
@@ -42,7 +43,7 @@ set -o nounset
# NOTE: BUNDLED_VERSION has to match release binaries present in the
# etcd image (to make this script work correctly).
BUNDLED_VERSIONS
=
"2.2.1, 2.3.7, 3.0.17, 3.1.12, 3.2.18"
BUNDLED_VERSIONS
=
"2.2.1, 2.3.7, 3.0.17, 3.1.12, 3.2.18
3.2.24
"
ETCD_NAME
=
"
${
ETCD_NAME
:-
etcd
-
$(
hostname
)}
"
if
[
-z
"
${
DATA_DIRECTORY
:-}
"
]
;
then
...
...
cmd/kubeadm/app/constants/constants.go
View file @
ad2ed0e7
...
...
@@ -241,10 +241,10 @@ const (
KubeletHealthzPort
=
10248
// MinExternalEtcdVersion indicates minimum external etcd version which kubeadm supports
MinExternalEtcdVersion
=
"3.2.1
7
"
MinExternalEtcdVersion
=
"3.2.1
8
"
// DefaultEtcdVersion indicates the default etcd version that kubeadm uses
DefaultEtcdVersion
=
"3.2.
18
"
DefaultEtcdVersion
=
"3.2.
24
"
// Etcd defines variable used internally when referring to etcd component
Etcd
=
"etcd"
...
...
@@ -361,7 +361,7 @@ var (
SupportedEtcdVersion
=
map
[
uint8
]
string
{
10
:
"3.1.12"
,
11
:
"3.2.18"
,
12
:
"3.2.
18
"
,
12
:
"3.2.
24
"
,
}
)
...
...
cmd/kubeadm/app/constants/constants_test.go
View file @
ad2ed0e7
...
...
@@ -170,7 +170,7 @@ func TestEtcdSupportedVersion(t *testing.T) {
},
{
kubernetesVersion
:
"1.12.1"
,
expectedVersion
:
version
.
MustParseSemantic
(
"3.2.
18
"
),
expectedVersion
:
version
.
MustParseSemantic
(
"3.2.
24
"
),
expectedError
:
nil
,
},
}
...
...
cmd/kubeadm/app/phases/upgrade/compute_test.go
View file @
ad2ed0e7
...
...
@@ -589,7 +589,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeadmVersion
:
"v1.12.0-alpha.2"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.2.2"
,
EtcdVersion
:
"3.2.
18
"
,
EtcdVersion
:
"3.2.
24
"
,
},
},
},
...
...
@@ -642,7 +642,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeadmVersion
:
"v1.12.1"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.2.2"
,
EtcdVersion
:
"3.2.
18
"
,
EtcdVersion
:
"3.2.
24
"
,
},
},
},
...
...
@@ -679,7 +679,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeadmVersion
:
"v1.12.0"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.2.2"
,
EtcdVersion
:
"3.2.
18
"
,
EtcdVersion
:
"3.2.
24
"
,
},
},
},
...
...
@@ -716,7 +716,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeadmVersion
:
"v1.12.0"
,
DNSType
:
"kube-dns"
,
DNSVersion
:
"1.14.10"
,
EtcdVersion
:
"3.2.
18
"
,
EtcdVersion
:
"3.2.
24
"
,
},
},
},
...
...
hack/lib/etcd.sh
View file @
ad2ed0e7
...
...
@@ -16,7 +16,7 @@
# A set of helpers for starting/running etcd for tests
ETCD_VERSION
=
${
ETCD_VERSION
:-
3
.2.
18
}
ETCD_VERSION
=
${
ETCD_VERSION
:-
3
.2.
24
}
ETCD_HOST
=
${
ETCD_HOST
:-
127
.0.0.1
}
ETCD_PORT
=
${
ETCD_PORT
:-
2379
}
export
KUBE_INTEGRATION_ETCD_URL
=
"http://
${
ETCD_HOST
}
:
${
ETCD_PORT
}
"
...
...
staging/src/k8s.io/apiextensions-apiserver/artifacts/example/rc.yaml
View file @
ad2ed0e7
...
...
@@ -23,4 +23,4 @@ spec:
-
"
--etcd-servers=http://localhost:2379"
-
"
--audit-log-path=-"
-
name
:
etcd
image
:
quay.io/coreos/etcd:v3.2.
18
image
:
quay.io/coreos/etcd:v3.2.
24
staging/src/k8s.io/sample-apiserver/artifacts/example/rc.yaml
View file @
ad2ed0e7
...
...
@@ -21,4 +21,4 @@ spec:
imagePullPolicy
:
Never
command
:
[
"
/kube-sample-apiserver"
,
"
--etcd-servers=http://localhost:2379"
]
-
name
:
etcd
image
:
quay.io/coreos/etcd:v3.2.
18
image
:
quay.io/coreos/etcd:v3.2.
24
test/e2e/apimachinery/aggregator.go
View file @
ad2ed0e7
...
...
@@ -133,7 +133,7 @@ func TestSampleAPIServer(f *framework.Framework, image string) {
// kubectl create -f deploy.yaml
deploymentName
:=
"sample-apiserver-deployment"
etcdImage
:=
"quay.io/coreos/etcd:v3.2.
18
"
etcdImage
:=
"quay.io/coreos/etcd:v3.2.
24
"
podLabels
:=
map
[
string
]
string
{
"app"
:
"sample-apiserver"
,
"apiserver"
:
"true"
}
replicas
:=
int32
(
1
)
zero
:=
int64
(
0
)
...
...
test/e2e/framework/nodes_util.go
View file @
ad2ed0e7
...
...
@@ -63,7 +63,7 @@ func etcdUpgradeGCE(target_storage, target_version string) error {
os
.
Environ
(),
"TEST_ETCD_VERSION="
+
target_version
,
"STORAGE_BACKEND="
+
target_storage
,
"TEST_ETCD_IMAGE=3.2.
18
-0"
)
"TEST_ETCD_IMAGE=3.2.
24
-0"
)
_
,
_
,
err
:=
RunCmdEnv
(
env
,
gceUpgradeScript
(),
"-l"
,
"-M"
)
return
err
...
...
@@ -103,7 +103,7 @@ func masterUpgradeGCE(rawV string, enableKubeProxyDaemonSet bool) error {
env
=
append
(
env
,
"TEST_ETCD_VERSION="
+
TestContext
.
EtcdUpgradeVersion
,
"STORAGE_BACKEND="
+
TestContext
.
EtcdUpgradeStorage
,
"TEST_ETCD_IMAGE=3.2.
18
-0"
)
"TEST_ETCD_IMAGE=3.2.
24
-0"
)
}
else
{
// In e2e tests, we skip the confirmation prompt about
// implicit etcd upgrades to simulate the user entering "y".
...
...
test/kubemark/start-kubemark.sh
View file @
ad2ed0e7
...
...
@@ -64,7 +64,7 @@ SERVICE_CLUSTER_IP_RANGE="${SERVICE_CLUSTER_IP_RANGE:-}"
EVENT_PD="
${
EVENT_PD
:-}
"
# Etcd related variables.
ETCD_IMAGE="
${
ETCD_IMAGE
:-
3
.2.
18
-0
}
"
ETCD_IMAGE="
${
ETCD_IMAGE
:-
3
.2.
24
-0
}
"
ETCD_VERSION="
${
ETCD_VERSION
:-}
"
# Controller-manager related variables.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment