0

I followed this document but dont know how to enable v2 so that patroni can work with, can anyone help? https://computingforgeeks.com/setup-etcd-cluster-on-centos-debian-ubuntu/

1 Answer 1

0

Starting etcd v3.4, etcd wouldn't serve API v2 by default. You'll need to add --enable-v2=true in your etcd startup script to enable API v2.

In your guide's case, add it on step 3 in ExecStart when creating your etcd.service systemd unit file, i.e.

ExecStart=/usr/local/bin/etcd \\
  --name ${ETCD_NAME} \\
  --enable-v2=true \\
  --data-dir=/var/lib/etcd \\
  ...

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .