-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshutdown.sh
29 lines (19 loc) · 871 Bytes
/
shutdown.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
NAMESPACE='gic3'
K8S_DIR='k8s'
#### secrets ####
kubectl delete secret prod-db-secret -n $NAMESPACE
kubectl delete secret prod-redis-secret -n $NAMESPACE
#### config maps ####
kubectl delete -n $NAMESPACE -f "$K8S_DIR/nginx-configmap.yaml"
kubectl delete -n $NAMESPACE -f "$K8S_DIR/redisconfigmap.yaml"
#### deployments ####
kubectl delete -n $NAMESPACE -f "$K8S_DIR/ingress.yaml"
kubectl delete -n $NAMESPACE -f "$K8S_DIR/postgres.yaml"
kubectl delete -n $NAMESPACE -f "$K8S_DIR/rediscluster.yaml"
kubectl delete -n $NAMESPACE -f "$K8S_DIR/nginx.yaml"
kubectl delete -n $NAMESPACE -f "$K8S_DIR/api.yaml"
kubectl delete -n $NAMESPACE -f "$K8S_DIR/web.yaml"
kubectl delete -n $NAMESPACE -f "$K8S_DIR/celerybeat.yaml"
kubectl delete -n $NAMESPACE -f "$K8S_DIR/celeryworker-short.yaml"
kubectl delete -n $NAMESPACE -f "$K8S_DIR/celeryworker-long.yaml"