Deploy a LibreTranslate instance on a Kubernetes cluster using the Helm package manager. https://small-hack.github.io/libretranslate-helm-chart/
Find a file
small-hack-renovate[bot] 3fa98abe0e
chore(deps): update renovatebot/github-action action to v43.0.19 (#50)
Co-authored-by: small-hack-renovate[bot] <151926327+small-hack-renovate[bot]@users.noreply.github.com>
2025-10-27 04:28:02 +00:00
.github chore(deps): update renovatebot/github-action action to v43.0.19 (#50) 2025-10-27 04:28:02 +00:00
charts/libretranslate chore(deps): update libretranslate/libretranslate docker tag to v1.7.3 (#48) 2025-10-24 10:03:05 +02:00
scripts Features: add renovate, use default api key, add docs, allow existing PVC, and more (#7) 2024-11-17 15:18:43 +01:00
FUNDING.yml Drafting the necessary work to get the helm chart released to github pages 2023-12-15 14:47:34 -05:00
ISSUE_TEMPLATE.md Drafting the necessary work to get the helm chart released to github pages 2023-12-15 14:47:34 -05:00
LICENSE Initial commit 2023-12-14 22:16:55 -05:00
README.md Update README.md - fix link to upstream chart 2025-04-05 12:02:29 +02:00
renovate.json Update renovate.json - ignore tests for gha merges 2024-12-15 16:00:34 +01:00

LibreTranslate Helm Chart

This Helm chart deploys a LibreTranslate instance on a Kubernetes cluster using the Helm package manager. This is a fork of libretranslate/helm with some quality of life updates.

Prerequisites

  • Kubernetes 1.30+
  • Helm 3.16+

Updates from the forked repo include

  • using an existing Persistent Volume Claim
    • we now use persistence.db.existingClaim and persistence.models.existingClaim instead of relying on the ReadWriteMany check
  • set a default api key
    • using an existing Kubernetes Secret for a default API key
  • add automatic release notes in the GitHub Releases
  • use exact appVersion for the current version of the LibreTranslate docker image
  • renovateBot is used to keep the dependencies of everything in this repo up to date

We will try to submit all of these changes upstream if the repo becomes maintained again.

Setup helm chart repository

helm repo add libretranslate https://small-hack.github.io/libretranslate-elm-chart/
helm repo update
helm search repo libretranslate

Installing the Chart

To install the chart with the release name libretranslate:

helm install libretranslate libretranslate/libretranslate --namespace libretranslate --create-namespace

This command deploys LibreTranslate on the Kubernetes cluster with the default configuration. The values.yaml file lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the libretranslate deployment:

helm uninstall libretranslate
kubectl delete namespace libretranslate

These commands remove all the Kubernetes components associated with the chart and deletes the release.

Configuration

See values.yaml for the full list of parameters that can be configured. You can specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

helm install libretranslate libretranslate/libretranslate --namespace libretranslate --create-namespace --set service.port=8080

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

helm install libretranslate libretranslate/libretranslate --namespace libretranslate --create-namespace -f values.yaml

Upgrade

Run the following command to upgrade your LibreTranslate installation. This command will use the Helm chart, apply the custom values from values.yaml, and deploy the upgrade to the libretranslate namespace:

helm upgrade --install libretranslate libretranslate/libretranslate --namespace libretranslate -f values.yaml

Tip: You can use the default values.yaml

References