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 | |
Stephane Barbarie | 78d9fa6 | 2018-04-19 14:11:05 -0400 | [diff] [blame] | 58 | # 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 Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 61 | run_once: true |
| 62 | |
Stephane Barbarie | 78d9fa6 | 2018-04-19 14:11:05 -0400 | [diff] [blame] | 63 | - 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 Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 65 | run_once: true |
| 66 | |
Stephane Barbarie | 78d9fa6 | 2018-04-19 14:11:05 -0400 | [diff] [blame] | 67 | - name: "VOLT-HA Deploy | Start etcd operator" |
| 68 | command: kubectl apply -f {{ target_voltha_home }}/k8s/operator/etcd/operator.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 69 | run_once: true |
| 70 | |
Stephane Barbarie | 78d9fa6 | 2018-04-19 14:11:05 -0400 | [diff] [blame] | 71 | - 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 Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 85 | 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 Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 90 | command: kubectl apply -f {{ target_voltha_home }}/k8s/ofagent.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 91 | 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 Barbarie | 78d9fa6 | 2018-04-19 14:11:05 -0400 | [diff] [blame] | 97 | # 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 Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 100 | run_once: true |
| 101 | |
Stephane Barbarie | 78d9fa6 | 2018-04-19 14:11:05 -0400 | [diff] [blame] | 102 | - name: "VOLT-HA Deploy | Wait for Envoy (for etcd) to be ready" |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 103 | 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 Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 108 | command: kubectl apply -f {{ target_voltha_home }}/k8s/vcli.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 109 | 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 Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 117 | command: kubectl apply -f {{ target_voltha_home }}/k8s/netconf.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 118 | 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 Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 126 | command: kubectl apply -f {{ target_voltha_home }}/k8s/grafana.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 127 | 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 Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 137 | command: kubectl apply -f {{ target_voltha_home }}/k8s/stats.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 138 | 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 |