Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit c2b2959

Browse files
authored
Merge pull request #461 from hongchaodeng/fix
*: update etcd-operator and etcd version
2 parents 79bce14 + 759810d commit c2b2959

File tree

7 files changed

+16
-7
lines changed

7 files changed

+16
-7
lines changed

hack/multi-node/etcd-cloud-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ coreos:
1313
- name: 40-etcd-cluster.conf
1414
content: |
1515
[Service]
16-
Environment="ETCD_IMAGE_TAG=v3.1.0"
16+
Environment="ETCD_IMAGE_TAG=v3.1.6"
1717
Environment="ETCD_NAME={{ETCD_NODE_NAME}}"
1818
Environment="ETCD_ADVERTISE_CLIENT_URLS=https://$private_ipv4:2379"
1919
Environment="ETCD_INITIAL_ADVERTISE_PEER_URLS=https://$private_ipv4:2380"

hack/multi-node/user-data.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ coreos:
3232
--allow-privileged \
3333
--hostname-override=${COREOS_PUBLIC_IPV4} \
3434
--node-labels=node-role.kubernetes.io/master \
35+
--register-with-taints=node-role.kubernetes.io/master=:NoSchedule \
3536
--cluster_dns=10.3.0.10 \
3637
--cluster_domain=cluster.local
3738

hack/quickstart/init-master.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function configure_etcd() {
2323
mkdir -p /etc/systemd/system/etcd-member.service.d
2424
cat << EOF > /etc/systemd/system/etcd-member.service.d/10-etcd-member.conf
2525
[Service]
26-
Environment="ETCD_IMAGE_TAG=v3.1.0"
26+
Environment="ETCD_IMAGE_TAG=v3.1.6"
2727
Environment="ETCD_NAME=controller"
2828
Environment="ETCD_INITIAL_CLUSTER=controller=https://${COREOS_PRIVATE_IPV4}:2380"
2929
Environment="ETCD_INITIAL_ADVERTISE_PEER_URLS=https://${COREOS_PRIVATE_IPV4}:2380"

hack/quickstart/kubelet.master

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ ExecStart=/usr/lib/coreos/kubelet-wrapper \
2424
--allow-privileged \
2525
--hostname-override=${COREOS_PRIVATE_IPV4} \
2626
--node-labels=node-role.kubernetes.io/master \
27+
--register-with-taints=node-role.kubernetes.io/master=:NoSchedule \
2728
--cluster_dns=10.3.0.10 \
2829
--cluster_domain=cluster.local \
2930
--pod-manifest-path=/etc/kubernetes/manifests

hack/single-node/user-data-etcd.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- name: 10-version.conf
55
content: |
66
[Service]
7-
Environment="ETCD_IMAGE_TAG=v3.1.0"
7+
Environment="ETCD_IMAGE_TAG=v3.1.6"
88
Environment="ETCD_NAME=default"
99
Environment="ETCD_INITIAL_CLUSTER=default=https://127.0.0.1:2380"
1010
Environment="ETCD_INITIAL_ADVERTISE_PEER_URLS=https://127.0.0.1:2380"

pkg/asset/internal/templates.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ spec:
864864
spec:
865865
containers:
866866
- name: etcd-operator
867-
image: quay.io/coreos/etcd-operator:v0.2.4
867+
image: quay.io/coreos/etcd-operator:v0.2.5
868868
env:
869869
- name: MY_POD_NAMESPACE
870870
valueFrom:
@@ -906,7 +906,7 @@ metadata:
906906
spec:
907907
containers:
908908
- name: etcd
909-
image: quay.io/coreos/etcd:v3.1.0
909+
image: quay.io/coreos/etcd:v3.1.6
910910
command:
911911
- /usr/local/bin/etcd
912912
- --name=boot-etcd

pkg/util/etcdutil/migrate.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,18 @@ func createMigratedEtcdCluster(restclient restclient.Interface, podIP string) er
126126
},
127127
"spec": {
128128
"size": 1,
129-
"version": "v3.1.0",
129+
"version": "v3.1.6",
130130
"pod": {
131131
"nodeSelector": {
132132
"node-role.kubernetes.io/master": ""
133-
}
133+
},
134+
"tolerations": [
135+
{
136+
"key": "node-role.kubernetes.io/master",
137+
"operator": "Exists",
138+
"effect": "NoSchedule"
139+
}
140+
]
134141
},
135142
"selfHosted": {
136143
"bootMemberClientEndpoint": "http://%s:12379"

0 commit comments

Comments
 (0)