Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

deployment.yaml 2.5 KB

You have to be logged in to leave a comment. Sign In
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
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. labels: {{ include "labels.standard" . | nindent 4 }}
  5. name: {{ include "name" . }}
  6. namespace: {{ .Release.Namespace }}
  7. spec:
  8. progressDeadlineSeconds: 600
  9. {{- if not $.Values.autoscaling.enabled }}
  10. replicas: {{ .Values.replicas }}
  11. {{- end }}
  12. revisionHistoryLimit: 10
  13. selector:
  14. matchLabels: {{ include "labels.standard" . | nindent 6 }}
  15. strategy:
  16. rollingUpdate:
  17. maxSurge: 25%
  18. maxUnavailable: 25%
  19. type: RollingUpdate
  20. template:
  21. metadata:
  22. labels: {{ include "labels.standard" . | nindent 8 }}
  23. {{- if $.Values.envVars.NODE_LOG_STRUCTURED_DATA }}
  24. annotations:
  25. co.elastic.logs/json.expand_keys: "true"
  26. {{- end }}
  27. spec:
  28. containers:
  29. - name: chat-ui
  30. image: "{{ .Values.image.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}"
  31. imagePullPolicy: {{ .Values.image.pullPolicy }}
  32. readinessProbe:
  33. failureThreshold: 30
  34. periodSeconds: 10
  35. httpGet:
  36. path: {{ $.Values.envVars.APP_BASE | default "" }}/healthcheck
  37. port: {{ $.Values.envVars.APP_PORT | default 3000 | int }}
  38. livenessProbe:
  39. failureThreshold: 30
  40. periodSeconds: 10
  41. httpGet:
  42. path: {{ $.Values.envVars.APP_BASE | default "" }}/healthcheck
  43. port: {{ $.Values.envVars.APP_PORT | default 3000 | int }}
  44. ports:
  45. - containerPort: {{ $.Values.envVars.APP_PORT | default 3000 | int }}
  46. name: http
  47. protocol: TCP
  48. {{- if $.Values.monitoring.enabled }}
  49. - containerPort: {{ $.Values.envVars.METRICS_PORT | default 5565 | int }}
  50. name: metrics
  51. protocol: TCP
  52. {{- end }}
  53. resources: {{ toYaml .Values.resources | nindent 12 }}
  54. {{- with $.Values.extraEnv }}
  55. env:
  56. {{- toYaml . | nindent 14 }}
  57. {{- end }}
  58. envFrom:
  59. - configMapRef:
  60. name: {{ include "name" . }}
  61. {{- if $.Values.externalSecrets.enabled }}
  62. - secretRef:
  63. name: {{ $.Values.externalSecrets.secretName }}
  64. {{- end }}
  65. {{- with $.Values.extraEnvFrom }}
  66. {{- toYaml . | nindent 14 }}
  67. {{- end }}
  68. nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
  69. tolerations: {{ toYaml .Values.tolerations | nindent 8 }}
  70. volumes:
  71. - name: config
  72. configMap:
  73. name: {{ include "name" . }}
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...