-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: souravbiswassanto <[email protected]>
- Loading branch information
1 parent
325aca8
commit e144c0a
Showing
11 changed files
with
1,079 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
docs/examples/postgres/autoscaler/compute/ha-postgres.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: Postgres | ||
metadata: | ||
name: ha-postgres | ||
namespace: demo | ||
spec: | ||
version: "16.1" | ||
replicas: 3 | ||
storageType: Durable | ||
storage: | ||
storageClassName: "standard" | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
podTemplate: | ||
spec: | ||
containers: | ||
- name: postgres | ||
resources: | ||
requests: | ||
cpu: "200m" | ||
memory: "512Mi" | ||
limits: | ||
cpu: "200m" | ||
memory: "512Mi" | ||
deletionPolicy: WipeOut |
24 changes: 24 additions & 0 deletions
24
docs/examples/postgres/autoscaler/compute/pgas-compute.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: autoscaling.kubedb.com/v1alpha1 | ||
kind: PostgresAutoscaler | ||
metadata: | ||
name: pg-as-compute | ||
namespace: demo | ||
spec: | ||
databaseRef: | ||
name: ha-postgres | ||
opsRequestOptions: | ||
timeout: 3m | ||
apply: IfReady | ||
compute: | ||
postgres: | ||
trigger: "On" | ||
podLifeTimeThreshold: 5m | ||
resourceDiffPercentage: 20 | ||
minAllowed: | ||
cpu: 250m | ||
memory: 1Gi | ||
maxAllowed: | ||
cpu: 1 | ||
memory: 1Gi | ||
containerControlledValues: "RequestsAndLimits" | ||
controlledResources: ["cpu", "memory"] |
17 changes: 17 additions & 0 deletions
17
docs/examples/postgres/autoscaler/storage/ha-postgres.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: Postgres | ||
metadata: | ||
name: ha-postgres | ||
namespace: demo | ||
spec: | ||
version: "16.1" | ||
replicas: 3 | ||
storageType: Durable | ||
storage: | ||
storageClassName: "topolvm-provisioner" | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
deletionPolicy: WipeOut |
14 changes: 14 additions & 0 deletions
14
docs/examples/postgres/autoscaler/storage/pgas-storage.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: autoscaling.kubedb.com/v1alpha1 | ||
kind: PostgresAutoscaler | ||
metadata: | ||
name: pg-as-st | ||
namespace: demo | ||
spec: | ||
databaseRef: | ||
name: ha-postgres | ||
storage: | ||
postgres: | ||
trigger: "On" | ||
usageThreshold: 20 | ||
scalingThreshold: 20 | ||
expansionMode: "Online" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Autoscaling | ||
menu: | ||
docs_{{ .version }}: | ||
identifier: pg-auto-scaling | ||
name: Autoscaling | ||
parent: pg-postgres-guides | ||
weight: 46 | ||
menu_name: docs_{{ .version }} | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Compute Autoscaling | ||
menu: | ||
docs_{{ .version }}: | ||
identifier: mg-compute-auto-scaling | ||
name: Compute Autoscaling | ||
parent: mg-auto-scaling | ||
weight: 46 | ||
menu_name: docs_{{ .version }} | ||
--- |
Oops, something went wrong.