summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundlek8_tpl/relations.yaml
blob: 63fefab4c3f09b875e2be57422f62695079b90a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% if os.kubernetes.loadbalancer %}
    - [ 'kubernetes-master:kube-api-endpoint', 'kubeapi-load-balancer:apiserver' ]
{% else %}
    - [ 'kubernetes-master:kube-api-endpoint', 'kubernetes-worker:kube-api-endpoint' ]
{% endif %}
    - [ 'kubernetes-master:cluster-dns', 'kubernetes-worker:kube-dns' ]
    - [ 'kubernetes-master:certificates', 'easyrsa:client' ]
    - [ 'kubernetes-master:etcd', 'etcd:db' ]
    - [ 'kubernetes-worker:certificates', 'easyrsa:client' ]
    - [ 'flannel:etcd', 'etcd:db' ]
    - [ 'flannel:cni', 'kubernetes-master:cni' ]
    - [ 'flannel:cni', 'kubernetes-worker:cni' ]
    - [ 'etcd:certificates', 'easyrsa:client' ]
{% if os.kubernetes.loadbalancer %}
    - [ 'kubernetes-master:loadbalancer', 'kubeapi-load-balancer:loadbalancer' ]
    - [ 'kubernetes-worker:kube-api-endpoint', 'kubeapi-load-balancer:website' ]
    - [ 'kubeapi-load-balancer:certificates', 'easyrsa:client' ]
{% endif %}