Skip to content
shell
helm repo add dify https://langgenius.github.io/dify-helm/
helm repo update
shell
helm show values dify/dify > helm-dify-values.yaml

安装

shell
# 创建命名空间
kubectl create namespace dify
# 安装 Dify
helm upgrade --install dify dify/dify -n dify -f helm-dify-values.yaml

卸载

shell
helm uninstall dify --namespace=dify

解决 psycopg2.errors.DuplicateTable: relation "task_id_sequence" already exists

https://github.com/langgenius/dify/issues/19910

先到pg数据库执行

sql
DROP SEQUENCE IF EXISTS task_id_sequence;
DROP SEQUENCE IF EXISTS taskset_id_sequence;
drop TABLE celery_taskmeta;
drop TABLE celery_tasksetmeta;

进入容器重新跑初始化脚本

shell
kubectl exec -it -n dify dify-api-cbd7c9db4-9dvjj -- bash
flask db upgrade

文章来源于自己总结和网络转载,内容如有任何问题,请大佬斧正!联系我