segregrate the flannel and ovn whoch is controlled by commad line
[joid.git] / ci / config_tpl / juju2 / bundlek8_tpl / kubernetes.yaml
1     kubernetes-master:
2       charm: "cs:~containers/kubernetes-master"
3       num_units: 1
4       expose: true
5 {% if os.service.bindings %}
6       bindings:
7         "": internal-api
8 {% endif %}
9 {% if k8.network.controller == 'ovn' %}
10       options:
11         channel: 1.5/stable
12 {% endif %}
13       to:
14         - "nodes/0"
15
16
17
18
19     kubernetes-worker:
20       charm: "cs:~containers/kubernetes-worker"
21       num_units: {{ opnfv.units - 1 }}
22       expose: true
23 {% if os.service.bindings %}
24       bindings:
25         "": internal-api
26 {% endif %}
27 {% if k8.network.controller == 'ovn' %}
28       options:
29         channel: 1.5/stable
30 {% endif %}
31       to:
32 {% for unit_id in range(1, opnfv.units) %}
33         - "nodes/{{ unit_id }}"
34 {% endfor %}