Files
matchbox/examples/k8s-install.yaml
Dalton Hubble 290be307ea examples: Add k8s install to disk example
* Install a Kubernetes cluster with 1 master, 2 workers
* Setup a 3 node etcd cluster and enable update-engine
* Include fleet on the cluster as well
2016-03-21 11:50:50 -07:00

75 lines
2.6 KiB
YAML

---
api_version: v1alpha1
groups:
- name: CoreOS Install
profile: coreos-install
metadata:
coreos_channel: alpha
coreos_version: 983.0.0
ignition_endpoint: http://bootcfg.foo:8080/ignition
cloud_endpoint: http://bootcfg.foo:8080/cloud
- name: Master Node
profile: k8s-master-install
require:
uuid: 16e7d8a7-bfa9-428b-9117-363341bb330b
os: installed
metadata:
ipv4_address: 172.15.0.21
autoupdate: "true"
networkd_name: ens3
networkd_gateway: 172.15.0.1
networkd_dns: 172.15.0.3
networkd_address: 172.15.0.21/16
k8s_etcd_endpoints: "http://172.15.0.21:2379,http://172.15.0.22:2379,http://172.15.0.23:2379"
k8s_pod_network: 10.2.0.0/16
k8s_service_ip_range: 10.3.0.0/24
k8s_service_ip: 10.3.0.1
k8s_dns_service_ip: 10.3.0.10
k8s_cert_endpoint: http://bootcfg.foo:8080/assets
fleet_metadata: "role=etcd,name=node1"
etcd_name: node1
etcd_initial_cluster: "node1=http://172.15.0.21:2380,node2=http://172.15.0.22:2380,node3=http://172.15.0.23:2380"
ssh_authorized_keys:
- name: Worker 1
profile: k8s-worker-install
require:
uuid: 264cd073-ca62-44b3-98c0-50aad5b5f819
os: installed
metadata:
ipv4_address: 172.15.0.22
autoupdate: "true"
networkd_name: ens3
networkd_gateway: 172.15.0.1
networkd_dns: 172.15.0.3
networkd_address: 172.15.0.22/16
k8s_etcd_endpoints: "http://172.15.0.21:2379,http://172.15.0.22:2379,http://172.15.0.23:2379"
k8s_controller_endpoint: https://172.15.0.21
k8s_dns_service_ip: 10.3.0.1
k8s_cert_endpoint: http://bootcfg.foo:8080/assets
fleet_metadata: "role=etcd,name=node2"
etcd_name: node2
etcd_initial_cluster: "node1=http://172.15.0.21:2380,node2=http://172.15.0.22:2380,node3=http://172.15.0.23:2380"
ssh_authorized_keys:
- name: Worker 2
profile: k8s-worker-install
require:
uuid: 39d2e747-2648-4d68-ae92-bbc70b245055
os: installed
metadata:
ipv4_address: 172.15.0.23
autoupdate: "true"
networkd_name: ens3
networkd_gateway: 172.15.0.1
networkd_dns: 172.15.0.3
networkd_address: 172.15.0.23/16
k8s_etcd_endpoints: "http://172.15.0.21:2379,http://172.15.0.22:2379,http://172.15.0.23:2379"
k8s_controller_endpoint: https://172.15.0.21
k8s_dns_service_ip: 10.3.0.1
k8s_cert_endpoint: http://bootcfg.foo:8080/assets
fleet_metadata: "role=etcd,name=node3"
etcd_name: node3
etcd_initial_cluster: "node1=http://172.15.0.21:2380,node2=http://172.15.0.22:2380,node3=http://172.15.0.23:2380"
ssh_authorized_keys: