blob: a9c35a6a99c8e50eed7ddb7bd0d14196b51ab519 [file] [log] [blame]
Stephane Barbariebcea2f42018-03-02 18:46:32 -05001- name: "VOLT-HA Deploy | Add Namespace"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -04002 command: kubectl apply -f {{ target_voltha_home }}/k8s/namespace.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -05003 run_once: true
4
5# Ingress
6- name: "VOLT-HA Deploy | Start Ingress Controller"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -04007 command: kubectl apply -f {{ target_voltha_home }}/k8s/ingress
Stephane Barbariebcea2f42018-03-02 18:46:32 -05008 run_once: true
9
10- name: "VOLT-HA Deploy | Wait for Default HTTP backend to be ready"
11 command: kubectl rollout status deployment/default-http-backend -w -n {{ voltha_namespace }}
12 run_once: true
13
14- name: "VOLT-HA Deploy | Wait for Ingress Controller to be ready"
15 command: kubectl rollout status deployment/nginx-ingress-controller -w -n {{ voltha_namespace }}
16 run_once: true
17
18# Zookeeper
19
20- name: "VOLT-HA Deploy | Start zookeeper"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040021 command: kubectl apply -f {{ target_voltha_home }}/k8s/zookeeper.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050022 run_once: true
23
24- name: "VOLT-HA Deploy | Wait for zookeeper to be ready"
25 command: kubectl rollout status statefulset/{{ item }} -w -n {{ voltha_namespace }}
26 with_items:
27 - zookeeper1
28 - zookeeper2
29 - zookeeper3
30 run_once: true
31
32# Kafka
33- name: "VOLT-HA Deploy | Start kafka"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040034 command: kubectl apply -f {{ target_voltha_home }}/k8s/kafka.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050035 run_once: true
36
37- name: "VOLT-HA Deploy | Wait for kafka to be ready"
38 command: kubectl rollout status statefulset/kafka -w -n {{ voltha_namespace }}
39 run_once: true
40
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040041# Fluentd Config
42- name: "VOLT-HA Deploy | Add Fluentd Configuration"
43 command: kubectl apply -f {{ target_voltha_home }}/k8s/fluentd-config.yml
44 run_once: true
Stephane Barbariebcea2f42018-03-02 18:46:32 -050045
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040046# Fluentd
Stephane Barbariebcea2f42018-03-02 18:46:32 -050047- name: "VOLT-HA Deploy | Start fluentd"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040048 command: kubectl apply -f {{ target_voltha_home }}/k8s/fluentd.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050049 run_once: true
50
51- name: "VOLT-HA Deploy | Wait for fluentd to be ready"
52 command: kubectl rollout status deployment/{{ item }} -w -n {{ voltha_namespace }}
53 with_items:
54 - fluentdactv
55 - fluentdstby
Stephane Barbariebcea2f42018-03-02 18:46:32 -050056 run_once: true
57
Stephane Barbarie78d9fa62018-04-19 14:11:05 -040058# Etcd
59- name: "VOLT-HA Deploy | Define etcd cluster role"
60 command: kubectl apply -f {{ target_voltha_home }}/k8s/operator/etcd/cluster_role.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050061 run_once: true
62
Stephane Barbarie78d9fa62018-04-19 14:11:05 -040063- name: "VOLT-HA Deploy | Define etcd cluster role binding"
64 command: kubectl apply -f {{ target_voltha_home }}/k8s/operator/etcd/cluster_role_binding.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050065 run_once: true
66
Stephane Barbarie78d9fa62018-04-19 14:11:05 -040067- name: "VOLT-HA Deploy | Start etcd operator"
68 command: kubectl apply -f {{ target_voltha_home }}/k8s/operator/etcd/operator.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050069 run_once: true
70
Stephane Barbarie78d9fa62018-04-19 14:11:05 -040071- name: "VOLT-HA Deploy | Wait for etcd operator to be ready"
72 command: kubectl rollout status deployment/etcd-operator -w -n {{ voltha_namespace }}
73 run_once: true
74
75- name: "VOLT-HA Deploy | Start etcd cluster"
76 command: kubectl apply -f {{ target_voltha_home }}/k8s/operator/etcd/etcd_cluster.yml
77 run_once: true
78
79# Voltha Core (for etcd)
80- name: "VOLT-HA Deploy | Start VOLT-HA core (for etcd)"
81 command: kubectl apply -f {{ target_voltha_home }}/k8s/vcore_for_etcd.yml
82 run_once: true
83
84- name: "VOLT-HA Deploy | Wait for VOLT-HA core (for etcd) to be ready"
Stephane Barbariebcea2f42018-03-02 18:46:32 -050085 command: kubectl rollout status deployment/vcore -w -n {{ voltha_namespace }}
86 run_once: true
87
88# OFagent
89- name: "VOLT-HA Deploy | Start OpenFlow Agent"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040090 command: kubectl apply -f {{ target_voltha_home }}/k8s/ofagent.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050091 run_once: true
92
93- name: "VOLT-HA Deploy | Wait for OpenFlow Agent to be ready"
94 command: kubectl rollout status deployment/ofagent -w -n {{ voltha_namespace }}
95 run_once: true
96
Stephane Barbarie78d9fa62018-04-19 14:11:05 -040097# Envoy (for etcd)
98- name: "VOLT-HA Deploy | Start Envoy (for etcd)"
99 command: kubectl apply -f {{ target_voltha_home }}/k8s/envoy_for_etcd.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -0500100 run_once: true
101
Stephane Barbarie78d9fa62018-04-19 14:11:05 -0400102- name: "VOLT-HA Deploy | Wait for Envoy (for etcd) to be ready"
Stephane Barbariebcea2f42018-03-02 18:46:32 -0500103 command: kubectl rollout status deployment/voltha -w -n {{ voltha_namespace }}
104 run_once: true
105
106# Voltha CLI
107- name: "VOLT-HA Deploy | Start VOLT-HA CLI"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -0400108 command: kubectl apply -f {{ target_voltha_home }}/k8s/vcli.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -0500109 run_once: true
110
111- name: "VOLT-HA Deploy | Wait for VOLT-HA CLI to be ready"
112 command: kubectl rollout status deployment/vcli -w -n {{ voltha_namespace }}
113 run_once: true
114
115# NETCONF
116- name: "VOLT-HA Deploy | Start NETCONF"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -0400117 command: kubectl apply -f {{ target_voltha_home }}/k8s/netconf.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -0500118 run_once: true
119
120- name: "VOLT-HA Deploy | Wait for NETCONF to be ready"
121 command: kubectl rollout status deployment/netconf -w -n {{ voltha_namespace }}
122 run_once: true
123
124# Grafana
125- name: "VOLT-HA Deploy | Start Grafana"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -0400126 command: kubectl apply -f {{ target_voltha_home }}/k8s/grafana.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -0500127 run_once: true
128 when: monitor_voltha_stats
129
130- name: "VOLT-HA Deploy | Wait for Grafana to be ready"
131 command: kubectl rollout status deployment/grafana -w -n {{ voltha_namespace }}
132 run_once: true
133 when: monitor_voltha_stats
134
135# Dashd and Shovel
136- name: "VOLT-HA Deploy | Start DASHD and SHOVEL"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -0400137 command: kubectl apply -f {{ target_voltha_home }}/k8s/stats.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -0500138 run_once: true
139 when: monitor_voltha_stats
140
141- name: "VOLT-HA Deploy | Wait for DASHD and SHOVEL to be ready"
142 command: kubectl rollout status deployment/{{ item }} -w -n {{ voltha_namespace }}
143 with_items:
144 - dashd
145 - shovel
146 run_once: true
147 when: monitor_voltha_stats