Skip to content

Commit

Permalink
add some pages and wip
Browse files Browse the repository at this point in the history
Signed-off-by: sayedppqq <[email protected]>
  • Loading branch information
sayedppqq committed Nov 28, 2024
1 parent 9ac2c79 commit 0d20054
Show file tree
Hide file tree
Showing 17 changed files with 1,373 additions and 8 deletions.
21 changes: 21 additions & 0 deletions docs/examples/ferretdb/autoscaling/compute/autoscaler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: autoscaling.kubedb.com/v1alpha1
kind: FerretDBAutoscaler
metadata:
name: ferretdb-autoscale-ops
namespace: demo
spec:
databaseRef:
name: ferretdb-autoscale
compute:
ferretdb:
trigger: "On"
podLifeTimeThreshold: 5m
resourceDiffPercentage: 20
minAllowed:
cpu: 400m
memory: 400Mi
maxAllowed:
cpu: 1
memory: 1Gi
controlledResources: ["cpu", "memory"]
containerControlledValues: "RequestsAndLimits"
28 changes: 28 additions & 0 deletions docs/examples/ferretdb/autoscaling/compute/ferretdb-autoscale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: kubedb.com/v1alpha2
kind: FerretDB
metadata:
name: ferretdb-autoscale
namespace: demo
spec:
version: "1.23.0"
replicas: 1
backend:
externallyManaged: false
podTemplate:
spec:
containers:
- name: ferretdb
resources:
requests:
cpu: "200m"
memory: "300Mi"
limits:
cpu: "200m"
memory: "300Mi"
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
deletionPolicy: WipeOut
24 changes: 24 additions & 0 deletions docs/examples/ferretdb/monitoring/coreos-prom-fr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: kubedb.com/v1alpha2
kind: FerretDB
metadata:
name: coreos-prom-fr
namespace: demo
spec:
version: "1.23.0"
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
backend:
externallyManaged: false
deletionPolicy: WipeOut
replicas: 2
monitor:
agent: prometheus.io/operator
prometheus:
serviceMonitor:
labels:
release: prometheus
interval: 10s
25 changes: 25 additions & 0 deletions docs/examples/ferretdb/tls/ferretdb-tls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: kubedb.com/v1alpha2
kind: FerretDB
metadata:
name: fr-tls
namespace: demo
spec:
version: "1.23.0"
authSecret:
externallyManaged: false
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
backend:
externallyManaged: false
deletionPolicy: WipeOut
replicas: 1
sslMode: requireSSL
tls:
issuerRef:
apiGroup: "cert-manager.io"
kind: Issuer
name: ferretdb-ca-issuer
8 changes: 8 additions & 0 deletions docs/examples/ferretdb/tls/issuer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: ferretdb-ca-issuer
namespace: demo
spec:
ca:
secretName: ferretdb-ca
10 changes: 10 additions & 0 deletions docs/guides/ferretdb/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: fr-compute-auto-scaling
name: Compute Autoscaling
parent: fr-auto-scaling
weight: 46
menu_name: docs_{{ .version }}
---
Loading

0 comments on commit 0d20054

Please sign in to comment.