mirror of
https://github.com/zoriya/snow.git
synced 2026-08-05 22:08:55 +00:00
wip: Use cert-manager for cnpg's auth
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: postgres-cluster-ca
|
||||
spec:
|
||||
secretName: postgres-cluster-ca
|
||||
secretTemplate:
|
||||
labels:
|
||||
cnpg.io/reload: ""
|
||||
usages:
|
||||
- client auth
|
||||
commonName: streaming_replica
|
||||
issuerRef:
|
||||
name: selfsigned
|
||||
kind: ClusterIssuer
|
||||
group: cert-manager.io
|
||||
@@ -0,0 +1,22 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: postgres-cluster
|
||||
namespace: postgres
|
||||
spec:
|
||||
instances: 3
|
||||
|
||||
storage:
|
||||
size: 10Gi
|
||||
|
||||
certificates:
|
||||
clientCASecret: postgres-cert-ca
|
||||
replicationTLSSecret: postgres-cert-ca
|
||||
|
||||
# this is here because no `Role` crd exsists yet.
|
||||
# see https://github.com/cloudnative-pg/cloudnative-pg/issues/5341
|
||||
managed:
|
||||
roles:
|
||||
- name: authentik
|
||||
login: true
|
||||
disablePassword: true
|
||||
Reference in New Issue
Block a user