summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundlek8_tpl/relations.yaml
blob: 4045a702c9e19c6f435db79ef4149de86c4f6421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{% if k8.feature.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-master:kube-conrol', 'kubernetes-worker:kube-control' ]
    - [ 'kubernetes-worker:certificates', 'easyrsa:client' ]
    - [ 'flannel:etcd', 'etcd:db' ]
    - [ 'flannel:cni', 'kubernetes-master:cni' ]
    - [ 'flannel:cni', 'kubernetes-worker:cni' ]
    - [ 'etcd:certificates', 'easyrsa:client' ]
{% if k8.feature.loadbalancer %}
    - [ 'kubernetes-master:loadbalancer', 'kubeapi-load-balancer:loadbalancer' ]
    - [ 'kubernetes-worker:kube-api-endpoint', 'kubeapi-load-balancer:website' ]
    - [ 'kubeapi-load-balancer:certificates', 'easyrsa:client' ]
{% endif %}