Skip to content

Commit

Permalink
FerretDB Complete Doc (#696)
Browse files Browse the repository at this point in the history
* wip

Signed-off-by: sayedppqq <[email protected]>

* add some pages and wip

Signed-off-by: sayedppqq <[email protected]>

* wip

* wip

Signed-off-by: sayedppqq <[email protected]>

* fix link

Signed-off-by: sayedppqq <[email protected]>

* fix concepts

Signed-off-by: sayedppqq <[email protected]>

---------

Signed-off-by: sayedppqq <[email protected]>
Co-authored-by: Md. Anisur Rahman <[email protected]>
  • Loading branch information
sayedppqq and anisurrahman75 authored Dec 17, 2024
1 parent 7786905 commit 42e8787
Show file tree
Hide file tree
Showing 66 changed files with 5,345 additions and 12 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
19 changes: 19 additions & 0 deletions docs/examples/ferretdb/monitoring/builtin-prom-fr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: kubedb.com/v1alpha2
kind: FerretDB
metadata:
name: builtin-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/builtin
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.18.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
16 changes: 16 additions & 0 deletions docs/examples/ferretdb/reconfigure-tls/ferretdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: kubedb.com/v1alpha2
kind: FerretDB
metadata:
name: ferretdb
namespace: demo
spec:
version: "1.18.0"
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
backend:
externallyManaged: false
replicas: 2
16 changes: 16 additions & 0 deletions docs/examples/ferretdb/reconfigure-tls/frops-add-tls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: FerretDBOpsRequest
metadata:
name: frops-add-tls
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: ferretdb
tls:
issuerRef:
name: ferretdb-ca-issuer
kind: Issuer
apiGroup: "cert-manager.io"
timeout: 5m
apply: IfReady
14 changes: 14 additions & 0 deletions docs/examples/ferretdb/reconfigure-tls/frops-change-issuer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: FerretDBOpsRequest
metadata:
name: frops-change-issuer
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: ferretdb
tls:
issuerRef:
name: fr-new-issuer
kind: Issuer
apiGroup: "cert-manager.io"
11 changes: 11 additions & 0 deletions docs/examples/ferretdb/reconfigure-tls/frops-remove.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: FerretDBOpsRequest
metadata:
name: frops-remove
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: ferretdb
tls:
remove: true
11 changes: 11 additions & 0 deletions docs/examples/ferretdb/reconfigure-tls/frops-rotate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: FerretDBOpsRequest
metadata:
name: frops-rotate
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: ferretdb
tls:
rotateCertificates: true
8 changes: 8 additions & 0 deletions docs/examples/ferretdb/reconfigure-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
8 changes: 8 additions & 0 deletions docs/examples/ferretdb/reconfigure-tls/new-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: fr-new-issuer
namespace: demo
spec:
ca:
secretName: ferretdb-new-ca
17 changes: 17 additions & 0 deletions docs/examples/ferretdb/restart/ferretdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: kubedb.com/v1alpha2
kind: FerretDB
metadata:
name: ferretdb
namespace: demo
spec:
version: "1.23.0"
replicas: 1
backend:
externallyManaged: false
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
deletionPolicy: WipeOut
11 changes: 11 additions & 0 deletions docs/examples/ferretdb/restart/ops.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: FerretDBOpsRequest
metadata:
name: restart-ferretdb
namespace: demo
spec:
type: Restart
databaseRef:
name: ferretdb
timeout: 3m
apply: Always
17 changes: 17 additions & 0 deletions docs/examples/ferretdb/scaling/fr-horizontal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: kubedb.com/v1alpha2
kind: FerretDB
metadata:
name: fr-horizontal
namespace: demo
spec:
version: "1.23.0"
replicas: 1
backend:
externallyManaged: false
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
deletionPolicy: WipeOut
20 changes: 20 additions & 0 deletions docs/examples/ferretdb/scaling/fr-vertical-ops.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: FerretDBOpsRequest
metadata:
name: ferretdb-scale-vertical
namespace: demo
spec:
type: VerticalScaling
databaseRef:
name: fr-vertical
verticalScaling:
node:
resources:
requests:
memory: "2Gi"
cpu: "1"
limits:
memory: "2Gi"
cpu: "1"
timeout: 5m
apply: IfReady
17 changes: 17 additions & 0 deletions docs/examples/ferretdb/scaling/fr-vertical.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: kubedb.com/v1alpha2
kind: FerretDB
metadata:
name: fr-vertical
namespace: demo
spec:
version: "1.23.0"
replicas: 1
backend:
externallyManaged: false
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
deletionPolicy: WipeOut
11 changes: 11 additions & 0 deletions docs/examples/ferretdb/scaling/frops-hscale-down-ops.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: FerretDBOpsRequest
metadata:
name: ferretdb-horizontal-scale-down
namespace: demo
spec:
type: HorizontalScaling
databaseRef:
name: fr-horizontal
horizontalScaling:
node: 2
11 changes: 11 additions & 0 deletions docs/examples/ferretdb/scaling/frops-hscale-up-ops.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: FerretDBOpsRequest
metadata:
name: ferretdb-horizontal-scale-up
namespace: demo
spec:
type: HorizontalScaling
databaseRef:
name: fr-horizontal
horizontalScaling:
node: 3
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
17 changes: 17 additions & 0 deletions docs/examples/ferretdb/update-version/fr-update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: kubedb.com/v1alpha2
kind: FerretDB
metadata:
name: fr-update
namespace: demo
spec:
version: "1.18.0"
replicas: 1
backend:
externallyManaged: false
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
deletionPolicy: WipeOut
11 changes: 11 additions & 0 deletions docs/examples/ferretdb/update-version/frops-update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: FerretDBOpsRequest
metadata:
name: ferretdb-version-update
namespace: demo
spec:
type: UpdateVersion
databaseRef:
name: fr-update
updateVersion:
targetVersion: 1.23.0
10 changes: 10 additions & 0 deletions docs/guides/ferretdb/autoscaler/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Autoscaling
menu:
docs_{{ .version }}:
identifier: fr-auto-scaling
name: Autoscaling
parent: fr-ferretdb-guides
weight: 46
menu_name: docs_{{ .version }}
---
Loading

0 comments on commit 42e8787

Please sign in to comment.