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.8 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
74
75
76
77
78
79
80
  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. {{- if .Values.infisical.enabled }}
  8. annotations:
  9. secrets.infisical.com/auto-reload: "true"
  10. {{- end }}
  11. spec:
  12. progressDeadlineSeconds: 600
  13. {{- if not $.Values.autoscaling.enabled }}
  14. replicas: {{ .Values.replicas }}
  15. {{- end }}
  16. revisionHistoryLimit: 10
  17. selector:
  18. matchLabels: {{ include "labels.standard" . | nindent 6 }}
  19. strategy:
  20. rollingUpdate:
  21. maxSurge: 25%
  22. maxUnavailable: 25%
  23. type: RollingUpdate
  24. template:
  25. metadata:
  26. labels: {{ include "labels.standard" . | nindent 8 }}
  27. {{- if $.Values.envVars.NODE_LOG_STRUCTURED_DATA }}
  28. annotations:
  29. co.elastic.logs/json.expand_keys: "true"
  30. {{- end }}
  31. spec:
  32. {{- if .Values.serviceAccount.enabled }}
  33. serviceAccountName: "{{ .Values.serviceAccount.name | default (include "name" .) }}"
  34. {{- end }}
  35. containers:
  36. - name: chat-ui
  37. image: "{{ .Values.image.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}"
  38. imagePullPolicy: {{ .Values.image.pullPolicy }}
  39. readinessProbe:
  40. failureThreshold: 30
  41. periodSeconds: 10
  42. httpGet:
  43. path: {{ $.Values.envVars.APP_BASE | default "" }}/healthcheck
  44. port: {{ $.Values.envVars.APP_PORT | default 3000 | int }}
  45. livenessProbe:
  46. failureThreshold: 30
  47. periodSeconds: 10
  48. httpGet:
  49. path: {{ $.Values.envVars.APP_BASE | default "" }}/healthcheck
  50. port: {{ $.Values.envVars.APP_PORT | default 3000 | int }}
  51. ports:
  52. - containerPort: {{ $.Values.envVars.APP_PORT | default 3000 | int }}
  53. name: http
  54. protocol: TCP
  55. {{- if $.Values.monitoring.enabled }}
  56. - containerPort: {{ $.Values.envVars.METRICS_PORT | default 5565 | int }}
  57. name: metrics
  58. protocol: TCP
  59. {{- end }}
  60. resources: {{ toYaml .Values.resources | nindent 12 }}
  61. {{- with $.Values.extraEnv }}
  62. env:
  63. {{- toYaml . | nindent 14 }}
  64. {{- end }}
  65. envFrom:
  66. - configMapRef:
  67. name: {{ include "name" . }}
  68. {{- if $.Values.infisical.enabled }}
  69. - secretRef:
  70. name: {{ include "name" $ }}-secs
  71. {{- end }}
  72. {{- with $.Values.extraEnvFrom }}
  73. {{- toYaml . | nindent 14 }}
  74. {{- end }}
  75. nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
  76. tolerations: {{ toYaml .Values.tolerations | nindent 8 }}
  77. volumes:
  78. - name: config
  79. configMap:
  80. name: {{ include "name" . }}
Tip!

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

Comments

Loading...