VOL-570 : Install Kubernetes in production and test modes
- Supports offline installation for k8s
- Configs and deploys voltha components
Change-Id: I29eb87c035cea1e86176bb2e30d36278760ece82
diff --git a/install/ansible/voltha-k8s.yml b/install/ansible/voltha-k8s.yml
index 1761d04..7d8cb62 100644
--- a/install/ansible/voltha-k8s.yml
+++ b/install/ansible/voltha-k8s.yml
@@ -4,20 +4,29 @@
vars:
target: cluster
roles:
- - { role: common, when: config_voltha is defined }
- - { role: kubernetes-host, when: config_voltha is defined }
- - { role: voltha-kubernetes, when: config_voltha is defined }
+ - common
+ - cluster-host
+ - docker
+ - { role: voltha-k8s, when: config_voltha is defined }
+
+- hosts: cluster
+ remote_user: voltha
+ serial: 1
+ vars:
+ target: cluster
+ roles:
+ - glusterfs
- hosts: k8s-master
remote_user: voltha
serial: 1
roles:
- {
- role: voltha-kubernetes, when: deploy_voltha is defined,
+ role: voltha-k8s, when: deploy_voltha is defined,
monitor_voltha_stats: true,
use_ponsim: true
}
- {
- role: voltha-kubernetes,
+ role: voltha-k8s,
when: teardown_voltha is defined
}