summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundlek8_tpl/relations.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ci/config_tpl/juju2/bundlek8_tpl/relations.yaml')
-rw-r--r--ci/config_tpl/juju2/bundlek8_tpl/relations.yaml28
1 files changed, 19 insertions, 9 deletions
diff --git a/ci/config_tpl/juju2/bundlek8_tpl/relations.yaml b/ci/config_tpl/juju2/bundlek8_tpl/relations.yaml
index fd56090c..63fefab4 100644
--- a/ci/config_tpl/juju2/bundlek8_tpl/relations.yaml
+++ b/ci/config_tpl/juju2/bundlek8_tpl/relations.yaml
@@ -1,9 +1,19 @@
- - [ "kubernetes-master:kube-api-endpoint", "kubernetes-worker:kube-api-endpoint" ]
- - [ "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: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 %}
+