Skip to content
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
6 changes: 6 additions & 0 deletions ops/environments/production/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ resources:
generators:
- postgres-secret-generator.yaml
patches:
- target:
group: postgresql.cnpg.io
version: v1
kind: Cluster
name: template-postgres
path: teleport-access.patch.yaml
- path: ghcr-pull-secret.patch.yaml
- path: replicas.patch.yaml
- path: runtime-config.patch.yaml
Expand Down
24 changes: 24 additions & 0 deletions ops/environments/production/teleport-access.patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# CA Secret is managed by darkmatter/gitops template-postgres-platform.
- op: add
path: /spec/certificates/clientCASecret
value: template-postgres-teleport-client-ca
- op: add
path: /spec/managed/roles
value:
- name: teleport
comment: Teleport certificate login, read-only
inRoles:
- pg_read_all_data
ensure: present
login: true
superuser: false
createdb: false
createrole: false
replication: false
bypassrls: false
inherit: true
connectionLimit: 5
disablePassword: true
- op: add
path: /spec/postgresql/pg_hba/0
value: hostssl all teleport 10.42.0.0/16 cert
Loading