AI Charts is a collection of Helm Charts for installing and managing mainstream AI applications on Kubernetes.
Some code was referenced from https://github.com/douban/charts/blob/master/charts/dify
Dify is an LLM application development platform that supports the entire process from creating prototypes to deployment.
- Add the Helm repository:
helm repo add ai-charts https://magicsong.github.io/ai-charts/
helm repo update
- Create a custom
values.yaml
file:
global:
host: "mydify.example.com"
enableTLS: false
image:
# Set to the latest version of Dify
# Check versions here: https://github.com/langgenius/dify/releases
tag: "1.0.1"
extraBackendEnvs:
- name: SECRET_KEY
value: "please-generate-your-own-key"
- name: LOG_LEVEL
value: "INFO"
- name: VECTOR_STORE
value: "milvus"
ingress:
enabled: true
className: "nginx"
- Install the chart:
helm install dify ai-charts/dify -f values.yaml
- Required - Run database migrations after installation or the instance won't work:
# Run migrations
kubectl exec -it <dify-pod-name> -- flask db upgrade
Modify global.image.tag
in your values.yaml
to the desired version, then run:
helm upgrade dify ai-charts/dify -f values.yaml
Required - Run database migrations after the upgrade:
kubectl exec -it <dify-pod-name> -- flask db upgrade
Pull requests and issues are welcome to help improve this project.
This project is licensed under the Apache License 2.0.