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

Commit c43235c

Browse files
authored
Merge pull request #359 from hongchaodeng/f
SelfHostedEtcd: etcd pods only run on master nodes
2 parents 2bc0568 + f1dd08a commit c43235c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/util/etcdutil/migrate.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,13 @@ func createMigratedEtcdCluster(restclient restclient.Interface, host, podIP stri
126126
"spec": {
127127
"size": 1,
128128
"version": "v3.1.0",
129+
"pod": {
130+
"nodeSelector": {
131+
"master": "true"
132+
}
133+
},
129134
"selfHosted": {
130-
"bootMemberClientEndpoint": "http://%s:12379"
135+
"bootMemberClientEndpoint": "http://%s:12379"
131136
}
132137
}
133138
}`, spec.TPRGroup, spec.TPRVersion, strings.Title(spec.TPRKind), etcdClusterName, podIP))

0 commit comments

Comments
 (0)