Skip to content

Commit

Permalink
temp
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 325aca8 commit e144c0a
Show file tree
Hide file tree
Showing 11 changed files with 1,079 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/examples/postgres/autoscaler/compute/ha-postgres.yaml
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 docs/examples/postgres/autoscaler/compute/pgas-compute.yaml
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 docs/examples/postgres/autoscaler/storage/ha-postgres.yaml
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 docs/examples/postgres/autoscaler/storage/pgas-storage.yaml
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"
10 changes: 10 additions & 0 deletions docs/guides/postgres/autoscaler/_index.md
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 }}
---
10 changes: 10 additions & 0 deletions docs/guides/postgres/autoscaler/compute/_index.md
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 }}
---
Loading

0 comments on commit e144c0a

Please sign in to comment.