-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvalues.yaml
More file actions
469 lines (455 loc) · 12.4 KB
/
values.yaml
File metadata and controls
469 lines (455 loc) · 12.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
# Default values for dify.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# volume and volumeMounts would be injected to api and worker
volumes: []
volumeMounts: []
nameOverride: ""
fullnameOverride: ""
global:
host: "chart-example.local"
# Change this is your ingress is exposed with port other than 443, 80, like 8080 for instance
port: ""
enableTLS: false
image:
tag: ""
edition: "SELF_HOSTED"
storageType: "s3"
# the following extra configs would be injected into:
# * frontend
# * api
# * worker
extraEnvs: []
# the following extra configs would be injected into:
# * api
# * worker
extraBackendEnvs:
# SECRET_KEY is a must, check https://docs.dify.ai/getting-started/install-self-hosted/environments#secret_key for detail
# Generate your own secure secret key, e.g. with: openssl rand -base64 42
- name: SECRET_KEY
value: "" # IMPORTANT: You must set your own secure value here
# use secretRef to protect your secret (recommended for production)
# - name: SECRET_KEY
# valueFrom:
# secretKeyRef:
# name: dify
# key: SECRET_KEY
# Plugin daemon related environment variables
- name: PLUGIN_DAEMON_URL
value: "http://{{ include \"dify.fullname\" . }}-plugin-daemon:5002"
- name: PLUGIN_DAEMON_KEY
value: "" # IMPORTANT: Generate a secure random string for production use
- name: PLUGIN_MAX_PACKAGE_SIZE
value: "52428800"
- name: PLUGIN_DIFY_INNER_API_KEY
value: "" # IMPORTANT: Generate a secure random string for production use
# Provide extra labels for all deployments and related pods of this chart
labels: {}
ingress:
enabled: false
className: ""
annotations:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
tlsSecretName: "dify-tls"
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
frontend:
replicaCount: 1
image:
repository: langgenius/dify-web
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
envs: []
imagePullSecrets: []
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
containerPort: 3000
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}
livenessProbe:
httpGet:
path: /apps
port: http
httpHeaders:
- name: accept-language
value: en
initialDelaySeconds: 3
timeoutSeconds: 5
periodSeconds: 30
successThreshold: 1
failureThreshold: 2
readinessProbe:
httpGet:
path: /apps
port: http
httpHeaders:
- name: accept-language
value: en
initialDelaySeconds: 3
timeoutSeconds: 5
periodSeconds: 30
successThreshold: 1
failureThreshold: 2
api:
replicaCount: 1
image:
repository: langgenius/dify-api
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
envs:
# sandbox
- name: CODE_MAX_NUMBER
value: "9223372036854775807"
- name: CODE_MIN_NUMBER
value: "-9223372036854775808"
- name: CODE_MAX_STRING_LENGTH
value: "80000"
- name: TEMPLATE_TRANSFORM_MAX_LENGTH
value: "80000"
- name: CODE_MAX_STRING_ARRAY_LENGTH
value: "30"
- name: CODE_MAX_OBJECT_ARRAY_LENGTH
value: "30"
- name: CODE_MAX_NUMBER_ARRAY_LENGTH
value: "1000"
imagePullSecrets: []
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
containerPort: 5001
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}
livenessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 30
timeoutSeconds: 5
periodSeconds: 30
successThreshold: 1
failureThreshold: 2
readinessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 10
timeoutSeconds: 5
periodSeconds: 5
successThreshold: 1
failureThreshold: 10
worker:
replicaCount: 1
image:
repository: langgenius/dify-api
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
imagePullSecrets: []
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}
# livenessprobe for worker, default no probe
livenessProbe: {}
readinessProbe: {}
# Plugin daemon service configuration
plugin_daemon:
replicaCount: 1
image:
repository: langgenius/dify-plugin-daemon
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "main-local"
envs:
- name: DB_DATABASE
value: "dify_plugin"
- name: SERVER_PORT
value: "5002"
- name: SERVER_KEY
value: "" # IMPORTANT: Use the same value as PLUGIN_DAEMON_KEY above
- name: MAX_PLUGIN_PACKAGE_SIZE
value: "52428800"
- name: PPROF_ENABLED
value: "false"
- name: DIFY_INNER_API_URL
value: "http://{{ include \"dify.fullname\" . }}-api-svc:80"
- name: DIFY_INNER_API_KEY
value: "" # IMPORTANT: Use the same value as PLUGIN_DIFY_INNER_API_KEY above
- name: PLUGIN_REMOTE_INSTALLING_HOST
value: "0.0.0.0"
- name: PLUGIN_REMOTE_INSTALLING_PORT
value: "5003"
- name: PLUGIN_WORKING_PATH
value: "/app/storage/cwd"
- name: FORCE_VERIFYING_SIGNATURE
value: "true"
imagePullSecrets: []
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
debugPort: 5003
containerPort: 5002
debugPort: 5003
# Plugin daemon persistence configuration
persistence:
enabled: true
size: 1Gi
storageClass: ""
accessMode: ReadWriteOnce
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}
# Health check probes
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 30
timeoutSeconds: 5
periodSeconds: 30
successThreshold: 1
failureThreshold: 2
readinessProbe:
tcpSocket:
port: http
initialDelaySeconds: 10
timeoutSeconds: 5
periodSeconds: 5
successThreshold: 1
failureThreshold: 10
sandbox:
replicaCount: 1
# IMPORTANT: Change this to a secure value to prevent abuse
apiKey: ""
# prefer to use secret
apiKeySecret: ""
image:
repository: langgenius/dify-sandbox
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "0.2.0"
config:
# python_requirements: |
# numpy==1.20.3
# scipy==1.6.3
python_requirements: ""
envs:
- name: GIN_MODE
value: "release"
- name: WORKER_TIMEOUT
value: "15"
imagePullSecrets: []
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
containerPort: 8194
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}
readinessProbe:
tcpSocket:
port: http
initialDelaySeconds: 1
timeoutSeconds: 5
periodSeconds: 5
successThreshold: 1
failureThreshold: 10
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 30
timeoutSeconds: 5
periodSeconds: 30
successThreshold: 1
failureThreshold: 2
##### dependencies #####
redis:
# using embedded redis
# connection info would be set automatically
# best to use external redis if you have one
embedded: false
# embedded: false
# url: "redis://127.0.0.1:6379/0"
# urlSecret: ""
# urlSecretKey: "CACHE_URL"
# please consult to chart manual if you want to change it.
# https://artifacthub.io/packages/helm/bitnami/redis
architecture: standalone
auth:
password: "REDIS_PASSWORD"
master:
persistence:
enabled: false
size: 8Gi
postgresql:
# using embedded postgresql
# connection info would be set automatically
# best to use external pg if you have one
# setting embedded to false and set pg url in envrionment variable
embedded: false
# embedded: false
# goto extraBackendEnvs to set pg url
architecture: standalone
auth:
postgresPassword: "testpassword"
database: "dify"
primary:
persistence:
enabled: false
minio:
embedded: false
# using embedded minio
# connection info would be set automatically
# best to use external s3/minio if you have one
# setting embedded to false and set minio/s3 url in envrionment variable
auth:
rootUser: minioadmin
rootPassword: minioadmin
defaultBuckets: "dify"
persistence:
enabled: false