Open
Description
I am trying to take a snapshot of etcd via etcd3 python client library and my code looks like this :
import etcd3
etcd = etcd3.client(
host='xx.xx.xx.xx',
port='2379',
cert_cert='/etc/kubernetes/pki/etcd/server.crt',
cert_key='/etc/kubernetes/pki/etcd/server.key',
ca_cert='/etc/kubernetes/pki/etcd/ca.crt'
)
print("Client connected:", etcd)
etcd.snapshot('etcd_backup.db')
print("Snapshot taken successfully.")
except Exception as e:
print("Error:", e)
And if I remove the ca_cert path then I get ETCD connection failed.
What did you expect to happen?
I expect etcd3 client to recognize ca cert and get connected to etcd
How can we reproduce it (as minimally and precisely as possible)?
Install pip install etcd3 python etcd client library
Metadata
Assignees
Labels
No labels