File tree Expand file tree Collapse file tree 9 files changed +68
-5
lines changed
deploy/charts/observability-app Expand file tree Collapse file tree 9 files changed +68
-5
lines changed Original file line number Diff line number Diff line change @@ -169,3 +169,6 @@ observability_ui/node_modules/
169
169
170
170
# Terraform
171
171
.terraform *
172
+
173
+ # Helm
174
+ ** /* .tgz
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
2
2
name : dataops-observability-app
3
3
type : application
4
4
appVersion : " 2.x.x"
5
- version : " 2.1 .0"
5
+ version : " 2.2 .0"
6
6
7
7
description : DataOps Observability
8
8
home : https://datakitchen.io
Original file line number Diff line number Diff line change 61
61
name : {{ .Values.observability.keys_secrets_name | quote }}
62
62
key : AGENT_API_KEY_FLASK_SECRET
63
63
{{- end }}
64
+ {{- with .Values.extraVolumeMounts }}
65
+ volumeMounts :
66
+ {{ toYaml . | nindent 12 }}
67
+ {{- end }}
64
68
command : [ "/dk/bin/gunicorn" ]
65
69
args : [ "-c", "/dk/gunicorn.conf.py", "agent_api.app:app" ]
66
70
readinessProbe :
74
78
- name : Host
75
79
value : {{ tpl .Values.agent_api.hostname . | quote }}
76
80
{{- end }}
81
+ {{- with .Values.extraVolumes }}
82
+ volumes :
83
+ {{ toYaml . | nindent 8 }}
84
+ {{- end }}
77
85
{{- with .Values.agent_api.nodeSelector }}
78
86
nodeSelector :
79
87
{{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change 1
- {{- range .Values.cli_hook.enable }}
1
+ {{- range $index, $job := .Values.cli_hook.enable }}
2
2
apiVersion : batch/v1
3
3
kind : Job
4
4
metadata :
5
- name : " cli-job"
5
+ name : cli-job-{{ default $index .name }}
6
6
annotations :
7
7
" helm.sh/hook " : {{ join ", " .phases }}
8
8
" helm.sh/hook-weight " : {{ default 0 .weight | quote }}
9
9
" helm.sh/hook-delete-policy " : hook-succeeded, before-hook-creation
10
10
spec :
11
11
template :
12
12
metadata :
13
- name : " cli-job"
13
+ name : cli-job-{{ default $index .name }}
14
14
spec :
15
15
restartPolicy : Never
16
16
{{- with $.Values.imagePullSecrets }}
17
17
imagePullSecrets :
18
18
{{- toYaml . | nindent 8 }}
19
19
{{- end }}
20
+ serviceAccountName : {{ include "observability.serviceAccountName" $ }}
20
21
containers :
21
22
- name : cli-hook
22
23
image : {{ include "observability.cli_hook.image" $ | quote }}
25
26
{{- include "observability.environment.base" $ | nindent 12 }}
26
27
{{- include "observability.environment.database" $ | nindent 12 }}
27
28
{{- include "observability.environment.pythonpath" $ | nindent 12 }}
29
+ {{- with $.Values.extraVolumeMounts }}
30
+ volumeMounts :
31
+ {{ toYaml . | nindent 12 }}
32
+ {{- end }}
28
33
command :
29
34
{{- range .command }}
30
35
- {{ . | quote -}}
31
36
{{- end }}
37
+ args :
38
+ {{- range .args }}
39
+ - {{ . | quote -}}
40
+ {{- end }}
41
+ {{- with $.Values.extraVolumes }}
42
+ volumes :
43
+ {{ toYaml . | nindent 8 }}
44
+ {{- end }}
32
45
---
33
46
{{- end }}
Original file line number Diff line number Diff line change 62
62
name : {{ .Values.observability.keys_secrets_name | quote }}
63
63
key : EVENTS_KEY_FLASK_SECRET
64
64
{{- end }}
65
+ {{- with .Values.extraVolumeMounts }}
66
+ volumeMounts :
67
+ {{ toYaml . | nindent 12 }}
68
+ {{- end }}
65
69
command : [ "/dk/bin/gunicorn" ]
66
70
args : [ "-c", "/dk/gunicorn.conf.py", "event_api.app:app" ]
67
71
readinessProbe :
75
79
- name : Host
76
80
value : {{ tpl .Values.event_api.hostname . | quote }}
77
81
{{- end }}
78
-
82
+ {{- with .Values.extraVolumes }}
83
+ volumes :
84
+ {{ toYaml . | nindent 8 }}
85
+ {{- end }}
79
86
{{- with .Values.event_api.nodeSelector }}
80
87
nodeSelector :
81
88
{{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change 61
61
name : {{ .Values.observability.keys_secrets_name | quote }}
62
62
key : OBSERVABILITY_KEY_FLASK_SECRET
63
63
{{- end }}
64
+ {{- with .Values.extraVolumeMounts }}
65
+ volumeMounts :
66
+ {{ toYaml . | nindent 12 }}
67
+ {{- end }}
64
68
command : [ "/dk/bin/gunicorn" ]
65
69
args : [ "-c", "/dk/gunicorn.conf.py", "observability_api.app:app" ]
66
70
readinessProbe :
74
78
- name : Host
75
79
value : {{ tpl .Values.observability_api.hostname . | quote }}
76
80
{{- end }}
81
+ {{- with .Values.extraVolumes }}
82
+ volumes :
83
+ {{ toYaml . | nindent 8 }}
84
+ {{- end }}
77
85
{{- with .Values.observability_api.nodeSelector }}
78
86
nodeSelector :
79
87
{{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change 45
45
{{- include "observability.environment.database" . | nindent 12 }}
46
46
{{- include "observability.environment.kafka" . | nindent 12 }}
47
47
{{- include "observability.environment.smtp" . | nindent 12 }}
48
+ {{- with .Values.extraVolumeMounts }}
49
+ volumeMounts :
50
+ {{ toYaml . | nindent 12 }}
51
+ {{- end }}
48
52
command : [ "/dk/bin/rules-engine" ]
49
53
{{- include "observability.probes.readiness_cmd" "rules-engine" | nindent 10 -}}
54
+ {{- with .Values.extraVolumes }}
55
+ volumes :
56
+ {{ toYaml . | nindent 8 }}
57
+ {{- end }}
50
58
{{- with .Values.rules_engine.nodeSelector }}
51
59
nodeSelector :
52
60
{{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change 44
44
{{- include "observability.environment.base" . | nindent 12 }}
45
45
{{- include "observability.environment.database" . | nindent 12 }}
46
46
{{- include "observability.environment.kafka" . | nindent 12 }}
47
+ {{- with .Values.extraVolumeMounts }}
48
+ volumeMounts :
49
+ {{ toYaml . | nindent 12 }}
50
+ {{- end }}
47
51
command : ["/dk/bin/run-manager"]
48
52
{{- include "observability.probes.readiness_cmd" "run-manager" | nindent 10 -}}
53
+ {{- with .Values.extraVolumes }}
54
+ volumes :
55
+ {{ toYaml . | nindent 8 }}
56
+ {{- end }}
49
57
{{- with .Values.run_manager.nodeSelector }}
50
58
nodeSelector :
51
59
{{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change 44
44
{{- include "observability.environment.base" . | nindent 12 }}
45
45
{{- include "observability.environment.database" . | nindent 12 }}
46
46
{{- include "observability.environment.kafka" . | nindent 12 }}
47
+ {{- with .Values.extraVolumeMounts }}
48
+ volumeMounts :
49
+ {{ toYaml . | nindent 12 }}
50
+ {{- end }}
47
51
command : [ "/dk/bin/scheduler" ]
48
52
{{- include "observability.probes.readiness_cmd" "scheduler" | nindent 10 -}}
53
+ {{- with .Values.extraVolumes }}
54
+ volumes :
55
+ {{ toYaml . | nindent 8 }}
56
+ {{- end }}
49
57
{{- with .Values.scheduler.nodeSelector }}
50
58
nodeSelector :
51
59
{{- toYaml . | nindent 8 }}
You can’t perform that action at this time.
0 commit comments