Skip to main content

Requirements

This is the recommended configuration for testing environment deployment or staging environment deployment. You can adjust the configuration according to your needs.
  • Kubernetes Cluster
    • 1 Worker Node: 4 CPU, 16 GB RAM
  • Container Registry (Plugins)
    • AWS ECR (with AK/SK or IRSA) / Azure ACR / Aliyun ACR (with AK/SK) / Tencent TCR (with AK/SK) / Dockerhub / Google Artifact Registry
  • Persistent Storage
    • S3 / AWS S3 (with AK/SK or IRSA) / Azure Blob / Aliyun OSS (with AK/SK) / Tencent COS (with AK/SK) / Google GCS
    • 100 GB Storage
  • Postgres Database
    • Version 14+
    • 4 CPU, 8 GB RAM
    • At least 512G SSD
  • Redis Database
    • Version 6+
    • 1 GB RAM
  • Vector Database VM - Qdrant Single Node
    • 1 VM
    • 4 CPU, 8 GB RAM
    • 100 GB Storage

Deployment

1. Get Helm Repository Info

For more information, please refer to Dify Helm Chart.

2. Save Helm Chart Values

  • Save Helm chart values to a file named values.yaml.
  • Update the values.yaml file with your configuration.
  • Please replace the #REPLACE_ME# placeholder with your actual values.
  • For a fresh install, generate a separate value for each <...> placeholder. Use openssl rand -base64 42 for most keys and openssl rand -base64 32 for enterprise.passwordEncryptionKey, which requires a Base64-encoded 32-byte key.
  • When upgrading an existing installation, keep the current enterprise.passwordEncryptionKey. Changing it prevents Dify from reading the password policy encrypted with the old key.
  • global.appSecretKey is used by the Dify API and enterprise.appSecretKey by the Enterprise Dashboard. Generate them independently; the two values must be different.

3. Configure Container Registry

4. Configure Persistence Storage

5. Configure External Database

6. Configure External Redis

7. Configure External Qdrant

8. Configure Ingress Controller

9. Install Dify Helm Chart

10. Verify Installation Results

Advanced Configuration

1. Domain and SSL Certificate

2. Email Service Provider

3. Performance Tuning