etcdctl throws Error: context deadline exceeded error etcdctl throws Error: context deadline exceeded error kubernetes kubernetes

etcdctl throws Error: context deadline exceeded error


The certificates are generated for etcd.uday.com.You are trying to connect using etcd.udayvishwakarma.com while certificate is valid for etcd.uday.com.Change endpoint on etcdctl from etcd.udayvishwakarma.com to etcd.uday.com.


I ran into the same problem today, probably this is not going to be useful for you now, but it will for anybody who runs into the same problem in the future.I think you might be missing

etcd.udayvishwakarma.com

from your cert in

--cert=etcd-client.pem 

To verify that etcd.udayvishwakarma.com exists in your cert, you can run:

openssl x509 -in etcd-client.pem -text

and you should be able to see it under X509v3 Subject Alternative Name. If you don't, you will probably need to recreate the certificate adding that DNS name.


while i am running .\etcdctl.exe put key value, i get this error

 Error: context deadline exceeded

befor running etcdctl.exe you should running etcd.exe first.in my case it's working.