-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreset_postgres_operator_setup.sh
More file actions
29 lines (15 loc) · 1.03 KB
/
reset_postgres_operator_setup.sh
File metadata and controls
29 lines (15 loc) · 1.03 KB
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/sh
set -x
kubectl delete clusterroles zalando-postgres-operator -n zalando-postgres
kubectl delete clusterrolebindings zalando-postgres-operator -n zalando-postgres
kubectl delete serviceaccounts zalando-postgres-operator -n zalando-postgres
kubectl delete secrets foo-user.postgres-instance.credentials postgres.postgres-instance.credentials standby.postgres-instance.credentials zalando.postgres-instance.credentials -n zalando-postgres
kubectl delete configmaps postgres-operator -n zalando-postgres
kubectl delete postgresql postgres-instance -n zalando-postgres
sleep 3
kubectl delete service postgres-instance postgres-instance-config postgres-instance-repl -n zalando-postgres
kubectl delete deployment postgres-operator -n zalando-postgres
kubectl delete statefulset postgres-instance -n zalando-postgres
kubectl delete pvc pgdata-postgres-instance-0 -n zalando-postgres
kubectl delete pvc pgdata-postgres-instance-1 -n zalando-postgres
kubectl delete pvc pgdata-postgres-instance-2 -n zalando-postgres