blob: d9f2634ba952b50d1c8ed7addbe4c87de736ba12 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# 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 Barbariebcea2f42018-03-02 18:46:32 -050014# Dashd and Shovel
15- name: "VOLT-HA Teardown | Stop DASHD and SHOVEL"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040016 command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/stats.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050017 run_once: true
18
19# Grafana
20- name: "VOLT-HA Teardown | Stop Grafana"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040021 command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/grafana.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050022 run_once: true
23
24# NETCONF
25- name: "VOLT-HA Teardown | Stop NETCONF"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040026 command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/netconf.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050027 run_once: true
28
29# Voltha CLI
30- name: "VOLT-HA Teardown | Stop VOLT-HA CLI"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040031 command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/vcli.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050032 run_once: true
33
Stephane Barbarie78d9fa62018-04-19 14:11:05 -040034# 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 Barbariebcea2f42018-03-02 18:46:32 -050037 run_once: true
38
39# OFagent
40- name: "VOLT-HA Teardown | Stop OpenFlow Agent"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040041 command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/ofagent.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050042 run_once: true
43
Stephane Barbarie78d9fa62018-04-19 14:11:05 -040044# 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 Barbariebcea2f42018-03-02 18:46:32 -050047 run_once: true
48
Stephane Barbarie78d9fa62018-04-19 14:11:05 -040049# 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 Barbariebcea2f42018-03-02 18:46:32 -050067 run_once: true
68
69# Fluentd
70- name: "VOLT-HA Teardown | Stop fluentd"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040071 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 Barbariebcea2f42018-03-02 18:46:32 -050077 run_once: true
78
79# Kafka
80- name: "VOLT-HA Teardown | Stop kafka"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040081 command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/kafka.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050082 run_once: true
83
84# Zookeeper
85- name: "VOLT-HA Teardown | Stop zookeeper"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040086 command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/zookeeper.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050087 run_once: true
88
89# Ingress
90- name: "VOLT-HA Teardown | Stop Ingress Controller"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040091 command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/ingress
Stephane Barbariebcea2f42018-03-02 18:46:32 -050092 run_once: true
93
94# Namespace
95- name: "VOLT-HA Teardown | Remove Namespace"
Stephane Barbarie2cbffca2018-03-26 16:20:03 -040096 command: kubectl delete --ignore-not-found=true -f {{ target_voltha_home }}/k8s/namespace.yml
Stephane Barbariebcea2f42018-03-02 18:46:32 -050097 run_once: true