mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
22 lines
549 B
Markdown
22 lines
549 B
Markdown
# etcd on Kubernetes
|
|
|
|
This is an example setting up etcd as a set of pods and services running on top of kubernetes. Using:
|
|
|
|
```
|
|
$ kubectl create -f etcd.yml
|
|
services/etcd-client
|
|
pods/etcd0
|
|
services/etcd0
|
|
pods/etcd1
|
|
services/etcd1
|
|
pods/etcd2
|
|
services/etcd2
|
|
$ # now deploy a service that consumes etcd, such as vulcand
|
|
$ kubectl create -f vulcand.yml
|
|
```
|
|
|
|
TODO:
|
|
|
|
- create a replication controller like service that knows how to add and remove nodes from the cluster correctly
|
|
- use kubernetes secrets API to configure TLS for etcd clients and peers
|