summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml
diff options
context:
space:
mode:
authorAakashKT <aakash.kt@research.iiit.ac.in>2017-07-11 18:35:27 +0530
committerAakashKT <aakash.kt@research.iiit.ac.in>2017-07-11 18:46:07 +0530
commitaa443647aa36a04cf34358647310ca3baa4ed216 (patch)
treee0961429a9f537e1c391cceae6053b14c5fb82df /ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml
parentb6cc7d415446524aa86b26410eb09fb1ee52896f (diff)
segregrate the flannel and ovn whoch is controlled by commad line
parameter Change-Id: I005827f72631bea8b11e302a84aaf95de8dee1c8 Signed-off-by: Aakash KT <aakash.kt@research.iiit.ac.in>
Diffstat (limited to 'ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml')
-rw-r--r--ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml19
1 files changed, 19 insertions, 0 deletions
diff --git a/ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml b/ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml
index 93f8890e..4589203c 100644
--- a/ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml
+++ b/ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml
@@ -2,13 +2,32 @@
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 }}"