This commit is contained in:
James Oliver
2016-03-21 05:10:56 -07:00
parent 757f993e08
commit ee234b6bff
5 changed files with 85 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
# etcd (Experimental)
### Info:
This creates an N-node etcd cluster on top of Rancher. The bootstrap process is done statically, and the adjustment of cluster scale needs to be managed manually. The cluster is available for immediate use.
### Usage:
Select etcd the catalog page.
Fill in the number of nodes desired. This should be an **ODD** number.
Click deploy.
Once the stack is deployed, you can access the cluster in your application via its IP or DNS addresses like so:
```
etcdctl -C http://10.42.16.231:2379,.... member list
```
+10
View File
@@ -0,0 +1,10 @@
etcd:
image: rancher/etcd:v2.2.1-2
labels:
io.rancher.container.hostname_override: container_name
ports:
- '4001'
- '2380'
- '2379'
- '7001'
command: /opt/rancher/run.sh
+15
View File
@@ -0,0 +1,15 @@
.catalog:
name: "Etcd"
version: "2.2.1-rancher1"
description: |
(Experimental)Distributed reliable key-value store
minimum_rancher_version: "v0.46.0"
questions:
- variable: "scale"
description: "Number of Etcd nodes"
label: "Number of Nodes:"
required: true
default: 1
type: "int"
etcd:
scale: "${scale}"