-
Notifications
You must be signed in to change notification settings - Fork 24
/
converged-calico-docker.yaml
84 lines (82 loc) · 1.72 KB
/
converged-calico-docker.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
verify: |
#!/bin/bash
set -x
echo "It works!"
exit 0
applications:
calico:
charm: cs:~containers/calico
docker:
charm: cs:~containers/docker
easyrsa:
charm: cs:~containers/easyrsa
num_units: 1
to:
- lxd:0
etcd:
charm: cs:~containers/etcd
num_units: 3
to:
- lxd:0
- lxd:1
- lxd:2
options:
channel: 3.4/stable
kubeapi-load-balancer:
charm: cs:~containers/kubeapi-load-balancer
num_units: 1
to:
- "0"
expose: true
kubernetes-master:
charm: cs:~containers/kubernetes-master
num_units: 2
to:
- lxd:1
- lxd:2
kubernetes-worker:
charm: cs:~containers/kubernetes-worker
num_units: 2
to:
- "1"
- "2"
expose: true
machines:
"0":
series: bionic
constraints: "cores=2 mem=4G root-disk=32G"
"1":
series: bionic
constraints: "cores=8 mem=16G root-disk=48G"
"2":
series: bionic
constraints: "cores=8 mem=16G root-disk=48G"
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
- - docker:docker
- kubernetes-worker:container-runtime
- - docker:docker
- kubernetes-master:container-runtime