summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml
blob: 4589203c526019a567672a9c166ea3992b119cc3 (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
    kubernetes-master:
      charm: "cs:~containers/kubernetes-master"
      num_units: 1
      expose: true
{% if os.service.bindings %}
      bindings:
        "": internal-api
{% endif %}
{% if k8.network.controller == 'ovn' %}
      options:
        channel: 1.5/stable
{% endif %}
      to:
        - "nodes/0"




    kubernetes-worker:
      charm: "cs:~containers/kubernetes-worker"
      num_units: {{ opnfv.units - 1 }}
      expose: true
{% if os.service.bindings %}
      bindings:
        "": internal-api
{% endif %}
{% if k8.network.controller == 'ovn' %}
      options:
        channel: 1.5/stable
{% endif %}
      to:
{% for unit_id in range(1, opnfv.units) %}
        - "nodes/{{ unit_id }}"
{% endfor %}