summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundlek8_tpl/relations.yaml
blob: 602fbaadb708fe26d020744841838026b25f08e5 (plain)
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
{% 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:certificates', 'easyrsa:client' ]
    - [ 'kubernetes-master:etcd', 'etcd:db' ]
    - [ 'kubernetes-master:kube-control', 'kubernetes-worker:kube-control' ]
    - [ 'kubernetes-worker:certificates', 'easyrsa:client' ]
{% if k8.network.controller == 'ovn' %}
    - [ 'ovn:cni', 'kubernetes-master:cni' ]
    - [ 'ovn:cni', 'kubernetes-worker:cni' ]
{% elif k8.network.controller == 'canal' %}
    - [ 'canal:etcd', 'etcd:db' ]
    - [ 'canal:cni', 'kubernetes-master:cni' ]
    - [ 'canal:cni', 'kubernetes-worker:cni' ]
{% else %}
    - [ 'flannel:etcd', 'etcd:db' ]
    - [ 'flannel:cni', 'kubernetes-master:cni' ]
    - [ 'flannel:cni', 'kubernetes-worker:cni' ]
{% endif %}
    - [ '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 %}
{% if k8.feature.storage == 'ceph' %}
    - [ 'ceph-osd:mon', 'ceph-mon:osd' ]
    - [ 'ceph-mon:admin', 'kubernetes-master:ceph-storage' ]
{% endif %}