Skip to content

Commit

Permalink
Added Postgres reconfigure docs
Browse files Browse the repository at this point in the history
Signed-off-by: souravbiswassanto <[email protected]>
  • Loading branch information
souravbiswassanto committed Aug 31, 2024
1 parent 46cd1a6 commit 325aca8
Show file tree
Hide file tree
Showing 9 changed files with 496 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/examples/postgres/reconfigure/apply-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: PostgresOpsRequest
metadata:
name: pgops-reconfigure-apply-config
namespace: demo
spec:
type: Reconfigure
databaseRef:
name: ha-postgres
configuration:
applyConfig:
user.conf: |
max_connections = 230
shared_buffers = 512MB
19 changes: 19 additions & 0 deletions docs/examples/postgres/reconfigure/ha-postgres.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: kubedb.com/v1
kind: Postgres
metadata:
name: ha-postgres
namespace: demo
spec:
version: "16.1"
replicas: 3
configSecret:
name: pg-configuration
storageType: Durable
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
deletionPolicy: WipeOut
12 changes: 12 additions & 0 deletions docs/examples/postgres/reconfigure/reconfigure-using-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: PostgresOpsRequest
metadata:
name: pgops-reconfigure-config
namespace: demo
spec:
type: Reconfigure
databaseRef:
name: ha-postgres
configuration:
configSecret:
name: new-pg-configuration
11 changes: 11 additions & 0 deletions docs/examples/postgres/reconfigure/remove-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: PostgresOpsRequest
metadata:
name: remove-config
namespace: demo
spec:
type: Reconfigure
databaseRef:
name: ha-postgres
configuration:
removeCustomConfig: true
10 changes: 10 additions & 0 deletions docs/guides/postgres/reconfigure/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Reconfigure
menu:
docs_{{ .version }}:
identifier: pg-reconfigure
name: Reconfigure
parent: pg-postgres-guides
weight: 46
menu_name: docs_{{ .version }}
---
Loading

0 comments on commit 325aca8

Please sign in to comment.