This commit is contained in:
Hongchao Deng 2016-08-23 14:26:04 -07:00
Родитель fe5b92504c
Коммит e72866dd02
1 изменённых файлов: 8 добавлений и 28 удалений

Просмотреть файл

@ -18,34 +18,6 @@ Managed etcd clusters on Kubernetes:
- Backup only works for data in etcd3 storage, not etcd2 storage.
## Initialize the TPR
(TODO: auto create TPR when deploy the controller)
```bash
$ cat example/etcd-clusters-tpr.yaml
```
```yaml
apiVersion: extensions/v1beta1
kind: ThirdPartyResource
description: "Managed etcd clusters"
metadata:
name: "etcd-cluster.coreos.com"
versions:
- name: v1
- name: v2
```
```bash
$ kubectl create -f example/etcd-clusters-tpr.yaml
$ kubectl get thirdpartyresources
NAME DESCRIPTION VERSION(S)
etcd-cluster.coreos.com Managed etcd clusters v1,v2
```
## Deploy kube-etcd-controller
```bash
@ -53,6 +25,14 @@ $ kubectl create -f example/etcd-controller.yaml
pod "kubeetcdctrl" created
```
kube-etcd-controller will create a TPR automatically.
```bash
$ kubectl get thirdpartyresources
NAME DESCRIPTION VERSION(S)
etcd-cluster.coreos.com Managed etcd clusters v1
```
## Create an etcd cluster
```bash