From 4b54a4daaa4e2f34ac667a0f52ae3c12a2b55f57 Mon Sep 17 00:00:00 2001 From: Hiranmoy Das Chowdhury Date: Thu, 28 Nov 2024 17:01:14 +0600 Subject: [PATCH] restart done Signed-off-by: Hiranmoy Das Chowdhury --- docs/examples/pgbouncer/restart/ops.yaml | 11 +++++++++ .../examples/pgbouncer/restart/pgbouncer.yaml | 23 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 docs/examples/pgbouncer/restart/ops.yaml create mode 100644 docs/examples/pgbouncer/restart/pgbouncer.yaml diff --git a/docs/examples/pgbouncer/restart/ops.yaml b/docs/examples/pgbouncer/restart/ops.yaml new file mode 100644 index 000000000..cff7b4901 --- /dev/null +++ b/docs/examples/pgbouncer/restart/ops.yaml @@ -0,0 +1,11 @@ +apiVersion: ops.kubedb.com/v1alpha1 +kind: PgBouncerOpsRequest +metadata: + name: restart-pgbouncer + namespace: demo +spec: + type: Restart + databaseRef: + name: pgbouncer + timeout: 3m + apply: Always \ No newline at end of file diff --git a/docs/examples/pgbouncer/restart/pgbouncer.yaml b/docs/examples/pgbouncer/restart/pgbouncer.yaml new file mode 100644 index 000000000..30d3b3cfc --- /dev/null +++ b/docs/examples/pgbouncer/restart/pgbouncer.yaml @@ -0,0 +1,23 @@ +apiVersion: kubedb.com/v1 +kind: PgBouncer +metadata: + name: pgbouncer + 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 \ No newline at end of file