From 128f5d9b36611862159ff2693a5eefc20a5809d4 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Thu, 25 Aug 2016 00:25:11 -0700 Subject: [PATCH] examples: Add etcd3-install cluster * etcd3-install installs CoreOS to disk and sets up a 3-node etcd3 cluster * Additional machines are setup as etcd3 proxies --- CHANGES.md | 1 + examples/README.md | 1 + examples/groups/etcd3-install/install.json | 11 +++++++++++ examples/groups/etcd3-install/node1.json | 14 ++++++++++++++ examples/groups/etcd3-install/node2.json | 14 ++++++++++++++ examples/groups/etcd3-install/node3.json | 14 ++++++++++++++ examples/groups/etcd3-install/proxy.json | 11 +++++++++++ 7 files changed, 66 insertions(+) create mode 100644 examples/groups/etcd3-install/install.json create mode 100644 examples/groups/etcd3-install/node1.json create mode 100644 examples/groups/etcd3-install/node2.json create mode 100644 examples/groups/etcd3-install/node3.json create mode 100644 examples/groups/etcd3-install/proxy.json diff --git a/CHANGES.md b/CHANGES.md index 2675c895..7f4d15d8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,6 +11,7 @@ * Add Kubernetes with rkt container runtime (i.e. rktnetes) * Upgrade Kubernetes v1.3.4 (static manifest) example clusters * Upgrade Kubernetes v1.3.4 (self-hosted) example cluster +* Add etcd3 example cluster (PXE in-RAM or install to disk) * Use DNS names (instead of IPs) in example clusters (except bootkube) ## v0.4.0 (2016-07-21) diff --git a/examples/README.md b/examples/README.md index 7c9825e9..3f0e73fc 100644 --- a/examples/README.md +++ b/examples/README.md @@ -11,6 +11,7 @@ These examples network boot and provision machines into CoreOS clusters using `b | etcd | iPXE boot a 3 node etcd cluster and proxy | alpha/1109.1.0 | RAM | [reference](https://coreos.com/os/docs/latest/cluster-architectures.html) | | etcd-install | Install a 3-node etcd cluster to disk | alpha/1109.1.0 | Disk | [reference](https://coreos.com/os/docs/latest/installing-to-disk.html) | | etcd3 | Install a 3-node etcd3 cluster | alpha/1109.1.0 | RAM | None | +| etcd3-install | Install a 3-node etcd3 cluster to disk | alpha/1109.1.0 | Disk | None | | k8s | Kubernetes cluster with 1 master, 2 workers, and TLS-authentication | alpha/1109.1.0 | Disk | [tutorial](../Documentation/kubernetes.md) | | k8s-install | Install a Kubernetes cluster to disk | alpha/1109.1.0 | Disk | [tutorial](../Documentation/kubernetes.md) | | rktnetes | Kubernetes cluster with rkt container runtime, 1 master, workers, TLS auth (known bugs, experimental) | alpha/1122.0.0 | Disk | None | diff --git a/examples/groups/etcd3-install/install.json b/examples/groups/etcd3-install/install.json new file mode 100644 index 00000000..5754ec7e --- /dev/null +++ b/examples/groups/etcd3-install/install.json @@ -0,0 +1,11 @@ +{ + "id": "coreos-install", + "name": "CoreOS Install", + "profile": "install-reboot", + "metadata": { + "coreos_channel": "alpha", + "coreos_version": "1109.1.0", + "ignition_endpoint": "http://bootcfg.foo:8080/ignition", + "baseurl": "http://bootcfg.foo:8080/assets/coreos" + } +} diff --git a/examples/groups/etcd3-install/node1.json b/examples/groups/etcd3-install/node1.json new file mode 100644 index 00000000..3f0bcd07 --- /dev/null +++ b/examples/groups/etcd3-install/node1.json @@ -0,0 +1,14 @@ +{ + "id": "node1", + "name": "etcd Node 1", + "profile": "etcd3", + "selector": { + "mac": "52:54:00:a1:9c:ae", + "os": "installed" + }, + "metadata": { + "domain_name": "node1.example.com", + "etcd_name": "node1", + "etcd_initial_cluster": "node1=http://node1.example.com:2380,node2=http://node2.example.com:2380,node3=http://node3.example.com:2380" + } +} diff --git a/examples/groups/etcd3-install/node2.json b/examples/groups/etcd3-install/node2.json new file mode 100644 index 00000000..02889d32 --- /dev/null +++ b/examples/groups/etcd3-install/node2.json @@ -0,0 +1,14 @@ +{ + "id": "node2", + "name": "etcd Node 2", + "profile": "etcd3", + "selector": { + "mac": "52:54:00:b2:2f:86", + "os": "installed" + }, + "metadata": { + "domain_name": "node2.example.com", + "etcd_name": "node2", + "etcd_initial_cluster": "node1=http://node1.example.com:2380,node2=http://node2.example.com:2380,node3=http://node3.example.com:2380" + } +} diff --git a/examples/groups/etcd3-install/node3.json b/examples/groups/etcd3-install/node3.json new file mode 100644 index 00000000..5d8204d9 --- /dev/null +++ b/examples/groups/etcd3-install/node3.json @@ -0,0 +1,14 @@ +{ + "id": "node3", + "name": "etcd Node 3", + "profile": "etcd3", + "selector": { + "mac": "52:54:00:c3:61:77", + "os": "installed" + }, + "metadata": { + "domain_name": "node3.example.com", + "etcd_name": "node3", + "etcd_initial_cluster": "node1=http://node1.example.com:2380,node2=http://node2.example.com:2380,node3=http://node3.example.com:2380" + } +} diff --git a/examples/groups/etcd3-install/proxy.json b/examples/groups/etcd3-install/proxy.json new file mode 100644 index 00000000..6949b8ab --- /dev/null +++ b/examples/groups/etcd3-install/proxy.json @@ -0,0 +1,11 @@ +{ + "id": "default", + "name": "default", + "profile": "etcd-proxy", + "selector": { + "os": "installed" + }, + "metadata": { + "etcd_initial_cluster": "node1=http://node1.example.com:2380,node2=http://node2.example.com:2380,node3=http://node3.example.com:2380" + } +}