dify-enterprise

by joaquinito2051

Helm chartv3.9.8App 1.13.3

Release https://langgenius.github.io/dify-helm/

About this chart

Dify Enterprise

This chart installs Dify Enterprise and its supporting services.

Install

helm dependency build charts/dify
helm upgrade --install dify charts/dify --namespace dify --create-namespace -f values.yaml

The default values expect external PostgreSQL and Redis services. Set all placeholder credentials and domains before installing.

OpenShift

OpenShift support is disabled by default. Enable the runtime profile with:

global:
  openshift:
    enabled: true

The profile creates Routes for non-empty global.*Domain values and grants only dedicated workload ServiceAccounts access to built-in SCCs:

WorkloadSCC
sandboxprivileged
unstructurednonroot-v2
plugin connectornonroot-v2
plugin builder and runneranyuid

The SSRF proxy runs with the namespace's default restricted-v2 SCC and does not require a chart-managed SCC binding. No elevated SCC is granted to the namespace default ServiceAccount. Existing ServiceAccounts can be supplied with:

  • sandbox.serviceAccountName
  • ssrfProxy.serviceAccountName
  • unstructured.serviceAccountName
  • plugin_connector.workloadServiceAccountName

Each service inherits global.openshift.enabled. To manage one workload's SCC binding outside the chart, set its openshift.sccBinding value to false. ssrfProxy.serviceAccountName selects an existing ServiceAccount but does not create it or grant it an SCC.

The sandbox binds its dedicated ServiceAccount to the built-in privileged SCC because its code runner requires SYS_CHROOT. The container is not privileged and requests only SYS_CHROOT in addition to its default capabilities.

Routes are controlled by global.openshift.routes. Duplicate hosts are rendered once. Edge termination is the default; passthrough and re-encrypt target the gateway's HTTPS port.

Certified package and CRDs

The Red Hat certified package is named dify-enterprise and does not contain the DifyPlugin CRD. Install the standalone CRD chart first:

helm upgrade --install dify-crds dify-enterprise-crds-VERSION.tgz
helm upgrade --install dify dify-enterprise-VERSION.tgz --namespace dify --create-namespace

Uninstalling the CRD chart deletes the CRD and all DifyPlugin resources.

Verify

helm lint charts/dify
scripts/verify-openshift-chart.sh
helm test dify --namespace dify

Deploy dify-enterprise with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dify-enterprise on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdify-enterprise is pinned at v3.9.8 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply