Skip to content

Instantly share code, notes, and snippets.

@CalvinHartwell
Created August 1, 2018 00:39
Show Gist options
  • Select an option

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

Select an option

Save CalvinHartwell/e70984e661d0ad5d9d8ce08644975596 to your computer and use it in GitHub Desktop.
calico-example
series: xenial
description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes.
services:
calico:
annotations:
gui-x: '450'
gui-y: '750'
charm: cs:~containers/calico-47
options:
calico-policy-image: "quay.io/calico/kube-controllers:v1.0.4"
easyrsa:
annotations:
gui-x: '450'
gui-y: '550'
charm: cs:~containers/easyrsa-50
constraints: root-disk=8G
num_units: 1
to:
- lxd:kubernetes-master
etcd:
annotations:
gui-x: '800'
gui-y: '550'
charm: cs:~containers/etcd-96
constraints: root-disk=8G
num_units: 3
options:
channel: 3.2/stable
kubeapi-load-balancer:
annotations:
gui-x: '450'
gui-y: '250'
charm: cs:~containers/kubeapi-load-balancer-69
constraints: root-disk=8G
expose: true
num_units: 1
kubernetes-master:
annotations:
gui-x: '800'
gui-y: '850'
charm: cs:~containers/kubernetes-master-122
constraints: cores=2 mem=4G root-disk=16G
num_units: 2
options:
channel: 1.10/stable
kubernetes-worker:
annotations:
gui-x: '100'
gui-y: '850'
charm: cs:~containers/kubernetes-worker-138
constraints: cores=4 mem=4G root-disk=16G
expose: true
num_units: 3
options:
channel: 1.10/stable
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
- - calico:etcd
- etcd:db
- - calico:cni
- kubernetes-master:cni
- - calico:cni
- kubernetes-worker:cni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment