Skip to content

Commit 783064c

Browse files
author
Yannic Nevado Hidalgo
committed
change name from acid-minimal-cluster to postgres-instance for statefulsets
1 parent 2ecc0e9 commit 783064c

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

create_operator_setup.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22

33
set -x
44

5-
kubectl create -f manifests/configmap.yaml --namespace zalando-postgres
5+
kubectl create -f manifests/configmap.yaml -n zalando-postgres
66

7-
kubectl create -f manifests/operator-service-account-rbac.yaml --namespace zalando-postgres
7+
kubectl create -f manifests/operator-service-account-rbac.yaml -n zalando-postgres
88

9-
kubectl create -f manifests/postgres-operator.yaml --namespace zalando-postgres
9+
kubectl create -f manifests/postgres-operator.yaml -n zalando-postgres
1010

1111
sleep 10
1212

13-
kubectl get pod -l name=postgres-operator --namespace zalando-postgres
13+
kubectl get pod -l name=postgres-operator -n zalando-postgres
1414

15-
kubectl create -f manifests/minimal-postgres-manifest.yaml --namespace zalando-postgres
15+
kubectl create -f manifests/postgres-instance.yaml -n zalando-postgres
1616

1717
sleep 10
1818

19-
kubectl get postgresql --namespace zalando-postgres
19+
kubectl get postgresql -n zalando-postgres
2020

21-
kubectl get pods -l application=spilo -L spilo-role --namespace zalando-postgres
21+
kubectl get pods -l application=spilo -L spilo-role -n zalando-postgres
2222

23-
kubectl get svc -l application=spilo -L spilo-role --namespace zalando-postgres
23+
kubectl get svc -l application=spilo -L spilo-role -n zalando-postgres
File renamed without changes.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ kind: postgresql
77
metadata:
88
# name of the pod
99
# podtemplate is statefulset -> every instance has the same name with own ordinalindex
10-
name: acid-minimal-cluster
10+
name: postgres-instance
1111
# namespace in k8s where the pods will be created
1212
namespace: zalando-postgres
1313
spec:
14+
dockerImage: registry.opensource.zalan.do/acid/spilo-11:1.6-p1
1415
# required parameter from patroni
15-
teamId: "ACID"
16+
teamId: "Postgres"
1617
# size and accessmode(=defined in storageclass) for persistent volume claim
1718
volume:
1819
size: 1Gi

reset_postgres_operator_setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ kubectl delete clusterrolebindings zalando-postgres-operator -n zalando-postgres
88

99
kubectl delete serviceaccounts zalando-postgres-operator -n zalando-postgres
1010

11-
kubectl delete secrets foo-user.acid-minimal-cluster.credentials postgres.acid-minimal-cluster.credentials standby.acid-minimal-cluster.credentials zalando.acid-minimal-cluster.credentials -n zalando-postgres
11+
kubectl delete secrets foo-user.postgres-instance.credentials postgres.postgres-instance.credentials standby.postgres-instance.credentials zalando.postgres-instance.credentials -n zalando-postgres
1212

1313
kubectl delete configmaps postgres-operator -n zalando-postgres
1414

15-
kubectl delete postgresql acid-minimal-cluster --namespace zalando-postgres
15+
kubectl delete postgresql postgres-instance -n zalando-postgres
1616

17-
kubectl delete service acid-minimal-cluster acid-minimal-cluster-repl -n zalando-postgres
17+
kubectl delete service postgres-instance postgres-instance-repl -n zalando-postgres
1818

1919
kubectl delete poddisruptionbudgets postgres-acid-minimal-cluster-pdb -n zalando-postgres
2020

21-
kubectl delete pvc pgdata-acid-minimal-cluster-0 pgdata-acid-minimal-cluster-1 -n zalando-postgres
21+
# kubectl delete pvc pgdata-acid-minimal-cluster-0 pgdata-acid-minimal-cluster-1 pgdata-acid-minimal-cluster-2 -n zalando-postgres

0 commit comments

Comments
 (0)