File tree 7 files changed +129
-12
lines changed
7 files changed +129
-12
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ metadata:
6
6
spec :
7
7
version : 8.15.2
8
8
image : exceptionless/elasticsearch:8.15.2 # https://github.com/exceptionless/Exceptionless/tree/main/build/docker/elasticsearch
9
- monitoring :
10
- metrics :
11
- elasticsearchRefs :
12
- - name : elastic-monitor
13
- namespace : elastic-system
14
- logs :
15
- elasticsearchRefs :
16
- - name : elastic-monitor
17
- namespace : elastic-system
9
+ # monitoring:
10
+ # metrics:
11
+ # elasticsearchRefs:
12
+ # - name: elastic-monitor
13
+ # namespace: elastic-system
14
+ # logs:
15
+ # elasticsearchRefs:
16
+ # - name: elastic-monitor
17
+ # namespace: elastic-system
18
18
secureSettings :
19
19
- secretName : ex-prod-snapshots
20
20
http :
Original file line number Diff line number Diff line change @@ -2,13 +2,17 @@ appMode: Production
2
2
appScope : prod
3
3
app :
4
4
replicaCount : 3
5
+ minReplicaCount : 2
6
+ maxReplicaCount : 5
5
7
defaultDomain : be.exceptionless.io
6
8
domains :
7
9
- be.exceptionless.io
8
10
- app.exceptionless.io
9
11
- app.exceptionless.com
10
12
api :
11
13
replicaCount : 5
14
+ minReplicaCount : 2
15
+ maxReplicaCount : 5
12
16
defaultDomain : collector.exceptionless.io
13
17
domains :
14
18
- collector.exceptionless.io
21
25
eventNotifications :
22
26
replicaCount : 2
23
27
eventPosts :
24
- replicaCount : 10
28
+ replicaCount : 2
29
+ minReplicaCount : 2
30
+ maxReplicaCount : 10
25
31
eventUserDescriptions :
26
32
replicaCount : 2
27
33
mailMessage :
30
36
replicaCount : 2
31
37
workitem :
32
38
replicaCount : 4
39
+ minReplicaCount : 2
40
+ maxReplicaCount : 5
33
41
34
42
config :
35
43
EX_EnableSnapshotJobs : " true"
Original file line number Diff line number Diff line change @@ -147,6 +147,10 @@ helm install ex-$ENV-redis bitnami/redis --values ex-$ENV-redis-values.yaml --na
147
147
# upgrade redis server
148
148
helm upgrade ex- $ENV - redis bitnami/ redis -- reset-values -- values ex- $ENV - redis- values.yaml -- namespace ex- $ENV
149
149
150
+ # install signoz otel collector
151
+ helm repo add signoz https:// charts.signoz.io
152
+ helm install signoz- collector signoz/ k8s- infra -f signoz.yaml -- set " signozApiKey=$SIGNOZ_KEY "
153
+
150
154
# install exceptionless app
151
155
$VERSION = " 8.0.0"
152
156
helm install ex- $ENV .\exceptionless -- namespace ex- $ENV -- values ex- $ENV - values.yaml `
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ metadata:
10
10
release : {{ .Release.Name }}
11
11
heritage : {{ .Release.Service }}
12
12
spec :
13
- replicas : {{ .Values.api.replicaCount }}
13
+ replicas : {{ if not (kindIs "invalid" ( .Values.api | default dict ) .replicaCount) }}{{ .Values.api.replicaCount }}{{ else }}{{ 2 }}{{ end }}
14
14
selector :
15
15
matchLabels :
16
16
component : {{ template "exceptionless.fullname" . }}-api
90
90
claimName : {{ template "exceptionless.fullname" . }}-storage
91
91
{{- end }}
92
92
93
+ {{- if not (kindIs "invalid" ( .Values.api | default dict ).replicaCount) }}
94
+ ---
95
+ apiVersion : autoscaling/v2
96
+ kind : HorizontalPodAutoscaler
97
+ metadata :
98
+ name : {{ template "exceptionless.fullname" . }}-api-scaler
99
+ spec :
100
+ scaleTargetRef :
101
+ apiVersion : apps/v1
102
+ kind : Deployment
103
+ name : {{ template "exceptionless.fullname" . }}-api
104
+ minReplicas : {{ if not (kindIs "invalid" ( .Values.api | default dict ).minReplicaCount) }}{{ .Values.api.minReplicaCount }}{{ else }}{{ 2 }}{{ end }}
105
+ maxReplicas : {{ .Values.api.maxReplicaCount }}
106
+ metrics :
107
+ - type : Resource
108
+ resource :
109
+ name : cpu
110
+ target :
111
+ type : Utilization
112
+ averageUtilization : 50
113
+ {{- end }}
114
+
93
115
---
94
116
apiVersion : v1
95
117
kind : Service
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ metadata:
10
10
release : {{ .Release.Name }}
11
11
heritage : {{ .Release.Service }}
12
12
spec :
13
- replicas : {{ .Values.app.replicaCount }}
13
+ replicas : {{ if not (kindIs "invalid" ( .Values.app | default dict ) .replicaCount) }}{{ .Values.app.replicaCount }}{{ else }}{{ 2 }}{{ end }}
14
14
selector :
15
15
matchLabels :
16
16
component : {{ template "exceptionless.fullname" . }}-app
88
88
claimName : {{ template "exceptionless.fullname" . }}-storage
89
89
{{- end }}
90
90
91
+ {{- if not (kindIs "invalid" ( .Values.app | default dict ).replicaCount) }}
92
+ ---
93
+ apiVersion : autoscaling/v2
94
+ kind : HorizontalPodAutoscaler
95
+ metadata :
96
+ name : {{ template "exceptionless.fullname" . }}-app-scaler
97
+ spec :
98
+ scaleTargetRef :
99
+ apiVersion : apps/v1
100
+ kind : Deployment
101
+ name : {{ template "exceptionless.fullname" . }}-app
102
+ minReplicas : {{ if not (kindIs "invalid" ( .Values.app | default dict ).minReplicaCount) }}{{ .Values.app.minReplicaCount }}{{ else }}{{ 2 }}{{ end }}
103
+ maxReplicas : {{ .Values.app.maxReplicaCount }}
104
+ metrics :
105
+ - type : Resource
106
+ resource :
107
+ name : cpu
108
+ target :
109
+ type : Utilization
110
+ averageUtilization : 50
111
+ {{- end }}
112
+
91
113
---
92
114
apiVersion : v1
93
115
kind : Service
Original file line number Diff line number Diff line change @@ -343,6 +343,28 @@ spec:
343
343
- name : EX_OTEL_RESOURCE_ATTRIBUTES
344
344
value : k8s.pod.ip=$(K8S_POD_IP),k8s.pod.uid=$(K8S_POD_UID)
345
345
346
+ {{- if not (kindIs "invalid" ( .Values.jobs.eventPosts | default dict ).maxReplicaCount) }}
347
+ ---
348
+ apiVersion : autoscaling/v2
349
+ kind : HorizontalPodAutoscaler
350
+ metadata :
351
+ name : {{ template "exceptionless.fullname" . }}-jobs-event-posts-scaler
352
+ spec :
353
+ scaleTargetRef :
354
+ apiVersion : apps/v1
355
+ kind : Deployment
356
+ name : {{ template "exceptionless.fullname" . }}-jobs-event-posts
357
+ minReplicas : {{ if not (kindIs "invalid" ( .Values.jobs.eventPosts | default dict ).minReplicaCount) }}{{ .Values.jobs.eventPosts.minReplicaCount }}{{ else }}{{ 2 }}{{ end }}
358
+ maxReplicas : {{ .Values.jobs.eventPosts.maxReplicaCount }}
359
+ metrics :
360
+ - type : Resource
361
+ resource :
362
+ name : cpu
363
+ target :
364
+ type : Utilization
365
+ averageUtilization : 50
366
+ {{- end }}
367
+
346
368
---
347
369
apiVersion : batch/v1
348
370
kind : CronJob
@@ -945,6 +967,28 @@ spec:
945
967
claimName : {{ template "exceptionless.fullname" . }}-storage
946
968
{{- end }}
947
969
970
+ {{- if not (kindIs "invalid" ( .Values.jobs.workitem | default dict ).maxReplicaCount) }}
971
+ ---
972
+ apiVersion : autoscaling/v2
973
+ kind : HorizontalPodAutoscaler
974
+ metadata :
975
+ name : {{ template "exceptionless.fullname" . }}-jobs-work-item-scaler
976
+ spec :
977
+ scaleTargetRef :
978
+ apiVersion : apps/v1
979
+ kind : Deployment
980
+ name : {{ template "exceptionless.fullname" . }}-jobs-work-item
981
+ minReplicas : {{ if not (kindIs "invalid" ( .Values.jobs.workitem | default dict ).minReplicaCount) }}{{ .Values.jobs.workitem.minReplicaCount }}{{ else }}{{ 2 }}{{ end }}
982
+ maxReplicas : {{ .Values.jobs.workitem.maxReplicaCount }}
983
+ metrics :
984
+ - type : Resource
985
+ resource :
986
+ name : cpu
987
+ target :
988
+ type : Utilization
989
+ averageUtilization : 50
990
+ {{- end }}
991
+
948
992
---
949
993
apiVersion : apps/v1
950
994
kind : Deployment
Original file line number Diff line number Diff line change
1
+ global :
2
+ cloud : aks
3
+ clusterName : ex-k8s-v6
4
+ deploymentEnvironment : prod
5
+ otelCollectorEndpoint : ingest.us.signoz.cloud:443
6
+ otelInsecure : false
7
+ presets :
8
+ otlpExporter :
9
+ enabled : true
10
+ loggingExporter :
11
+ enabled : false
12
+ logsCollection :
13
+ enabled : false
14
+ resourceDetection :
15
+ detectors :
16
+ - azure
17
+ - system
You can’t perform that action at this time.
0 commit comments