Skip to content

Commit

Permalink
all done
Browse files Browse the repository at this point in the history
Signed-off-by: Hiranmoy Das Chowdhury <[email protected]>
  • Loading branch information
HiranmoyChowdhury committed Jan 30, 2025
1 parent 7e102ae commit 82dd604
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/examples/pgbouncer/reconfigure-tls/add-tls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: PgBouncerOpsRequest
metadata:
name: add-tls
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: pb
tls:
sslMode: verify-full
clientAuthMode: md5
issuerRef:
name: pb-issuer
kind: Issuer
apiGroup: "cert-manager.io"
certificates:
- alias: client
subject:
organizations:
- pgbouncer
organizationalUnits:
- client
apply: Always
14 changes: 14 additions & 0 deletions docs/examples/pgbouncer/reconfigure-tls/change-issuer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: PgBouncerOpsRequest
metadata:
name: change-issuer
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: pb
tls:
issuerRef:
name: pb-new-issuer
kind: Issuer
apiGroup: "cert-manager.io"
8 changes: 8 additions & 0 deletions docs/examples/pgbouncer/reconfigure-tls/issuer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: pb-issuer
namespace: demo
spec:
ca:
secretName: pgbouncer-ca
8 changes: 8 additions & 0 deletions docs/examples/pgbouncer/reconfigure-tls/new-issuer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: pb-new-issuer
namespace: demo
spec:
ca:
secretName: pgbouncer-new-ca
23 changes: 23 additions & 0 deletions docs/examples/pgbouncer/reconfigure-tls/pb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: kubedb.com/v1
kind: PgBouncer
metadata:
name: pb
namespace: demo
spec:
replicas: 1
version: "1.18.0"
database:
syncUsers: true
databaseName: "postgres"
databaseRef:
name: "ha-postgres"
namespace: demo
connectionPool:
poolMode: session
port: 5432
reservePoolSize: 5
maxClientConnections: 87
defaultPoolSize: 2
minPoolSize: 1
authType: md5
deletionPolicy: WipeOut
14 changes: 14 additions & 0 deletions docs/examples/pgbouncer/reconfigure-tls/remove-tls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: PgBouncerOpsRequest
metadata:
name: remove-tls
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: pb
tls:
clientAuthMode: md5
remove: true
timeout: 5m
apply: IfReady
11 changes: 11 additions & 0 deletions docs/examples/pgbouncer/reconfigure-tls/rotate-tls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: PgBouncerOpsRequest
metadata:
name: rotate-tls
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: pb
tls:
rotateCertificates: true
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 82dd604

Please sign in to comment.