etcd icon indicating copy to clipboard operation
etcd copied to clipboard

Is there any way use one set of certificates for several etcd cluster

Open workhardcc opened this issue 9 years ago • 2 comments

If I have several etcd cluster, simply I should create several certificates for each cluster. However can I create only one set of certificates for those etcd cluster? Cause it's too complicated when I want scaling the cluster or some other scenarios( to tell the truth I want use only one set of certificates for etcd cluster and kubernetes cluster). I try to generate server certificate like below, but dosen't work: cfssl print-defaults csr > server.json

...
    "CN": "coreos1",
    "hosts": [
        ""
    ],
...

I follow the guide: https://coreos.com/os/docs/latest/generate-self-signed-certificates.html Thanks!

workhardcc avatar May 05 '17 07:05 workhardcc

You can just configure more nodes in hosts field.

  ...
  "hosts": [
    "127.0.0.1",
    "localhost",
    "10.240.0.1"
  ]
}

But we recommend unique certs for each node, because it provides better security (e.g. add,remove nodes).

gyuho avatar May 05 '17 15:05 gyuho

@workhardcc I am closing this. Please let me know if you have further questions on TLS set-up.

gyuho avatar May 05 '17 20:05 gyuho