blob: 91cc1ea49766afe2b2aa84b946717c3e999dff3b [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
58# Consul
59- name: "VOLT-HA Deploy | Start consul"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040060 command: kubectl apply -f {{ target_voltha_home }}/k8s/consul.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050061 run_once: true
62
63- name: "VOLT-HA Deploy | Wait for consul to be ready"
64 command: kubectl rollout status statefulset/consul -w -n {{ voltha_namespace }}
65 run_once: true
66
67# Voltha Core (for consul)
68- name: "VOLT-HA Deploy | Start VOLT-HA core (for consul)"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040069 command: kubectl apply -f {{ target_voltha_home }}/k8s/vcore_for_consul.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050070 run_once: true
71
72- name: "VOLT-HA Deploy | Wait for VOLT-HA core (for consul) to be ready"
73 command: kubectl rollout status deployment/vcore -w -n {{ voltha_namespace }}
74 run_once: true
75
76# OFagent
77- name: "VOLT-HA Deploy | Start OpenFlow Agent"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040078 command: kubectl apply -f {{ target_voltha_home }}/k8s/ofagent.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050079 run_once: true
80
81- name: "VOLT-HA Deploy | Wait for OpenFlow Agent to be ready"
82 command: kubectl rollout status deployment/ofagent -w -n {{ voltha_namespace }}
83 run_once: true
84
85# Envoy (for consul)
86- name: "VOLT-HA Deploy | Start Envoy (for consul)"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040087 command: kubectl apply -f {{ target_voltha_home }}/k8s/envoy_for_consul.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050088 run_once: true
89
90- name: "VOLT-HA Deploy | Wait for Envoy (for consul) to be ready"
91 command: kubectl rollout status deployment/voltha -w -n {{ voltha_namespace }}
92 run_once: true
93
94# Voltha CLI
95- name: "VOLT-HA Deploy | Start VOLT-HA CLI"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040096 command: kubectl apply -f {{ target_voltha_home }}/k8s/vcli.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050097 run_once: true
98
99- name: "VOLT-HA Deploy | Wait for VOLT-HA CLI to be ready"
100 command: kubectl rollout status deployment/vcli -w -n {{ voltha_namespace }}
101 run_once: true
102
103# NETCONF
104- name: "VOLT-HA Deploy | Start NETCONF"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -0400105 command: kubectl apply -f {{ target_voltha_home }}/k8s/netconf.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -0500106 run_once: true
107
108- name: "VOLT-HA Deploy | Wait for NETCONF to be ready"
109 command: kubectl rollout status deployment/netconf -w -n {{ voltha_namespace }}
110 run_once: true
111
112# Grafana
113- name: "VOLT-HA Deploy | Start Grafana"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -0400114 command: kubectl apply -f {{ target_voltha_home }}/k8s/grafana.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -0500115 run_once: true
116 when: monitor_voltha_stats
117
118- name: "VOLT-HA Deploy | Wait for Grafana to be ready"
119 command: kubectl rollout status deployment/grafana -w -n {{ voltha_namespace }}
120 run_once: true
121 when: monitor_voltha_stats
122
123# Dashd and Shovel
124- name: "VOLT-HA Deploy | Start DASHD and SHOVEL"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -0400125 command: kubectl apply -f {{ target_voltha_home }}/k8s/stats.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -0500126 run_once: true
127 when: monitor_voltha_stats
128
129- name: "VOLT-HA Deploy | Wait for DASHD and SHOVEL to be ready"
130 command: kubectl rollout status deployment/{{ item }} -w -n {{ voltha_namespace }}
131 with_items:
132 - dashd
133 - shovel
134 run_once: true
135 when: monitor_voltha_stats