Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
doc: op guide for install, uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
hongchaodeng committed Mar 3, 2017
1 parent ecf62a2 commit d3e446d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 14 deletions.
15 changes: 1 addition & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,7 @@ Read [Developer Guide](./doc/dev/developer_guide.md) for setting up development

## Deploy etcd operator

```bash
$ kubectl create -f example/deployment.yaml
deployment "etcd-operator" created
```

etcd operator will automatically create a Kubernetes *Third-Party Resource* (TPR) as followed:

```bash
$ kubectl get thirdpartyresources
NAME DESCRIPTION VERSION(S)
cluster.etcd.coreos.com Managed etcd clusters v1beta1
```

Note that the etcd clusters managed by the etcd operator will not be deleted if the operator fails or the deployment of the operator is deleted. This is an intentional design to prevent accidental operator failure from killing all the etcd clusters.
See [instructions on how to install/uninstall etcd operator](doc/user/op_guide.md) .

## Create and destroy an etcd cluster

Expand Down
34 changes: 34 additions & 0 deletions doc/user/op_guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Operation Guide

## Install etcd operator

Create deployment:

```bash
$ kubectl create -f example/deployment.yaml
```

etcd operator will automatically creates a Kubernetes Third-Party Resource (TPR):

```bash
$ kubectl get thirdpartyresources
NAME DESCRIPTION VERSION(S)
cluster.etcd.coreos.com Managed etcd clusters v1beta1
```

## Uninstall etcd operator

Delete deployment:

```bash
$ kubectl delete -f example/deployment.yaml
```

Delete leader election endpoint
```bash
$ kubectl delete endpoints etcd-operator
```

Note that the etcd clusters managed by etcd operator will **NOT** be deleted if the operator fails or is uninstalled.
This is an intentional design to prevent accidental operator failure from killing all the etcd clusters.
In order to delete all clusters, delete all cluster TPR objects before uninstall the operator.

0 comments on commit d3e446d

Please sign in to comment.