Skip to content

Update cluster deployment examples #284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions kustomize/azure/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: PostgresCluster
metadata:
name: hippo-azure
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
postgresVersion: 16
instances:
- dataVolumeClaimSpec:
Expand All @@ -14,7 +13,6 @@ spec:
storage: 1Gi
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
configuration:
- secret:
name: pgo-azure-creds
Expand Down
2 changes: 0 additions & 2 deletions kustomize/certmanager/postgres/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: PostgresCluster
metadata:
name: hippo
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
postgresVersion: 16
customReplicationTLSSecret:
name: hippo-repl-tls
Expand All @@ -19,7 +18,6 @@ spec:
storage: 1Gi
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
repos:
- name: repo1
volume:
Expand Down
2 changes: 0 additions & 2 deletions kustomize/gcs/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: PostgresCluster
metadata:
name: hippo-gcs
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
postgresVersion: 16
instances:
- dataVolumeClaimSpec:
Expand All @@ -14,7 +13,6 @@ spec:
storage: 1Gi
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
configuration:
- secret:
name: pgo-gcs-creds
Expand Down
3 changes: 0 additions & 3 deletions kustomize/high-availability/ha-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: PostgresCluster
metadata:
name: hippo-ha
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
postgresVersion: 16
instances:
- name: pgha1
Expand All @@ -26,7 +25,6 @@ spec:
postgres-operator.crunchydata.com/instance-set: pgha1
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
repos:
- name: repo1
volume:
Expand All @@ -38,7 +36,6 @@ spec:
storage: 1Gi
proxy:
pgBouncer:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.22-1
replicas: 2
affinity:
podAntiAffinity:
Expand Down
2 changes: 0 additions & 2 deletions kustomize/keycloak/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: PostgresCluster
metadata:
name: keycloakdb
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
postgresVersion: 16
instances:
- replicas: 2
Expand All @@ -25,7 +24,6 @@ spec:
postgres-operator.crunchydata.com/instance-set: "00"
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
repos:
- name: repo1
volume:
Expand Down
2 changes: 0 additions & 2 deletions kustomize/multi-backup-repo/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: PostgresCluster
metadata:
name: hippo-multi-repo
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
postgresVersion: 16
instances:
- dataVolumeClaimSpec:
Expand All @@ -14,7 +13,6 @@ spec:
storage: 1Gi
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
configuration:
- secret:
name: pgo-multi-repo-creds
Expand Down
8 changes: 8 additions & 0 deletions kustomize/pgadmin/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ namespace: postgres-operator
resources:
- pgadmin.yaml

secretGenerator:
- name: pgadmin-password-secret
literals:
- rhino-password=pgadmin
type: Opaque

generatorOptions:
disableNameSuffixHash: true
43 changes: 25 additions & 18 deletions kustomize/pgadmin/pgadmin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PGAdmin
metadata:
name: rhino
namespace: postgres-operator
spec:
users:
- username: rhino@example.com
role: Administrator
passwordRef:
name: pgadmin-password-secret
key: rhino-password
dataVolumeClaimSpec:
accessModes:
- "ReadWriteOnce"
Expand All @@ -16,20 +21,22 @@ spec:
postgresClusterSelector: {}
config:
settings:
AUTHENTICATION_SOURCES: ['oauth2', 'internal']
OAUTH2_CONFIG:
- OAUTH2_NAME: "google"
OAUTH2_DISPLAY_NAME: "Google"
OAUTH2_CLIENT_ID: "XXXXXXX"
OAUTH2_CLIENT_SECRET: "XXXXXXX"
OAUTH2_TOKEN_URL: "https://oauth2.googleapis.com/token"
OAUTH2_AUTHORIZATION_URL: "https://accounts.google.com/o/oauth2/auth"
OAUTH2_API_BASE_URL: "https://openidconnect.googleapis.com/v1/"
OAUTH2_SERVER_METADATA_URL: "https://accounts.google.com/.well-known/openid-configuration"
OAUTH2_SCOPE: "openid email profile"
OAUTH2_USERINFO_ENDPOINT: "userinfo"
OAUTH2_SSL_CERT_VERIFICATION: "False" # for testing purposes
OAUTH2_BUTTON_COLOR: "red"
OAUTH2_AUTO_CREATE_USER : "True"
DEBUG: "True" # for testing purposes
SERVER_MODE: "True"
AUTHENTICATION_SOURCES: ['internal']
# Uncomment DEBUG to enable debug logging in pgAdmin
# DEBUG: "True"
# Configure OAUTH by setting the following *AND* adding
# `oauth` to AUTHENTICATION_SOURCES
#OAUTH2_CONFIG:
# - OAUTH2_NAME: "google"
# OAUTH2_DISPLAY_NAME: "Google"
# OAUTH2_CLIENT_ID: "XXXXXXX"
# OAUTH2_CLIENT_SECRET: "XXXXXXX"
# OAUTH2_TOKEN_URL: "https://oauth2.googleapis.com/token"
# OAUTH2_AUTHORIZATION_URL: "https://accounts.google.com/o/oauth2/auth"
# OAUTH2_API_BASE_URL: "https://openidconnect.googleapis.com/v1/"
# OAUTH2_SERVER_METADATA_URL: "https://accounts.google.com/.well-known/openid-configuration"
# OAUTH2_SCOPE: "openid email profile"
# OAUTH2_USERINFO_ENDPOINT: "userinfo"
# OAUTH2_SSL_CERT_VERIFICATION: "False" # for testing purposes
# OAUTH2_BUTTON_COLOR: "red"
#OAUTH2_AUTO_CREATE_USER : "True"
6 changes: 4 additions & 2 deletions kustomize/postgres/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ kind: PostgresCluster
metadata:
name: hippo
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
postgresVersion: 16
users:
- name: rhino
databases:
- zoo
instances:
- name: instance1
dataVolumeClaimSpec:
Expand All @@ -15,7 +18,6 @@ spec:
storage: 1Gi
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
repos:
- name: repo1
volume:
Expand Down
2 changes: 0 additions & 2 deletions kustomize/s3/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: PostgresCluster
metadata:
name: hippo-s3
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
postgresVersion: 16
instances:
- dataVolumeClaimSpec:
Expand All @@ -14,7 +13,6 @@ spec:
storage: 1Gi
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
configuration:
- secret:
name: pgo-s3-creds
Expand Down