Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 1 | - name: "VOLT-HA Deploy | Add Namespace" |
Stephane Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 2 | command: kubectl apply -f {{ target_voltha_home }}/k8s/namespace.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 3 | run_once: true |
| 4 | |
| 5 | # Ingress |
| 6 | - name: "VOLT-HA Deploy | Start Ingress Controller" |
Stephane Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 7 | command: kubectl apply -f {{ target_voltha_home }}/k8s/ingress |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 8 | 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 Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 21 | command: kubectl apply -f {{ target_voltha_home }}/k8s/zookeeper.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 22 | 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 Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 34 | command: kubectl apply -f {{ target_voltha_home }}/k8s/kafka.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 35 | 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 Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 41 | # 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 Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 45 | |
Stephane Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 46 | # Fluentd |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 47 | - name: "VOLT-HA Deploy | Start fluentd" |
Stephane Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 48 | command: kubectl apply -f {{ target_voltha_home }}/k8s/fluentd.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 49 | 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 Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 56 | run_once: true |
| 57 | |
| 58 | # Consul |
| 59 | - name: "VOLT-HA Deploy | Start consul" |
Stephane Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 60 | command: kubectl apply -f {{ target_voltha_home }}/k8s/consul.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 61 | 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 Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 69 | command: kubectl apply -f {{ target_voltha_home }}/k8s/vcore_for_consul.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 70 | 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 Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 78 | command: kubectl apply -f {{ target_voltha_home }}/k8s/ofagent.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 79 | 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 Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 87 | command: kubectl apply -f {{ target_voltha_home }}/k8s/envoy_for_consul.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 88 | 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 Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 96 | command: kubectl apply -f {{ target_voltha_home }}/k8s/vcli.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 97 | 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 Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 105 | command: kubectl apply -f {{ target_voltha_home }}/k8s/netconf.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 106 | 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 Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 114 | command: kubectl apply -f {{ target_voltha_home }}/k8s/grafana.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 115 | 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 Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 125 | command: kubectl apply -f {{ target_voltha_home }}/k8s/stats.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 126 | 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 |