Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 14 | # Dashd and Shovel |
| 15 | - name: "VOLT-HA Teardown | Stop DASHD and SHOVEL" |
Stephane Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 16 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/stats.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 17 | run_once: true |
| 18 | |
| 19 | # Grafana |
| 20 | - name: "VOLT-HA Teardown | Stop Grafana" |
Stephane Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 21 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/grafana.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 22 | run_once: true |
| 23 | |
| 24 | # NETCONF |
| 25 | - name: "VOLT-HA Teardown | Stop NETCONF" |
Stephane Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 26 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/netconf.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 27 | run_once: true |
| 28 | |
| 29 | # Voltha CLI |
| 30 | - name: "VOLT-HA Teardown | Stop VOLT-HA CLI" |
Stephane Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 31 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/vcli.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 32 | run_once: true |
| 33 | |
Stephane Barbarie | 78d9fa6 | 2018-04-19 14:11:05 -0400 | [diff] [blame] | 34 | # Envoy (for etcd) |
| 35 | - name: "VOLT-HA Teardown | Stop Envoy (for etcd)" |
| 36 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/envoy_for_etcd.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 37 | run_once: true |
| 38 | |
| 39 | # OFagent |
| 40 | - name: "VOLT-HA Teardown | Stop OpenFlow Agent" |
Stephane Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 41 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/ofagent.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 42 | run_once: true |
| 43 | |
Stephane Barbarie | 78d9fa6 | 2018-04-19 14:11:05 -0400 | [diff] [blame] | 44 | # Voltha Core (for etcd) |
| 45 | - name: "VOLT-HA Teardown | Stop VOLT-HA core (for etcd)" |
| 46 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/vcore_for_etcd.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 47 | run_once: true |
| 48 | |
Stephane Barbarie | 78d9fa6 | 2018-04-19 14:11:05 -0400 | [diff] [blame] | 49 | # Etcd cluster |
| 50 | - name: "VOLT-HA Teardown | Stop etcd cluster" |
| 51 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/operator/etcd/etcd_cluster.yml |
| 52 | run_once: true |
| 53 | |
| 54 | # Etcd operator |
| 55 | - name: "VOLT-HA Teardown | Stop etcd operator" |
| 56 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/operator/etcd/operator.yml |
| 57 | run_once: true |
| 58 | |
| 59 | # Etcd cluster role binding |
| 60 | - name: "VOLT-HA Teardown | Stop etcd cluster role binding" |
| 61 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/operator/etcd/cluster_role_binding.yml |
| 62 | run_once: true |
| 63 | |
| 64 | # Etcd cluster role |
| 65 | - name: "VOLT-HA Teardown | Stop etcd cluster role" |
| 66 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/operator/etcd/cluster_role.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 67 | run_once: true |
| 68 | |
| 69 | # Fluentd |
| 70 | - name: "VOLT-HA Teardown | Stop fluentd" |
Stephane Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 71 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/fluentd.yml |
| 72 | run_once: true |
| 73 | |
| 74 | # Fluentd Config |
| 75 | - name: "VOLT-HA Teardown | Remove Fluentd Configuration" |
| 76 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/fluentd-config.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 77 | run_once: true |
| 78 | |
| 79 | # Kafka |
| 80 | - name: "VOLT-HA Teardown | Stop kafka" |
Stephane Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 81 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/kafka.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 82 | run_once: true |
| 83 | |
| 84 | # Zookeeper |
| 85 | - name: "VOLT-HA Teardown | Stop zookeeper" |
Stephane Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 86 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/zookeeper.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 87 | run_once: true |
| 88 | |
| 89 | # Ingress |
| 90 | - name: "VOLT-HA Teardown | Stop Ingress Controller" |
Stephane Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 91 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/ingress |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 92 | run_once: true |
| 93 | |
| 94 | # Namespace |
| 95 | - name: "VOLT-HA Teardown | Remove Namespace" |
Stephane Barbarie | 2cbffca | 2018-03-26 16:20:03 -0400 | [diff] [blame] | 96 | command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/namespace.yml |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 97 | run_once: true |