-
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.
* 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
1 parent
7786905
commit 42e8787
Showing
66 changed files
with
5,345 additions
and
12 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
docs/examples/ferretdb/autoscaling/compute/autoscaler.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,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
28
docs/examples/ferretdb/autoscaling/compute/ferretdb-autoscale.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/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 |
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,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 |
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: 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 |
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,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 |
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,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
14
docs/examples/ferretdb/reconfigure-tls/frops-change-issuer.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: 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" |
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,11 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: FerretDBOpsRequest | ||
metadata: | ||
name: frops-remove | ||
namespace: demo | ||
spec: | ||
type: ReconfigureTLS | ||
databaseRef: | ||
name: ferretdb | ||
tls: | ||
remove: true |
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,11 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: FerretDBOpsRequest | ||
metadata: | ||
name: frops-rotate | ||
namespace: demo | ||
spec: | ||
type: ReconfigureTLS | ||
databaseRef: | ||
name: ferretdb | ||
tls: | ||
rotateCertificates: true |
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,8 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: ferretdb-ca-issuer | ||
namespace: demo | ||
spec: | ||
ca: | ||
secretName: ferretdb-ca |
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,8 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: fr-new-issuer | ||
namespace: demo | ||
spec: | ||
ca: | ||
secretName: ferretdb-new-ca |
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/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 |
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,11 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: FerretDBOpsRequest | ||
metadata: | ||
name: restart-ferretdb | ||
namespace: demo | ||
spec: | ||
type: Restart | ||
databaseRef: | ||
name: ferretdb | ||
timeout: 3m | ||
apply: Always |
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/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 |
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,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 |
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/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 |
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,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 |
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,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 |
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,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 |
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,8 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: ferretdb-ca-issuer | ||
namespace: demo | ||
spec: | ||
ca: | ||
secretName: ferretdb-ca |
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/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 |
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,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 |
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: fr-auto-scaling | ||
name: Autoscaling | ||
parent: fr-ferretdb-guides | ||
weight: 46 | ||
menu_name: docs_{{ .version }} | ||
--- |
Oops, something went wrong.