feat(dify): dify配置优化

这个提交包含在:
2025-06-06 17:46:10 +08:00
未验证
父节点 145e421b78
当前提交 1b1bceb55b
修改 4 个文件,包含 45 行新增16 行删除
+12 -14
查看文件
@@ -21,8 +21,7 @@ spec:
sandbox: sandbox:
tag: "0.2.12" tag: "0.2.12"
pluginDaemon: pluginDaemon:
tag: "0.1.1-local" tag: "0.1.1-local"
api: api:
persistence: persistence:
persistentVolumeClaim: persistentVolumeClaim:
@@ -32,18 +31,10 @@ spec:
extraEnv: extraEnv:
- name: LANG - name: LANG
value: "C.UTF-8" value: "C.UTF-8"
- name: VECTOR_STORE - name: UPLOAD_FILE_SIZE_LIMIT
value: "pgvector" value: "1024"
- name: PGVECTOR_HOST - name: UPLOAD_FILE_BATCH_LIMIT
value: "cnpg17-cluster-hk-rw.infra-data" value: "10"
- name: PGVECTOR_PORT
value: "5432"
- name: PGVECTOR_DATABASE
value: "dify"
- name: DB_USERNAME
value: "app"
- name: DB_PASSWORD
value: "QrmOnigueiiKWDxS5HqS8h765fUZoV1fj2WFkHpqZOPnKAGcM9paiXC1VzGUA3PD"
pluginDaemon: pluginDaemon:
persistence: persistence:
persistentVolumeClaim: persistentVolumeClaim:
@@ -74,3 +65,10 @@ spec:
username: "" username: ""
password: ribiPwYQNU6GWxCYR0Nj password: ribiPwYQNU6GWxCYR0Nj
useSSL: false useSSL: false
externalPgvector:
enabled: true
username: app
password: QrmOnigueiiKWDxS5HqS8h765fUZoV1fj2WFkHpqZOPnKAGcM9paiXC1VzGUA3PD
address: cnpg17-cluster-hk-rw.infra-data
port: 5432
dbName: dify
+31
查看文件
@@ -0,0 +1,31 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dify-static
namespace: apps
annotations:
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/proxy-buffering: "on"
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_cache cache;
proxy_cache_valid 200 302 7d;
proxy_cache_valid 404 10m;
proxy_cache_valid any 1h;
proxy_cache_use_stale error timeout updating http_404 http_500 http_502 http_503 http_504;
proxy_cache_bypass $http_x_purge;
proxy_ignore_headers Cache-Control;
add_header X-Cache-Status $upstream_cache_status;
spec:
ingressClassName: nginx
rules:
- host: dify.dev.cm
http:
paths:
- path: /(.*\.(css|js|png|jpg|jpeg|gif|svg|webp|ico|woff|woff2|ttf|eot)|avatars/[^/]+)$
pathType: ImplementationSpecific
backend:
service:
name: dify-web
port:
number: 3000
@@ -3,7 +3,6 @@ kind: Ingress
metadata: metadata:
name: dify-web name: dify-web
namespace: apps namespace: apps
annotations:
spec: spec:
ingressClassName: nginx ingressClassName: nginx
rules: rules:
@@ -26,6 +25,7 @@ metadata:
namespace: apps namespace: apps
annotations: annotations:
nginx.ingress.kubernetes.io/use-regex: "true" nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/proxy-body-size: "1024m"
spec: spec:
ingressClassName: nginx ingressClassName: nginx
rules: rules:
+1 -1
查看文件
@@ -7,7 +7,7 @@ spec:
repo: https://emberstack.github.io/helm-charts repo: https://emberstack.github.io/helm-charts
chart: reflector chart: reflector
targetNamespace: infra-devops targetNamespace: infra-devops
version: 9.1.5 version: 9.1.7
valuesContent: |- valuesContent: |-
affinity: affinity:
nodeAffinity: nodeAffinity: