I am looking to have a dynamic etcd
cluster running inside my k8s cluster. The best way I can think of doing it dynamically (no hardcoded addresses, names, etc.) is to use DNS discovery, with the internal k8s DNS (CoreDNS).
I find detached information about SRV
records created for services in k8s, and some explanations on how etcd
DNS discovery works, but no complete howto.
For example:
- how does k8s name
SRV
entries? - should they be named with a specific way for
etcd
to be able to find them? - should any special CoreDNS setting be set?
Any help on that would be greatly appreciated.
references: