Skip to content

Commit 84dbf64

Browse files
authored
Merge pull request CrunchyData#284 from jmckulk/update-examples
Update cluster deployment examples
2 parents f4633c8 + 5af5710 commit 84dbf64

File tree

10 files changed

+37
-35
lines changed

10 files changed

+37
-35
lines changed

kustomize/azure/postgres.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ kind: PostgresCluster
33
metadata:
44
name: hippo-azure
55
spec:
6-
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
76
postgresVersion: 16
87
instances:
98
- dataVolumeClaimSpec:
@@ -14,7 +13,6 @@ spec:
1413
storage: 1Gi
1514
backups:
1615
pgbackrest:
17-
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
1816
configuration:
1917
- secret:
2018
name: pgo-azure-creds

kustomize/certmanager/postgres/postgres.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ kind: PostgresCluster
33
metadata:
44
name: hippo
55
spec:
6-
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
76
postgresVersion: 16
87
customReplicationTLSSecret:
98
name: hippo-repl-tls
@@ -19,7 +18,6 @@ spec:
1918
storage: 1Gi
2019
backups:
2120
pgbackrest:
22-
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
2321
repos:
2422
- name: repo1
2523
volume:

kustomize/gcs/postgres.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ kind: PostgresCluster
33
metadata:
44
name: hippo-gcs
55
spec:
6-
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
76
postgresVersion: 16
87
instances:
98
- dataVolumeClaimSpec:
@@ -14,7 +13,6 @@ spec:
1413
storage: 1Gi
1514
backups:
1615
pgbackrest:
17-
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
1816
configuration:
1917
- secret:
2018
name: pgo-gcs-creds

kustomize/high-availability/ha-postgres.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ kind: PostgresCluster
33
metadata:
44
name: hippo-ha
55
spec:
6-
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
76
postgresVersion: 16
87
instances:
98
- name: pgha1
@@ -26,7 +25,6 @@ spec:
2625
postgres-operator.crunchydata.com/instance-set: pgha1
2726
backups:
2827
pgbackrest:
29-
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
3028
repos:
3129
- name: repo1
3230
volume:
@@ -38,7 +36,6 @@ spec:
3836
storage: 1Gi
3937
proxy:
4038
pgBouncer:
41-
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.22-1
4239
replicas: 2
4340
affinity:
4441
podAntiAffinity:

kustomize/keycloak/postgres.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ kind: PostgresCluster
33
metadata:
44
name: keycloakdb
55
spec:
6-
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
76
postgresVersion: 16
87
instances:
98
- replicas: 2
@@ -25,7 +24,6 @@ spec:
2524
postgres-operator.crunchydata.com/instance-set: "00"
2625
backups:
2726
pgbackrest:
28-
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
2927
repos:
3028
- name: repo1
3129
volume:

kustomize/multi-backup-repo/postgres.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ kind: PostgresCluster
33
metadata:
44
name: hippo-multi-repo
55
spec:
6-
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
76
postgresVersion: 16
87
instances:
98
- dataVolumeClaimSpec:
@@ -14,7 +13,6 @@ spec:
1413
storage: 1Gi
1514
backups:
1615
pgbackrest:
17-
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
1816
configuration:
1917
- secret:
2018
name: pgo-multi-repo-creds

kustomize/pgadmin/kustomization.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@ namespace: postgres-operator
66
resources:
77
- pgadmin.yaml
88

9+
secretGenerator:
10+
- name: pgadmin-password-secret
11+
literals:
12+
- rhino-password=pgadmin
13+
type: Opaque
14+
15+
generatorOptions:
16+
disableNameSuffixHash: true

kustomize/pgadmin/pgadmin.yaml

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ apiVersion: postgres-operator.crunchydata.com/v1beta1
22
kind: PGAdmin
33
metadata:
44
name: rhino
5-
namespace: postgres-operator
65
spec:
6+
users:
7+
- username: rhino@example.com
8+
role: Administrator
9+
passwordRef:
10+
name: pgadmin-password-secret
11+
key: rhino-password
712
dataVolumeClaimSpec:
813
accessModes:
914
- "ReadWriteOnce"
@@ -16,20 +21,22 @@ spec:
1621
postgresClusterSelector: {}
1722
config:
1823
settings:
19-
AUTHENTICATION_SOURCES: ['oauth2', 'internal']
20-
OAUTH2_CONFIG:
21-
- OAUTH2_NAME: "google"
22-
OAUTH2_DISPLAY_NAME: "Google"
23-
OAUTH2_CLIENT_ID: "XXXXXXX"
24-
OAUTH2_CLIENT_SECRET: "XXXXXXX"
25-
OAUTH2_TOKEN_URL: "https://oauth2.googleapis.com/token"
26-
OAUTH2_AUTHORIZATION_URL: "https://accounts.google.com/o/oauth2/auth"
27-
OAUTH2_API_BASE_URL: "https://openidconnect.googleapis.com/v1/"
28-
OAUTH2_SERVER_METADATA_URL: "https://accounts.google.com/.well-known/openid-configuration"
29-
OAUTH2_SCOPE: "openid email profile"
30-
OAUTH2_USERINFO_ENDPOINT: "userinfo"
31-
OAUTH2_SSL_CERT_VERIFICATION: "False" # for testing purposes
32-
OAUTH2_BUTTON_COLOR: "red"
33-
OAUTH2_AUTO_CREATE_USER : "True"
34-
DEBUG: "True" # for testing purposes
35-
SERVER_MODE: "True"
24+
AUTHENTICATION_SOURCES: ['internal']
25+
# Uncomment DEBUG to enable debug logging in pgAdmin
26+
# DEBUG: "True"
27+
# Configure OAUTH by setting the following *AND* adding
28+
# `oauth` to AUTHENTICATION_SOURCES
29+
#OAUTH2_CONFIG:
30+
# - OAUTH2_NAME: "google"
31+
# OAUTH2_DISPLAY_NAME: "Google"
32+
# OAUTH2_CLIENT_ID: "XXXXXXX"
33+
# OAUTH2_CLIENT_SECRET: "XXXXXXX"
34+
# OAUTH2_TOKEN_URL: "https://oauth2.googleapis.com/token"
35+
# OAUTH2_AUTHORIZATION_URL: "https://accounts.google.com/o/oauth2/auth"
36+
# OAUTH2_API_BASE_URL: "https://openidconnect.googleapis.com/v1/"
37+
# OAUTH2_SERVER_METADATA_URL: "https://accounts.google.com/.well-known/openid-configuration"
38+
# OAUTH2_SCOPE: "openid email profile"
39+
# OAUTH2_USERINFO_ENDPOINT: "userinfo"
40+
# OAUTH2_SSL_CERT_VERIFICATION: "False" # for testing purposes
41+
# OAUTH2_BUTTON_COLOR: "red"
42+
#OAUTH2_AUTO_CREATE_USER : "True"

kustomize/postgres/postgres.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ kind: PostgresCluster
33
metadata:
44
name: hippo
55
spec:
6-
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
76
postgresVersion: 16
7+
users:
8+
- name: rhino
9+
databases:
10+
- zoo
811
instances:
912
- name: instance1
1013
dataVolumeClaimSpec:
@@ -15,7 +18,6 @@ spec:
1518
storage: 1Gi
1619
backups:
1720
pgbackrest:
18-
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
1921
repos:
2022
- name: repo1
2123
volume:

kustomize/s3/postgres.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ kind: PostgresCluster
33
metadata:
44
name: hippo-s3
55
spec:
6-
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
76
postgresVersion: 16
87
instances:
98
- dataVolumeClaimSpec:
@@ -14,7 +13,6 @@ spec:
1413
storage: 1Gi
1514
backups:
1615
pgbackrest:
17-
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
1816
configuration:
1917
- secret:
2018
name: pgo-s3-creds

0 commit comments

Comments
 (0)