Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 1 | - name: "VOLT-HA Deploy | Add Namespace" |
| 2 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/namespace.yml |
| 3 | run_once: true |
| 4 | |
| 5 | # Ingress |
| 6 | - name: "VOLT-HA Deploy | Start Ingress Controller" |
| 7 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/ingress |
| 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" |
| 21 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/zookeeper.yml |
| 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" |
| 34 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/kafka.yml |
| 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 | |
| 41 | # Fluentd |
| 42 | |
| 43 | - name: "VOLT-HA Deploy | Start fluentd" |
| 44 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/fluentd.yml |
| 45 | run_once: true |
| 46 | |
| 47 | - name: "VOLT-HA Deploy | Wait for fluentd to be ready" |
| 48 | command: kubectl rollout status deployment/{{ item }} -w -n {{ voltha_namespace }} |
| 49 | with_items: |
| 50 | - fluentdactv |
| 51 | - fluentdstby |
| 52 | - fluentd |
| 53 | run_once: true |
| 54 | |
| 55 | # Consul |
| 56 | - name: "VOLT-HA Deploy | Start consul" |
| 57 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/consul.yml |
| 58 | run_once: true |
| 59 | |
| 60 | - name: "VOLT-HA Deploy | Wait for consul to be ready" |
| 61 | command: kubectl rollout status statefulset/consul -w -n {{ voltha_namespace }} |
| 62 | run_once: true |
| 63 | |
| 64 | # Voltha Core (for consul) |
| 65 | - name: "VOLT-HA Deploy | Start VOLT-HA core (for consul)" |
| 66 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/vcore_for_consul.yml |
| 67 | run_once: true |
| 68 | |
| 69 | - name: "VOLT-HA Deploy | Wait for VOLT-HA core (for consul) to be ready" |
| 70 | command: kubectl rollout status deployment/vcore -w -n {{ voltha_namespace }} |
| 71 | run_once: true |
| 72 | |
| 73 | # OFagent |
| 74 | - name: "VOLT-HA Deploy | Start OpenFlow Agent" |
| 75 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/ofagent.yml |
| 76 | run_once: true |
| 77 | |
| 78 | - name: "VOLT-HA Deploy | Wait for OpenFlow Agent to be ready" |
| 79 | command: kubectl rollout status deployment/ofagent -w -n {{ voltha_namespace }} |
| 80 | run_once: true |
| 81 | |
| 82 | # Envoy (for consul) |
| 83 | - name: "VOLT-HA Deploy | Start Envoy (for consul)" |
| 84 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/envoy_for_consul.yml |
| 85 | run_once: true |
| 86 | |
| 87 | - name: "VOLT-HA Deploy | Wait for Envoy (for consul) to be ready" |
| 88 | command: kubectl rollout status deployment/voltha -w -n {{ voltha_namespace }} |
| 89 | run_once: true |
| 90 | |
| 91 | # Voltha CLI |
| 92 | - name: "VOLT-HA Deploy | Start VOLT-HA CLI" |
| 93 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/vcli.yml |
| 94 | run_once: true |
| 95 | |
| 96 | - name: "VOLT-HA Deploy | Wait for VOLT-HA CLI to be ready" |
| 97 | command: kubectl rollout status deployment/vcli -w -n {{ voltha_namespace }} |
| 98 | run_once: true |
| 99 | |
| 100 | # NETCONF |
| 101 | - name: "VOLT-HA Deploy | Start NETCONF" |
| 102 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/netconf.yml |
| 103 | run_once: true |
| 104 | |
| 105 | - name: "VOLT-HA Deploy | Wait for NETCONF to be ready" |
| 106 | command: kubectl rollout status deployment/netconf -w -n {{ voltha_namespace }} |
| 107 | run_once: true |
| 108 | |
| 109 | # Grafana |
| 110 | - name: "VOLT-HA Deploy | Start Grafana" |
| 111 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/grafana.yml |
| 112 | run_once: true |
| 113 | when: monitor_voltha_stats |
| 114 | |
| 115 | - name: "VOLT-HA Deploy | Wait for Grafana to be ready" |
| 116 | command: kubectl rollout status deployment/grafana -w -n {{ voltha_namespace }} |
| 117 | run_once: true |
| 118 | when: monitor_voltha_stats |
| 119 | |
| 120 | # Dashd and Shovel |
| 121 | - name: "VOLT-HA Deploy | Start DASHD and SHOVEL" |
| 122 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/stats.yml |
| 123 | run_once: true |
| 124 | when: monitor_voltha_stats |
| 125 | |
| 126 | - name: "VOLT-HA Deploy | Wait for DASHD and SHOVEL to be ready" |
| 127 | command: kubectl rollout status deployment/{{ item }} -w -n {{ voltha_namespace }} |
| 128 | with_items: |
| 129 | - dashd |
| 130 | - shovel |
| 131 | run_once: true |
| 132 | when: monitor_voltha_stats |
| 133 | |
| 134 | # FreeRADIUS Config |
| 135 | - name: "VOLT-HA Deploy | Add FreeRADIUS Configuration" |
| 136 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/freeradius-config.yml |
| 137 | run_once: true |
| 138 | |
| 139 | # FreeRADIUS |
| 140 | - name: "VOLT-HA Deploy | Start FreeRADIUS" |
| 141 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/freeradius.yml |
| 142 | run_once: true |
| 143 | |
| 144 | - name: "VOLT-HA Deploy | Wait for FreeRADIUS to be ready" |
| 145 | command: kubectl rollout status deployment/freeradius -w -n {{ voltha_namespace }} |
| 146 | run_once: true |
| 147 | |
| 148 | # ONOS |
| 149 | - name: "VOLT-HA Deploy | Start ONOS" |
| 150 | command: kubectl apply -f {{ target_voltha_dir }}/k8s/onos.yml |
| 151 | run_once: true |
| 152 | |
| 153 | - name: "VOLT-HA Deploy | Wait for ONOS to be ready" |
| 154 | command: kubectl rollout status deployment/onos -w -n {{ voltha_namespace }} |
| 155 | run_once: true |
| 156 | |
| 157 | |
| 158 | |
| 159 | |