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 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option for operator to act as cluster wide
for a cluster to be managed widely, user have to add annotation: etcd.database.coreos.com/scope: clusterwide And admin have to run an operator with option "-cluster-wide". Current implementation have a lack of locking if many operators with cluster-wide run on different namespaces.
- Loading branch information
Showing
8 changed files
with
132 additions
and
6 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
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,26 @@ | ||
# Manage clusters in all namespaces | ||
|
||
Default etcd operator behavior is to only manage etcd clusters created in the same namespace. | ||
It is possible to deploy an etcd operator with special option to manage clusterwide etcd clusters. | ||
|
||
## Install etcd operator | ||
|
||
etcd operator have to run with `-cluster-wide` arg option. | ||
|
||
More information in [install guide](doc/user/install_guide.md). | ||
|
||
## Special annotation | ||
|
||
To declare an etcd cluster as "clusterwide", you have to add special annotation `etcd.database.coreos.com/scope` with value `clusterwide`. | ||
|
||
```yaml | ||
apiVersion: "etcd.database.coreos.com/v1beta2" | ||
kind: "EtcdCluster" | ||
metadata: | ||
name: "example-etcd-cluster" | ||
annotations: | ||
etcd.database.coreos.com/scope: clusterwide | ||
spec: | ||
size: 3 | ||
version: "3.2.13" | ||
``` |
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
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
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