This commit is contained in:
Xiang Li 2016-08-23 17:09:16 -07:00 коммит произвёл GitHub
Родитель 092c8ba200
Коммит f5a11c09f1
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -103,9 +103,10 @@ etcd-cluster-0002 1/1 Running 0 5s
etcd-cluster-0003 1/1 Running 0 5s
```
## Restart Controller
## Try controller recovery
etcd controller can recover itself from restart or a crash. Continued from above, you can try to simulate a controller crash:
etcd controller can recover itself from restart. Continued from above, you can try to simulate a crash:
```bash
$ kubectl delete -f example/etcd-controller.yaml
pod "kubeetcdctrl" deleted
@ -115,6 +116,7 @@ pod "etcd-cluster-0003" deleted
```
Then restart etcd controller. It should automatically recover itself. It also recovers the etcd cluster!
```bash
$ kubectl create -f example/example-etcd-cluster.yaml