This repository has been archived by the owner on Mar 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #855 from hongchaodeng/d
doc: op guide for install, uninstall etcd operator
- Loading branch information
Showing
2 changed files
with
35 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
Note that the etcd clusters managed by etcd operator will **NOT** be deleted even if the operator 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. | ||
|
||
Delete deployment: | ||
|
||
```bash | ||
$ kubectl delete -f example/deployment.yaml | ||
``` | ||
|
||
Delete leader election endpoint | ||
```bash | ||
$ kubectl delete endpoints etcd-operator | ||
``` |