Requirements

  • Release Log: https://langgenius.github.io/dify-helm
  • Kubernetes 1.24+
  • Helm 3.14+
  • Warning: If you are using a restricted environment (like OpenShift), make sure pods are allowed to run as root.

Quick Start

Get Helm Repository Info

helm repo add dify https://langgenius.github.io/dify-helm
helm repo update
See helm repo for command documentation.

Check Available Versions

  • If you want to check the versions between the community and the enterprise, you can use the following command.
  • The APP VERSION is the version of the Dify community, and the CHART VERSION is the version of the Dify enterprise.
helm repo update
helm search repo dify/dify --versions
See helm search repo for command documentation.

Installation or Upgrade

For the first time installation or upgrade Dify, you can use the following command:
Before upgrade, please make sure to backup your database. If failed to upgrade, you can rollback version and restore the database quickly.
helm repo update
helm search repo dify/dify
helm upgrade -i dify -f values.yaml dify/dify
# If you want to upgrade to target version, you can use the following command:
# helm upgrade -i dify -f values.yaml dify/dify --version x.x.x
See helm upgrade for command documentation.

Advanced Usage

Uninstallation

To uninstall Dify, you can use the following command:
  • If you want to re-install Dify, please make sure to clean up the database of dify_plugin_daemon first.
  • For more details, please refer to the Postgresql Database.
helm uninstall dify
See helm uninstall for command documentation.

Display Helm Chart Values

For more information about the Helm chart values, you can use the following command:
helm show values dify/dify
See helm show values for command documentation.

Use Helm Template to Generate Kubernetes YAML

You can use the following command to generate the Kubernetes YAML files:
helm template dify -f values.yaml dify/dify > dify-k8s-template.yaml
See helm template for command documentation.

Download the Helm Chart locally

You can use the following command to download the Helm chart:
helm pull dify/dify
# helm pull dify/dify --version x.x.x