File tree Expand file tree Collapse file tree 4 files changed +15
-14
lines changed
Expand file tree Collapse file tree 4 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 22
33set -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
1111sleep 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
1717sleep 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.
Original file line number Diff line number Diff line change @@ -7,12 +7,13 @@ kind: postgresql
77metadata :
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
1313spec :
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
Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ kubectl delete clusterrolebindings zalando-postgres-operator -n zalando-postgres
88
99kubectl 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
1313kubectl 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
1919kubectl 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
You can’t perform that action at this time.
0 commit comments