feat(dify): 新增dify配置
这个提交包含在:
+42
-29
@@ -1,25 +1,57 @@
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChart
|
||||
metadata:
|
||||
name: halo
|
||||
name: dify
|
||||
namespace: apps
|
||||
spec:
|
||||
repo: https://borispolonsky.github.io/dify-helm
|
||||
chart: dify
|
||||
targetNamespace: apps
|
||||
version: 0.24.0
|
||||
version: 0.25.0
|
||||
valuesContent: |-
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: greenhk
|
||||
kubernetes.io/hostname: clawhka
|
||||
image:
|
||||
api:
|
||||
tag: "1.4.1"
|
||||
worker:
|
||||
tag: "1.4.1"
|
||||
web:
|
||||
tag: "1.4.1"
|
||||
sandbox:
|
||||
tag: "0.2.12"
|
||||
pluginDaemon:
|
||||
tag: "0.1.1-local"
|
||||
|
||||
api:
|
||||
persistence:
|
||||
enabled: true
|
||||
storageClass: local-path
|
||||
accessMode: ReadWriteMany
|
||||
size: 10Gi
|
||||
persistentVolumeClaim:
|
||||
storageClass: local-path
|
||||
accessModes: ReadWriteOnce
|
||||
size: 5Gi
|
||||
extraEnv:
|
||||
- name: LANG
|
||||
value: "C.UTF-8"
|
||||
- name: VECTOR_STORE
|
||||
value: "pgvector"
|
||||
- name: PGVECTOR_HOST
|
||||
value: "cnpg17-cluster-hk-rw.infra-data"
|
||||
- name: PGVECTOR_PORT
|
||||
value: "5432"
|
||||
- name: PGVECTOR_DATABASE
|
||||
value: "dify"
|
||||
- name: DB_USERNAME
|
||||
value: "app"
|
||||
- name: DB_PASSWORD
|
||||
value: "QrmOnigueiiKWDxS5HqS8h765fUZoV1fj2WFkHpqZOPnKAGcM9paiXC1VzGUA3PD"
|
||||
pluginDaemon:
|
||||
persistence:
|
||||
persistentVolumeClaim:
|
||||
storageClass: local-path
|
||||
accessModes: ReadWriteOnce
|
||||
size: 5Gi
|
||||
proxy:
|
||||
enabled: false
|
||||
postgresql:
|
||||
enabled: false
|
||||
redis:
|
||||
@@ -29,35 +61,16 @@ spec:
|
||||
externalPostgres:
|
||||
enabled: true
|
||||
username: app
|
||||
password: nyrHzh9WWlDZzvVw7bDFo74gKb9zsls0Sy7OwRTDWiRTNPQQQkW85taUFAoX2AIC
|
||||
address: cnpg-cluster-hk-rw.infra-data
|
||||
password: QrmOnigueiiKWDxS5HqS8h765fUZoV1fj2WFkHpqZOPnKAGcM9paiXC1VzGUA3PD
|
||||
address: cnpg17-cluster-hk-rw.infra-data
|
||||
port: 5432
|
||||
database:
|
||||
api: dify
|
||||
pluginDaemon: dify_plugin
|
||||
externalPgvector:
|
||||
enabled: false
|
||||
username: app
|
||||
password: nyrHzh9WWlDZzvVw7bDFo74gKb9zsls0Sy7OwRTDWiRTNPQQQkW85taUFAoX2AIC
|
||||
address: cnpg-cluster-hk-rw.infra-data
|
||||
port: 5432
|
||||
dbName: dify
|
||||
externalRedis:
|
||||
enabled: true
|
||||
host: redis.example
|
||||
host: redis-cluster-hk-master.infra-data
|
||||
port: 6379
|
||||
username: ""
|
||||
password: ribiPwYQNU6GWxCYR0Nj
|
||||
useSSL: false
|
||||
proxy:
|
||||
enable: false
|
||||
ingress:
|
||||
enabled: true
|
||||
className: nginx
|
||||
hosts:
|
||||
- host: dify.dev.cm
|
||||
paths:
|
||||
- path: /
|
||||
pathType: ImplementationSpecific
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: dify-web
|
||||
namespace: apps
|
||||
annotations:
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: dify.dev.cm
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: ImplementationSpecific
|
||||
backend:
|
||||
service:
|
||||
name: dify-web
|
||||
port:
|
||||
number: 3000
|
||||
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: dify-api
|
||||
namespace: apps
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: dify.dev.cm
|
||||
http:
|
||||
paths:
|
||||
- path: /(api|console/api|v1|files)
|
||||
pathType: ImplementationSpecific
|
||||
backend:
|
||||
service:
|
||||
name: dify-api
|
||||
port:
|
||||
number: 5001
|
||||
- path: /e/
|
||||
pathType: ImplementationSpecific
|
||||
backend:
|
||||
service:
|
||||
name: dify-plugin-daemon
|
||||
port:
|
||||
number: 5002
|
||||
在新议题中引用
屏蔽一个用户