Skip to content

Commit 3ed838f

Browse files
author
Yannic Nevado Hidalgo
committed
right apply command in readme and enabled scram auth for users
1 parent 7883155 commit 3ed838f

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ $ kubectl get svc -l application=spilo -L spilo-role --namespace zalando-postgre
6262
You can update the Postgres cluster with the *manifest file* or directly with *psql-client*.
6363

6464
* After editting Postgres cluster file apply the modified configuration
65-
* `kubectl get svc -l application=spilo -L spilo-role --namespace zalando-postgres`
65+
* `kubectl apply -f manifests/minimal-postgres-manifest.yaml --namespace zalando-postgres`
6666
* Restart(Reload?) Patroni
6767
* `kubectl exec -i <Pod-Name> supervisorctl restart patroni --namespace zalando-postgres`
6868

manifests/minimal-postgres-manifest.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
databases:
1717
foo: zalando # dbname: owner
1818
test: zalando
19-
test2: zalando
19+
enableShmVolume: true
2020
postgresql:
2121
version: "11"
2222
parameters:
@@ -25,12 +25,20 @@ spec:
2525
log_statement: "all"
2626
log_destination: "stderr"
2727
log_directory: "/var/log/postgresql"
28+
resources:
29+
requests:
30+
cpu: 15m
31+
memory: 150Mi
32+
limits:
33+
cpu: 300m
34+
memory: 275Mi
2835
patroni:
2936
initdb:
3037
encoding: "UTF8"
31-
locale: "de_DE.UTF-8"
38+
locale: "en_US.UTF-8"
3239
data-checksums: "true"
40+
auth-host: "scram-sha-256"
3341
pg_hba:
34-
- hostssl all all 0.0.0.0/0 md5
35-
- host all all 0.0.0.0/0 md5
36-
- host all zalando 192.168.232.109/24 md5
42+
- hostssl all all 0.0.0.0/0 scram-sha-256
43+
- host all all 0.0.0.0/0 scram-sha-256
44+
- host all zalando 192.168.232.109/24 scram-sha-256

0 commit comments

Comments
 (0)