Skip to content

Commit

Permalink
Fix error rejected connection from EOF ServerName xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
gengwg committed Feb 18, 2023
1 parent a623e33 commit 8c6f4c6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion etcd/etcdctl-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@
# ./etcdctl-wrapper.sh endpoint status --cluster
# ./etcdctl-wrapper.sh -w members list

# Tested version:
# $ etcdctl version
# etcdctl version: 3.3.11
$ API version: 3.3

export ETCDCTL_API=3

ETCD_CERT_FILE="/var/lib/kubernetes/etcd.pem"
ETCD_KEY_FILE="/var/lib/kubernetes/etcd.key"
ETCD_TRUSTED_CA_FILE="/etc/pki/ca-trust/tls-ca-bundle.pem"
# List all endpoints
ETCDRUN_ENDPOINTS="https://kubectrlplane101.example.com:2379,https://kubectrlplane102.example.com:2379,https://kubectrlplane103.example.com:2379"
ETCDRUN_ENDPOINTS="https://kubectrlplane101.example.com:2379, https://kubectrlplane102.example.com:2379, https://kubectrlplane103.example.com:2379"
sudo ETCDCTL_API=3 etcdctl --cert=$ETCD_CERT_FILE --cacert=$ETCD_TRUSTED_CA_FILE --key=$ETCD_KEY_FILE --endpoints=$ETCDRUN_ENDPOINTS $*

1 comment on commit 8c6f4c6

@gengwg
Copy link
Owner Author

@gengwg gengwg commented on 8c6f4c6 Feb 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may be incorrect. It may be caused by something else. Reverting.

Please sign in to comment.