-
Notifications
You must be signed in to change notification settings - Fork 739
Etcd connectivity from outside kubernetes #996
Comments
do you think creating an kubernetes service with external lb will solve your problem? you can configure it yourself. we could write up a doc about how to fill in the label selector in the service. |
I've edited the ${clusterName}-client service to be "LoadBalancer" instead of "ClusterIP", and that allows curl to work with the service perfectly. However with etcdctl or confd, the servers provide a clientUrl, which the clients use to talk to the servers individually. Since this clientUrl is not resolvable, the client process dies, see details above. Ideally I would like to be able to provide a real domain to etcd-operator to use as the clientUrl on each server. |
You can configure etcdctl to not sync with the clusters to update its clientURLs. It should solve the problem. When you use any sort of LB, you should not sync with etcd's clientURLs.
Can you give me an example? maybe a step by step configuration you would like to see? |
Cool, so the main reason I needed this was for confd, which as it happens looks like they have fixed this no-sync issue in 0.12.0: kelseyhightower/confd#329 (comment). Verified. I'm sure a doc on creating an external service would be useful. Many thanks. |
I would like to be able to allow etcd clients running outside of kubernetes to access the service.
Version: v0.2.5
I don't believe this is currently possible since clients will be asked to resolve a dns entry provided by the servers which is not available outside of Kubernetes.
I first mentioned this issue here: #964.
error #0: dial tcp: lookup optest1-0002.optest1.optest1.svc.cluster.local on 192.168.1.9:53: no such host
error #1: dial tcp: lookup optest1-0000.optest1.optest1.svc.cluster.local on 192.168.1.9:53: no such host
error #2: dial tcp: lookup optest1-0001.optest1.optest1.svc.cluster.local on 192.168.1.9:53: no such host
The text was updated successfully, but these errors were encountered: