summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-12-21 10:34:14 -0600
committerNarinder Gupta <narinder.gupta@canonical.com>2016-12-21 10:44:28 -0600
commit735846bdb8e4623c24fc045a79ce82389fdff70c (patch)
tree36e96d4ea1fe4676a4031e96ff026c2b6362ea73 /ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml
parente1a69393af42bbe9faf77e318e3cd6c84b264a1b (diff)
Added kubernetes core bundle support.
Change-Id: Ic2c5c4e1b76ac1caa8a4d2373661ebeb83e8971b Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml')
-rw-r--r--ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml b/ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml
new file mode 100644
index 00000000..3953734b
--- /dev/null
+++ b/ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml
@@ -0,0 +1,15 @@
+ kubernetes-master:
+ charm: "./{{ ubuntu.release }}/kubernetes-master"
+ num_units: 1
+ expose: true
+ to:
+ - "nodes/0"
+
+ kubernetes-worker:
+ charm: "./{{ ubuntu.release }}/kubernetes-worker"
+ num_units: {{ opnfv.units - 1 }}
+ expose: true
+ to:
+{% for unit_id in range(1, opnfv.units) %}
+ - "nodes/{{ unit_id }}"
+{% endfor %}