Skip to content
This repository has been archived by the owner on Jul 9, 2019. It is now read-only.

Commit

Permalink
Merge pull request #26 from Ultimaker/more-docs
Browse files Browse the repository at this point in the history
More docs
  • Loading branch information
DanielSchiavini authored Nov 30, 2018
2 parents b12a80e + caac401 commit 4874fd8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,26 @@ Then deploy it to the cluster like any other object:
kubectl apply -f mongo.yaml
```

### Configuration options
The following options are available to use in the `spec` section of the `yaml` configuration file. Keys with a `*` in front are required.

| Config key | Default | Description |
| --- | --- | --- |
| * `mongodb.mongo_name` | - | The name of the Mongo deployment. |
| `mongodb.storage_name` | mongo-storage | The name of the persistent volumes that Kubernetes will create and mount. |
| `mongodb.storage_size` | 30Gi | The size of the persistent volumes. |
| `mongodb.storage_data_path` | /data/db | The path on which the persistent volumes are mounted in the Mongo containers. |
| `mongodb.storage_class_name` | - | The name of the storage class to use to create the persistent values. If not passed it will use the Kubernetes cluster default storage class name. |
| `mongodb.cpu_limit` | 1 | The CPU limit of each container. |
| `mongodb.memory_limit` | 2Gi | The memory limit of each container. |
| `mongodb.wired_tiger_cache_size` | 0.25 | The wired tiger cache size. |
| `mongodb.replicas` | - | The amount of MongoDB replicas that should be available in the replica set. Must be an uneven positive integer and minimum 3. |
| * `backups.cron` | - | The cron on which to create a backup to cloud storage.
| * `backups.gcs.bucket` | - | The GCS bucket to upload the backup to. |
| `backups.gcs.prefix` | backups/ | The file name prefix for the backup file. |

> Please read https://docs.mongodb.com/manual/administration/production-notes/#allocate-sufficient-ram-and-cpu for details about why setting the WiredTiger cache size is important when you change the container memory limit from the default value.
## Testing locally
To run the tests in a local Kubernetes (MiniKube) cluster, we have created a simple test script.

Expand Down

0 comments on commit 4874fd8

Please sign in to comment.