hanqingwu commented on issue #11189:
URL: https://github.com/apache/apisix/issues/11189#issuecomment-2073930030
Yes, the etcd cluster is not running normal.
So you can scale etcd replicas from 3 to 1 .
Or you can try preference etcd cluster config like this:
```
ETCD_ENABLE_V2: true
ALLOW_NONE_AUTHENTICATION: yes
ETCD_NAME: cooper-apisix-etcd-1
(v1:metadata.name)
POD_IP: (v1:status.podIP)
ETCD_ADVERTISE_CLIENT_URLS: http://$(POD_IP):2379
ETCD_INITIAL_ADVERTISE_PEER_URLS:
http://$(ETCD_NAME).cooper-apisix-etcd.paas-middleware-workspace-middleware.svc:2380
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380
ETCD_INITIAL_CLUSTER:
cooper-apisix-etcd-0=http://cooper-apisix-etcd-0.cooper-apisix-etcd.paas-middleware-workspace-middleware.svc:2380,cooper-apisix-etcd-1=http://cooper-apisix-etcd-1.cooper-apisix-etcd.paas-middleware-workspace-middleware.svc:2380,cooper-apisix-etcd-2=http://cooper-apisix-etcd-2.cooper-apisix-etcd.paas-middleware-workspace-middleware.svc:2380
ETCD_INITIAL_CLUSTER_TOKEN: apisix-etcd-cluster
ETCD_INITIAL_CLUSTER_STATE: new
ETCD_DEBUG: true
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]