Skip to content

Commit

Permalink
docs: update import samples
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
  • Loading branch information
mnencia committed Jan 30, 2024
1 parent b50e1eb commit 0374720
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions docs/src/samples/cluster-import-schema-only-basicauth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ spec:
- name: cluster-example
connectionParameters:
host: cluster-example-rw.default.svc
user: postgres
dbname: postgres
user: app
dbname: app
password:
name: cluster-example-superuser
name: cluster-example-app
key: password
6 changes: 3 additions & 3 deletions docs/src/samples/cluster-import-snapshot-basicauth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ spec:
- name: cluster-example
connectionParameters:
host: cluster-example-rw.default.svc
user: postgres
dbname: postgres
user: app
dbname: app
password:
name: cluster-example-superuser
name: cluster-example-app
key: password
14 changes: 7 additions & 7 deletions docs/src/samples/cluster-import-snapshot-tls.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# IMPORTANT: this configuration requires an appropriate line
# in the host-based access rules allowing replication connections
# to the postgres user.
# to the app user.
#
# The following line meet the requisites:
#
# pg_hba:
# - hostssl all postgres all cert
# - hostssl all app all cert

# You can generate the required TLS certificate with
#
# ./bin/kubectl-cnp certificate cluster-example-superuser-tls --cnp-cluster cluster-example --cnp-user postgres
# ./bin/kubectl-cnpg certificate cluster-example-app-tls --cnpg-cluster cluster-example --cnpg-user app
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
Expand All @@ -31,13 +31,13 @@ spec:
- name: cluster-example
connectionParameters:
host: cluster-example-rw.default.svc
user: postgres
dbname: postgres
user: app
dbname: app
sslKey:
name: cluster-example-superuser-tls
name: cluster-example-app-tls
key: tls.key
sslCert:
name: cluster-example-superuser-tls
name: cluster-example-app-tls
key: tls.crt
sslRootCert:
name: cluster-example-ca
Expand Down

0 comments on commit 0374720

Please sign in to comment.