From 9c241ad3849f8ed40020a7e997045d48654c6d64 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Tue, 30 Aug 2016 03:03:59 -0700 Subject: [PATCH] examples: Add rknetes-install example cluster * Add reference cluster which installs CoreOS and provisions Kubernetes with rkt as the container runtime --- examples/groups/rktnetes-install/install.json | 11 +++++++++++ examples/groups/rktnetes-install/node1.json | 19 +++++++++++++++++++ examples/groups/rktnetes-install/node2.json | 17 +++++++++++++++++ examples/groups/rktnetes-install/node3.json | 17 +++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 examples/groups/rktnetes-install/install.json create mode 100644 examples/groups/rktnetes-install/node1.json create mode 100644 examples/groups/rktnetes-install/node2.json create mode 100644 examples/groups/rktnetes-install/node3.json diff --git a/examples/groups/rktnetes-install/install.json b/examples/groups/rktnetes-install/install.json new file mode 100644 index 00000000..e9fb08bb --- /dev/null +++ b/examples/groups/rktnetes-install/install.json @@ -0,0 +1,11 @@ +{ + "id": "coreos-install", + "name": "CoreOS Install", + "profile": "install-reboot", + "metadata": { + "coreos_channel": "alpha", + "coreos_version": "1153.0.0", + "ignition_endpoint": "http://bootcfg.foo:8080/ignition", + "baseurl": "http://bootcfg.foo:8080/assets/coreos" + } +} diff --git a/examples/groups/rktnetes-install/node1.json b/examples/groups/rktnetes-install/node1.json new file mode 100644 index 00000000..96c9034c --- /dev/null +++ b/examples/groups/rktnetes-install/node1.json @@ -0,0 +1,19 @@ +{ + "id": "node1", + "name": "k8s controller", + "profile": "rktnetes-controller", + "selector": { + "mac": "52:54:00:a1:9c:ae", + "os": "installed" + }, + "metadata": { + "domain_name": "node1.example.com", + "etcd_initial_cluster": "node1=http://node1.example.com:2380", + "etcd_name": "node1", + "k8s_cert_endpoint": "http://bootcfg.foo:8080/assets", + "k8s_dns_service_ip": "10.3.0.10", + "k8s_etcd_endpoints": "http://node1.example.com:2379", + "k8s_pod_network": "10.2.0.0/16", + "k8s_service_ip_range": "10.3.0.0/24" + } +} diff --git a/examples/groups/rktnetes-install/node2.json b/examples/groups/rktnetes-install/node2.json new file mode 100644 index 00000000..91f49a10 --- /dev/null +++ b/examples/groups/rktnetes-install/node2.json @@ -0,0 +1,17 @@ +{ + "id": "node2", + "name": "k8s worker", + "profile": "rktnetes-worker", + "selector": { + "mac": "52:54:00:b2:2f:86", + "os": "installed" + }, + "metadata": { + "domain_name": "node2.example.com", + "etcd_initial_cluster": "node1=http://node1.example.com:2380", + "k8s_cert_endpoint": "http://bootcfg.foo:8080/assets", + "k8s_controller_endpoint": "https://node1.example.com", + "k8s_dns_service_ip": "10.3.0.10", + "k8s_etcd_endpoints": "http://node1.example.com:2379" + } +} diff --git a/examples/groups/rktnetes-install/node3.json b/examples/groups/rktnetes-install/node3.json new file mode 100644 index 00000000..72792a04 --- /dev/null +++ b/examples/groups/rktnetes-install/node3.json @@ -0,0 +1,17 @@ +{ + "id": "node3", + "name": "k8s worker", + "profile": "rktnetes-worker", + "selector": { + "mac": "52:54:00:c3:61:77", + "os": "installed" + }, + "metadata": { + "domain_name": "node3.example.com", + "etcd_initial_cluster": "node1=http://node1.example.com:2380", + "k8s_cert_endpoint": "http://bootcfg.foo:8080/assets", + "k8s_controller_endpoint": "https://node1.example.com", + "k8s_dns_service_ip": "10.3.0.10", + "k8s_etcd_endpoints": "http://node1.example.com:2379" + } +}