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.7 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
  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. {{- if .Values.serviceAccount.enabled }}
  29. serviceAccountName: "{{ .Values.serviceAccount.name | default (include "name" .) }}"
  30. {{- end }}
  31. containers:
  32. - name: chat-ui
  33. image: "{{ .Values.image.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}"
  34. imagePullPolicy: {{ .Values.image.pullPolicy }}
  35. readinessProbe:
  36. failureThreshold: 30
  37. periodSeconds: 10
  38. httpGet:
  39. path: {{ $.Values.envVars.APP_BASE | default "" }}/healthcheck
  40. port: {{ $.Values.envVars.APP_PORT | default 3000 | int }}
  41. livenessProbe:
  42. failureThreshold: 30
  43. periodSeconds: 10
  44. httpGet:
  45. path: {{ $.Values.envVars.APP_BASE | default "" }}/healthcheck
  46. port: {{ $.Values.envVars.APP_PORT | default 3000 | int }}
  47. ports:
  48. - containerPort: {{ $.Values.envVars.APP_PORT | default 3000 | int }}
  49. name: http
  50. protocol: TCP
  51. {{- if $.Values.monitoring.enabled }}
  52. - containerPort: {{ $.Values.envVars.METRICS_PORT | default 5565 | int }}
  53. name: metrics
  54. protocol: TCP
  55. {{- end }}
  56. resources: {{ toYaml .Values.resources | nindent 12 }}
  57. {{- with $.Values.extraEnv }}
  58. env:
  59. {{- toYaml . | nindent 14 }}
  60. {{- end }}
  61. envFrom:
  62. - configMapRef:
  63. name: {{ include "name" . }}
  64. {{- if $.Values.externalSecrets.enabled }}
  65. - secretRef:
  66. name: {{ $.Values.externalSecrets.secretName }}
  67. {{- end }}
  68. {{- with $.Values.extraEnvFrom }}
  69. {{- toYaml . | nindent 14 }}
  70. {{- end }}
  71. nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
  72. tolerations: {{ toYaml .Values.tolerations | nindent 8 }}
  73. volumes:
  74. - name: config
  75. configMap:
  76. name: {{ include "name" . }}
Tip!

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

Comments

Loading...