summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundlek8_tpl/bundle.yaml
blob: 6d777720cf527b2599f21d1a79b0d0360b71833b (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
32
33
34
35
36
37
# vim: set ts=2 et:
# The machine constraints for each service in this bundle
# have been commented out so you don't run into quota
# problems on public clouds. Modify and uncomment the
# constraints: lines for each service to reflect your
# deployment before moving to production.
#
  series: {{ ubuntu.release }}
  variables:
{% include 'spaces.yaml' %}
  services:
    nodes:
      charm: "cs:{{ ubuntu.release }}/ubuntu"
      num_units: {{ opnfv.units }}
    ntp:
      charm: "./{{ ubuntu.release }}/ntp"
{% include 'kubernetes.yaml' %}
{% include 'easyrsa.yaml' %}
{% include 'etcd.yaml' %}
{% if k8.feature.loadbalancer %}
{% include 'kubeapi-load-balancer.yaml' %}
{% endif %}

{% if k8.network.controller == 'ovn' %}
{% include 'ovn.yaml' %}
{% elif k8.network.controller == 'canal' %}
{% include 'canal.yaml' %}
{% else %}
{% include 'flannel.yaml' %}
{% endif %}
{% if k8.feature.storage == 'ceph' %}
{% include 'ceph.yaml' %}
{% endif %}

  relations:
    - [ 'ntp:juju-info', 'nodes:juju-info' ]
{% include 'relations.yaml' %}