This project provides a complete Kubernetes deployment for Dify, an open-source LLMOps platform. It includes all necessary components such as PostgreSQL, Redis, Weaviate, and Dify application modules like API, Web UI, Workers, and Plugin Daemon.
.
βββ api
β βββ service.yaml
β βββ statefulset.yaml
βββ configmap
β βββ difyai-configmap.yaml
β βββ genconfig.sh
β βββ nginx-configmap-0.yaml
β βββ nginx-configmap-1.yaml
β βββ nginx-configmap-2.yaml
β βββ nginx-configmap-3.yaml
β βββ nginx-configmap-4.yaml
β βββ nginx-configmap-5.yaml
β βββ sandbox-configmap-0.yaml
β βββ sandbox-configmap-1.yaml
β βββ ssrf-proxy-configmap-0.yaml
β βββ ssrf-proxy-configmap-1.yaml
βββ LICENSE
βββ nginx
β βββ deployment.yaml
β βββ service.yaml
βββ persistentvolumeclaim
β βββ difyai.yaml
βββ plugin-daemon
β βββ deployment.yaml
β βββ service.yaml
βββ postgresql
β βββ README.md
β βββ service.yaml
β βββ statefulset.yaml
βββ README.md
βββ redis
β βββ service.yaml
β βββ statefulset.yaml
βββ sandbox
β βββ deployment.yaml
β βββ service.yaml
βββ ssrf-proxy
β βββ deployment.yaml
β βββ service.yaml
βββ weaviate
β βββ service.yaml
β βββ statefulset.yaml
βββ web
β βββ deployment.yaml
β βββ service.yaml
βββ worker
βββ service.yaml
βββ statefulset.yaml
git clone https://github.com/Zhoneym/DifyAI-Kubernetes.git
cd DifyAI-Kubernetes
kubectl create namespace difyai
kubectl create -f persistentvolumeclaim/difyai.yaml
kubectl create -f configmap/difyai-configmap.yaml
kubectl create -f configmap/nginx-configmap-0.yaml -f configmap/nginx-configmap-1.yaml -f configmap/nginx-configmap-2.yaml -f configmap/nginx-configmap-3.yaml -f configmap/nginx-configmap-4.yaml -f configmap/nginx-configmap-5.yaml
kubectl create -f configmap/sandbox-configmap-0.yaml -f configmap/sandbox-configmap-1.yaml
kubectl create -f configmap/ssrf-proxy-configmap-0.yaml -f configmap/ssrf-proxy-configmap-1.yaml
PostgreSQL
kubectl create -f postgresql/statefulset.yaml -f postgresql/service.yaml
β οΈ Note: You must initialize the database before proceeding with the deployment.
Redis
kubectl create -f redis/statefulset.yaml -f redis/service.yaml
Weaviate
kubectl create -f weaviate/statefulset.yaml -f weaviate/service.yaml
Plugin Daemon
kubectl create -f plugin-daemon/deployment.yaml -f plugin-daemon/service.yaml
Sandbox
kubectl create -f sandbox/deployment.yaml -f sandbox/service.yaml
SSRF Proxy
kubectl create -f ssrf-proxy/deployment.yaml -f ssrf-proxy/service.yaml
API
kubectl create -f api/statefulset.yaml -f api/service.yaml
Web UI
kubectl create -f web/deployment.yaml -f web/service.yaml
Worker
kubectl create -f worker/statefulset.yaml -f worker/service.yaml
Nginx
kubectl create -f nginx/deployment.yaml -f nginx/service.yaml
configmap/configmap/genconfig.sh to generate the ConfigMap from a .env fileThis project is licensed under the GPL License.
20 commits
Shell
100.0%
This project provides a complete Kubernetes deployment for Dify, an open-source LLMOps platform. It includes all necessary components such as PostgreSQL, Redis, Weaviate, and Dify application modules like API, Web UI, Workers, and Plugin Daemon.
.
βββ api
β βββ service.yaml
β βββ statefulset.yaml
βββ configmap
β βββ difyai-configmap.yaml
β βββ genconfig.sh
β βββ nginx-configmap-0.yaml
β βββ nginx-configmap-1.yaml
β βββ nginx-configmap-2.yaml
β βββ nginx-configmap-3.yaml
β βββ nginx-configmap-4.yaml
β βββ nginx-configmap-5.yaml
β βββ sandbox-configmap-0.yaml
β βββ sandbox-configmap-1.yaml
β βββ ssrf-proxy-configmap-0.yaml
β βββ ssrf-proxy-configmap-1.yaml
βββ LICENSE
βββ nginx
β βββ deployment.yaml
β βββ service.yaml
βββ persistentvolumeclaim
β βββ difyai.yaml
βββ plugin-daemon
β βββ deployment.yaml
β βββ service.yaml
βββ postgresql
β βββ README.md
β βββ service.yaml
β βββ statefulset.yaml
βββ README.md
βββ redis
β βββ service.yaml
β βββ statefulset.yaml
βββ sandbox
β βββ deployment.yaml
β βββ service.yaml
βββ ssrf-proxy
β βββ deployment.yaml
β βββ service.yaml
βββ weaviate
β βββ service.yaml
β βββ statefulset.yaml
βββ web
β βββ deployment.yaml
β βββ service.yaml
βββ worker
βββ service.yaml
βββ statefulset.yaml
git clone https://github.com/Zhoneym/DifyAI-Kubernetes.git
cd DifyAI-Kubernetes
kubectl create namespace difyai
kubectl create -f persistentvolumeclaim/difyai.yaml
kubectl create -f configmap/difyai-configmap.yaml
kubectl create -f configmap/nginx-configmap-0.yaml -f configmap/nginx-configmap-1.yaml -f configmap/nginx-configmap-2.yaml -f configmap/nginx-configmap-3.yaml -f configmap/nginx-configmap-4.yaml -f configmap/nginx-configmap-5.yaml
kubectl create -f configmap/sandbox-configmap-0.yaml -f configmap/sandbox-configmap-1.yaml
kubectl create -f configmap/ssrf-proxy-configmap-0.yaml -f configmap/ssrf-proxy-configmap-1.yaml
PostgreSQL
kubectl create -f postgresql/statefulset.yaml -f postgresql/service.yaml
β οΈ Note: You must initialize the database before proceeding with the deployment.
Redis
kubectl create -f redis/statefulset.yaml -f redis/service.yaml
Weaviate
kubectl create -f weaviate/statefulset.yaml -f weaviate/service.yaml
Plugin Daemon
kubectl create -f plugin-daemon/deployment.yaml -f plugin-daemon/service.yaml
Sandbox
kubectl create -f sandbox/deployment.yaml -f sandbox/service.yaml
SSRF Proxy
kubectl create -f ssrf-proxy/deployment.yaml -f ssrf-proxy/service.yaml
API
kubectl create -f api/statefulset.yaml -f api/service.yaml
Web UI
kubectl create -f web/deployment.yaml -f web/service.yaml
Worker
kubectl create -f worker/statefulset.yaml -f worker/service.yaml
Nginx
kubectl create -f nginx/deployment.yaml -f nginx/service.yaml
configmap/configmap/genconfig.sh to generate the ConfigMap from a .env fileThis project is licensed under the GPL License.
20 commits
Shell
100.0%