Skip to content

Commit

Permalink
all done for reconfiguration
Browse files Browse the repository at this point in the history
Signed-off-by: Hiranmoy Das Chowdhury <[email protected]>
  • Loading branch information
HiranmoyChowdhury committed Dec 11, 2024
1 parent fbd1916 commit f676d4c
Show file tree
Hide file tree
Showing 6 changed files with 243 additions and 397 deletions.
22 changes: 22 additions & 0 deletions docs/examples/pgbouncer/reconfigure/pb-custom-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: kubedb.com/v1
kind: PgBouncer
metadata:
name: pb-custom
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
deletionPolicy: WipeOut
17 changes: 17 additions & 0 deletions docs/examples/pgbouncer/reconfigure/pbops-reconfigure-apply.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: PgBouncerOpsRequest
metadata:
name: pbops-reconfigure-apply
namespace: demo
spec:
type: Reconfigure
databaseRef:
name: pb-custom
configuration:
pgbouncer:
applyConfig:
pgbouncer.ini: |-
[pgbouncer]
auth_type=scram-sha-256
timeout: 5m
apply: IfReady
15 changes: 15 additions & 0 deletions docs/examples/pgbouncer/reconfigure/pbops-reconfigure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: PgBouncerOpsRequest
metadata:
name: pbops-reconfigure
namespace: demo
spec:
type: Reconfigure
databaseRef:
name: pb-custom
configuration:
pgbouncer:
configSecret:
name: new-custom-config
timeout: 5m
apply: IfReady
2 changes: 1 addition & 1 deletion docs/guides/pgbouncer/reconfigure/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This guide will give an overview on how KubeDB Ops-manager operator reconfigures
The following diagram shows how KubeDB Ops-manager operator reconfigures `PgBouncer`. Open the image in a new tab to see the enlarged version.

<figure align="center">
  <img alt="Reconfiguring process of PgBouncer" src="/docs/images/day-2-operation/pgbouncer/pb-reconfigure.png">
  <img alt="Reconfiguring process of PgBouncer" src="/docs/images/day-2-operation/pgbouncer/reconfiguring.png">
<figcaption align="center">Fig: Reconfiguring process of PgBouncer</figcaption>
</figure>

Expand Down
Loading

0 comments on commit f676d4c

Please sign in to comment.