Skip to content

Instantly share code, notes, and snippets.

@CalvinHartwell
Created June 1, 2018 11:14
Show Gist options
  • Select an option

  • Save CalvinHartwell/90e403f6594ccd5393a74c098ea5b8d8 to your computer and use it in GitHub Desktop.

Select an option

Save CalvinHartwell/90e403f6594ccd5393a74c098ea5b8d8 to your computer and use it in GitHub Desktop.
bundle.yaml
series: xenial
description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes.
machines:
0:
1:
2:
3:
4:
5:
6:
7:
8:
9:
services:
easyrsa:
annotations:
gui-x: '450'
gui-y: '550'
charm: cs:~containers/easyrsa-40
num_units: 1
to:
- 'lxd:kubernetes-master/0'
etcd:
annotations:
gui-x: '800'
gui-y: '550'
charm: cs:~containers/etcd-80
constraints: cores=4 mem=8G
num_units: 3
to:
- '2'
- '3'
- '4'
options:
channel: 3.2/stable
flannel:
annotations:
gui-x: '450'
gui-y: '750'
charm: cs:~containers/flannel-56
options:
cidr: '172.19.0.0/16'
kubeapi-load-balancer:
annotations:
gui-x: '450'
gui-y: '250'
charm: cs:~containers/kubeapi-load-balancer-58
expose: true
num_units: 1
to:
- '6'
kubernetes-master:
annotations:
gui-x: '800'
gui-y: '850'
charm: cs:~containers/kubernetes-master-104
constraints: cores=4 mem=8G
num_units: 2
to:
- '0'
- '1'
options:
channel: 1.10/stable
service-cidr: '172.18.0.0/16'
kubernetes-worker:
annotations:
gui-x: '100'
gui-y: '850'
charm: cs:~containers/kubernetes-worker-118
constraints: cores=4 mem=8G
expose: true
num_units: 3
options:
channel: 1.10/stable
to:
- '7'
- '8'
- '9'
relations:
- - kubernetes-master:kube-api-endpoint
- kubeapi-load-balancer:apiserver
- - kubernetes-master:loadbalancer
- kubeapi-load-balancer:loadbalancer
- - kubernetes-master:kube-control
- kubernetes-worker:kube-control
- - kubernetes-master:certificates
- easyrsa:client
- - etcd:certificates
- easyrsa:client
- - kubernetes-master:etcd
- etcd:db
- - kubernetes-worker:certificates
- easyrsa:client
- - kubernetes-worker:kube-api-endpoint
- kubeapi-load-balancer:website
- - kubeapi-load-balancer:certificates
- easyrsa:client
- - flannel:etcd
- etcd:db
- - flannel:cni
- kubernetes-master:cni
- - flannel:cni
- kubernetes-worker:cni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment