Skip to content

Commit

Permalink
resolved
Browse files Browse the repository at this point in the history
Signed-off-by: sayedppqq <[email protected]>
  • Loading branch information
sayedppqq committed May 8, 2024
1 parent 918da9a commit fffaa8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
8 changes: 3 additions & 5 deletions docs/guides/ferretdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,19 @@ aliases:
# Overview

FerretDB is an open-source proxy that translates MongoDB wire protocol queries to SQL, with PostgreSQL or SQLite as the database engine. FerretDB was founded to become the true open-source alternative to MongoDB, making it the go-to choice for most MongoDB users looking for an open-source alternative to MongoDB.
FerretDB is an open-source proxy that translates MongoDB wire protocol queries to SQL, with PostgreSQL or SQLite as the database engine. FerretDB was founded to become the true open-source alternative to MongoDB. It uses the same commands, drivers, and tools as MongoDB.

## Supported FerretDB Features

| Features | Availability |
|---------------------------------------|:------------:|
| Internally manageable Backend Engine | &#10003; |
| Externally manageable Backend Engine | &#10003; |
| Authentication & Authorization | &#10003; |
| TLS Support | &#10003; |
| Monitoring using Prometheus | &#10003; |
| Builtin Prometheus Discovery | &#10003; |
| Using Prometheus operator | &#10003; |
| Using Prometheus operator | &#10003; |
| Externally manageable Auth Secret | &#10003; |
| Externally manageable Backend Engine | &#10003; |
| Internally manageable Backend Engine | &#10003; |
| Reconfigurable Health Checker | &#10003; |
| Persistent volume | &#10003; |

Expand Down
10 changes: 5 additions & 5 deletions docs/guides/ferretdb/quickstart/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ NAME VERSION DB_IMAGE DEPRECATED AGE
## Create a FerretDB database

FerretDB use Postgres as it's main backend. Currently, KubeDB supports Postgres backend as database engine for FerretDB. Users can use its own Postgres or let KubeDB create and manage backend engine with KubeDB native Postgres.
KubeDB implements a `FerretDB` CRD to define the specification of a FerretDB database.
KubeDB implements a `FerretDB` CR to define the specification of a FerretDB database.

### Create a FerretDB database with KubeDB managed Postgres

Expand Down Expand Up @@ -91,10 +91,10 @@ ferretdb.kubedb.com/ferret created

Here,

- `spec.version` is name of the FerretDBVersion crd where the docker images are specified. In this tutorial, a FerretDB 1.18.0 database is created.
- `spec.version` is name of the FerretDBVersion CR where the docker images are specified. In this tutorial, a FerretDB 1.18.0 database is created.
- `spec.storageType` specifies the type of storage that will be used for FerretDB database. It can be `Durable` or `Ephemeral`. Default value of this field is `Durable`. If `Ephemeral` is used then KubeDB will create FerretDB database using `EmptyDir` volume. In this case, you don't have to specify `spec.storage` field. This is useful for testing purposes.
- `spec.storage` specifies PVC spec that will be dynamically allocated to store data for this database. This storage spec will be passed to the StatefulSet created by KubeDB operator to run database pods. You can specify any StorageClass available in your cluster with appropriate resource requests.
- `spec.terminationPolicy` gives flexibility whether to `nullify`(reject) the delete operation of `FerretDB` crd or which resources KubeDB should keep or delete when you delete `FerretDB` crd. If admission webhook is enabled, It prevents users from deleting the database as long as the `spec.terminationPolicy` is set to `DoNotTerminate`. Learn details of all `TerminationPolicy` [here](/docs/guides/mongodb/concepts/mongodb.md#specterminationpolicy)
- `spec.terminationPolicy` gives flexibility whether to `nullify`(reject) the delete operation of `FerretDB` CR or which resources KubeDB should keep or delete when you delete `FerretDB` CR. If admission webhook is enabled, It prevents users from deleting the database as long as the `spec.terminationPolicy` is set to `DoNotTerminate`. Learn details of all `TerminationPolicy` [here](/docs/guides/mongodb/concepts/mongodb.md#specterminationpolicy)
- `spec.backend` denotes the backend database information for FerretDB instance.
- `spec.replicas` denotes the number of replicas in the replica-set.

Expand Down Expand Up @@ -580,15 +580,15 @@ status:

## Cleaning up

If you don't set the terminationPolicy, then the kubeDB set the TerminationPolicy to `WipeOut` by-default.
If you don't set the terminationPolicy, then the kubeDB set the TerminationPolicy to `WipeOut` by-default for `FerretDB`.

### WipeOut
If you want to cleanup each of the Kubernetes resources created by this tutorial, run:

```bash
$ kubectl delete -n demo fr/ferret
$ kubectl get fr,sts,svc,secret,pvc -n demo
$ kubectl get fr,sts,svc,secret,pvc,petset -n demo
NAME TYPE DATA AGE
$ kubectl delete ns demo
Expand Down

0 comments on commit fffaa8b

Please sign in to comment.