Professional Documents
Culture Documents
If you setted `--api-keys true` to use the api keys in the StatefulSet, you can
manage them with the following commands:
# this will add an api key with a limit of 120 requests per minute
kubectl exec -it {{ include "libretranslate.fullname" . }}-0 -c {{ include
"libretranslate.fullname" . }} -- /bin/bash -c "source ./venv/bin/activate &&
ltmanage keys add --key req-limit-120 120"
*** Be aware that the api keys are stored in a sqlite database in the pod. If you
scale the pod to multiple replicas, the api keys will not be synced between the
pods. You can use a shared storage to sync the api keys between the pods. For
example, you can use a NFS storage class with a ReadWriteMany access mode to store
the api keys in a shared perspective. ***
```