mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Add --force-new-cluster when running etcd for migrations.
This is required to avoid etcd trying to create quorum during migrations.
This commit is contained in:
parent
424a0e9e82
commit
cc7c142011
@ -120,6 +120,7 @@ start_etcd() {
|
|||||||
${ETCD_CMD} \
|
${ETCD_CMD} \
|
||||||
--name="etcd-$(hostname)" \
|
--name="etcd-$(hostname)" \
|
||||||
--debug \
|
--debug \
|
||||||
|
--force-new-cluster \
|
||||||
--data-dir=${DATA_DIRECTORY} \
|
--data-dir=${DATA_DIRECTORY} \
|
||||||
--listen-client-urls http://127.0.0.1:${ETCD_PORT} \
|
--listen-client-urls http://127.0.0.1:${ETCD_PORT} \
|
||||||
--advertise-client-urls http://127.0.0.1:${ETCD_PORT} \
|
--advertise-client-urls http://127.0.0.1:${ETCD_PORT} \
|
||||||
|
Loading…
Reference in New Issue
Block a user