Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draft: feat: add MEILISEARCH_STORAGE_SIZE configuration #1196

Draft
wants to merge 1 commit into
base: release
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,15 @@ Meilisearch
- ``MEILISEARCH_MASTER_KEY`` (default: ``"{{ 24|random_string }}"``)
- ``MEILISEARCH_API_KEY_UID`` (default: ``"{{ 4|uuid }}"``): UID used to sign the API key.
- ``MEILISEARCH_API_KEY`` (default: ``"{{ MEILISEARCH_MASTER_KEY|uid_master_hash(MEILISEARCH_API_KEY_UID) }}"``)
- ``MEILISEARCH_STORAGE_SIZE`` (default: ``"5Gi"``): amount of persistent storage allocated.

To reset the Meilisearch API key, make sure to unset both the API key and it's UID:

tutor config save --unset MEILISEARCH_API_KEY_UID MEILISEARCH_API_KEY

.. note::
Tutor does not support changing the storage size after it has been deployed. You'll have to manually resize the `pvc/meilisearch` using `kubectl`. Also note that it's not possible to reduce a `PVC` size, it must be deleted and recreated in such cases.

MongoDB
*******

Expand Down
1 change: 1 addition & 0 deletions tutor/templates/config/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ LOCAL_PROJECT_NAME: "{{ TUTOR_APP }}_local"
MEILISEARCH_URL: "http://meilisearch:7700"
MEILISEARCH_PUBLIC_URL: "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://meilisearch.{{ LMS_HOST }}"
MEILISEARCH_INDEX_PREFIX: "tutor_"
MEILISEARCH_STORAGE_SIZE: "5Gi"
MONGODB_AUTH_MECHANISM: ""
MONGODB_AUTH_SOURCE: "admin"
MONGODB_HOST: "mongodb"
Expand Down
2 changes: 1 addition & 1 deletion tutor/templates/k8s/volumes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
storage: {{ MEILISEARCH_STORAGE_SIZE }}
{% endif %}
{% if RUN_MONGODB %}
---
Expand Down