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

Commit e9ac62f

Browse files
committed
use self hosted spec and change static etcd pod
1 parent 92901d0 commit e9ac62f

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

pkg/util/etcdutil/migrate.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,8 @@ func createMigratedEtcdCluster(httpcli *http.Client, host, podIP string) error {
113113
"spec": {
114114
"size": 1,
115115
"version": "v3.1.0-alpha.1",
116-
"seed": {
117-
"MemberClientEndpoints": [
118-
"http://%s:2379"
119-
],
120-
"RemoveDelay": 30
116+
"selfHosted": {
117+
"bootMemberClientEndpoint": "http://%s:12379"
121118
}
122119
}
123120
}`, podIP))

pkg/util/etcdutil/start_etcd.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ spec:
4747
- -c
4848
- /usr/local/bin/etcd
4949
--name boot-etcd
50-
--listen-client-urls=http://0.0.0.0:2379
51-
--listen-peer-urls=http://0.0.0.0:2380
52-
--advertise-client-urls=http://$(MY_POD_IP):2379
53-
--initial-advertise-peer-urls http://$(MY_POD_IP):2380
54-
--initial-cluster boot-etcd=http://$(MY_POD_IP):2380
50+
--listen-client-urls=http://0.0.0.0:12379
51+
--listen-peer-urls=http://0.0.0.0:12380
52+
--advertise-client-urls=http://$(MY_POD_IP):12379
53+
--initial-advertise-peer-urls http://$(MY_POD_IP):12380
54+
--initial-cluster boot-etcd=http://$(MY_POD_IP):12380
5555
--initial-cluster-token bootkube
5656
--initial-cluster-state new
5757
--data-dir=/var/etcd/data

0 commit comments

Comments
 (0)