Skip to content

Instantly share code, notes, and snippets.

@joejulian
Created May 11, 2018 17:27
Show Gist options
  • Save joejulian/c5874de400264ecc5b2d1552f7f66ae2 to your computer and use it in GitHub Desktop.
Save joejulian/c5874de400264ecc5b2d1552f7f66ae2 to your computer and use it in GitHub Desktop.
series: xenial
description: A four-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes.
services:
canal:
annotations:
gui-x: '450'
gui-y: '750'
charm: cs:~containers/canal-30
easyrsa:
annotations:
gui-x: '450'
gui-y: '550'
charm: cs:~containers/easyrsa-39
num_units: 1
to:
- lxd:etcd/0
etcd:
annotations:
gui-x: '800'
gui-y: '550'
charm: cs:~containers/etcd-77
constraints: root-disk=8G
num_units: 1
kubeapi-load-balancer:
annotations:
gui-x: '450'
gui-y: '250'
charm: cs:~containers/kubeapi-load-balancer-57
expose: true
num_units: 1
to:
- lxd:etcd/0
kubernetes-master:
annotations:
gui-x: '800'
gui-y: '850'
charm: cs:~containers/kubernetes-master-102
num_units: 1
options:
channel: 1.10/stable
allow-privileged: true
to:
- etcd/0
kubernetes-worker:
annotations:
gui-x: '100'
gui-y: '850'
charm: cs:~containers/kubernetes-worker-114
constraints: cores=4 mem=4G root-disk=16G
expose: true
num_units: 3
options:
channel: 1.10/stable
allow-privileged: true
labels: "storagenode=glusterfs"
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
- - canal:etcd
- etcd:db
- - canal:cni
- kubernetes-master:cni
- - canal:cni
- kubernetes-worker:cni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment