-
Notifications
You must be signed in to change notification settings - Fork 218
templates: enable etcd-quorum-read in apiserver #655
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@hongchaodeng can you also set it on the bootstrap apiserver? |
Then as a follow-up this should be done in tectonic-installer too: https://github.com/coreos/tectonic-installer/blob/master/modules/bootkube/resources/bootstrap-manifests/bootstrap-apiserver.yaml |
d1b54a2
to
db8090e
Compare
added to bootstrap apiserver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
pkg/asset/internal/templates.go
Outdated
@@ -175,6 +175,7 @@ spec: | |||
- --etcd-keyfile=/etc/kubernetes/secrets/etcd-client.key | |||
{{- end }} | |||
- --etcd-servers={{ range $i, $e := .EtcdServers }}{{ if $i }},{{end}}{{ $e }}{{end}} | |||
- --etcd-quorum-read=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: quorum comes before servers
pkg/asset/internal/templates.go
Outdated
@@ -251,6 +252,7 @@ spec: | |||
- --etcd-keyfile=/etc/kubernetes/secrets/etcd-client.key | |||
{{- end }} | |||
- --etcd-servers={{ range $i, $e := .EtcdServers }}{{ if $i }},{{end}}{{ $e }}{{end}}{{ if .SelfHostedEtcd }},https://127.0.0.1:12379{{end}} | |||
- --etcd-quorum-read=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here.
db8090e
to
fc83f5e
Compare
fixed |
fc83f5e
to
ed98d4f
Compare
Merging because the tests passed last time and this failure is unrelated. |
For HA setup, enabling quorum-read is necessary.