diff --git a/templates/etcd/0/README.md b/templates/etcd/0/README.md new file mode 100644 index 0000000..f6263ec --- /dev/null +++ b/templates/etcd/0/README.md @@ -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 +``` + + + \ No newline at end of file diff --git a/templates/etcd/0/docker-compose.yml b/templates/etcd/0/docker-compose.yml new file mode 100644 index 0000000..d7b23e7 --- /dev/null +++ b/templates/etcd/0/docker-compose.yml @@ -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 diff --git a/templates/etcd/0/rancher-compose.yml b/templates/etcd/0/rancher-compose.yml new file mode 100644 index 0000000..a3aa02a --- /dev/null +++ b/templates/etcd/0/rancher-compose.yml @@ -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}" diff --git a/templates/etcd/catalogIcon-etcd.svg b/templates/etcd/catalogIcon-etcd.svg new file mode 100644 index 0000000..5884e92 --- /dev/null +++ b/templates/etcd/catalogIcon-etcd.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + diff --git a/templates/etcd/config.yml b/templates/etcd/config.yml new file mode 100644 index 0000000..73ef4c3 --- /dev/null +++ b/templates/etcd/config.yml @@ -0,0 +1,5 @@ +name: Etcd +description: | + (Experimental) A highly-available key value store +version: 2.2.1-rancher1 +category: Clustering