forked from nats-io/k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
destroy.sh
executable file
·37 lines (32 loc) · 1.11 KB
/
destroy.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
30
31
32
33
34
35
#!/bin/sh
echo "Cleaning up..."
kubectl config set-context --current --namespace=nats
kubectl delete sts nats
kubectl delete sts stan
kubectl delete sts prometheus-nats-prometheus
kubectl delete sts prometheus-nats-surveyor
kubectl delete deployment/nats-surveyor
kubectl delete deployment/nats-surveyor-grafana
kubectl delete deployment/prometheus-operator
kubectl delete pod nats-box
kubectl delete secrets nats-sys-creds
kubectl delete secrets nats-user-creds
kubectl delete secrets stan-creds
kubectl delete secrets prometheus-nats-prometheus
kubectl delete secrets prometheus-nats-surveyor
kubectl delete prometheuses nats-prometheus
kubectl delete prometheuses nats-surveyor
kubectl delete cm nats-accounts
kubectl delete cm nats-config
kubectl delete svc nats
kubectl delete svc stan
kubectl delete svc grafana
kubectl delete svc nats-surveyor
kubectl delete svc nats-prometheus
kubectl delete svc nats-surveyor-prometheus
kubectl delete svc prometheus
kubectl delete svc prometheus-operator
kubectl delete secret nats-ca
kubectl delete secret nats-server-tls
kubectl delete secret nats-client-tls
kubectl delete namespace nats