8
8
# http://www.eclipse.org/legal/epl-2.0
9
9
#
10
10
# SPDX-License-Identifier: EPL-2.0
11
+ {{- $name := include "ditto.name" . -}}
11
12
{{- if .Values.connectivity.enabled -}}
12
13
---
13
14
apiVersion : apps/v1
14
15
kind : Deployment
15
16
metadata :
16
17
name : {{ include "ditto.fullname" . }}-connectivity
17
18
labels :
18
- app.kubernetes.io/name : {{ include "ditto. name" . }}-connectivity
19
+ app.kubernetes.io/name : {{ $ name }}-connectivity
19
20
{{ include "ditto.labels" . | indent 4 }}
20
21
spec :
21
22
replicas : {{ .Values.connectivity.replicaCount }}
@@ -26,12 +27,12 @@ spec:
26
27
minReadySeconds : {{ .Values.connectivity.minReadySeconds }}
27
28
selector :
28
29
matchLabels :
29
- app.kubernetes.io/name : {{ include "ditto. name" . }}-connectivity
30
+ app.kubernetes.io/name : {{ $ name }}-connectivity
30
31
app.kubernetes.io/instance : {{ .Release.Name }}
31
32
template :
32
33
metadata :
33
34
labels :
34
- app.kubernetes.io/name : {{ include "ditto. name" . }}-connectivity
35
+ app.kubernetes.io/name : {{ $ name }}-connectivity
35
36
app.kubernetes.io/instance : {{ .Release.Name }}
36
37
actorSystemName : {{ .Values.pekko.actorSystemName }}
37
38
{{- with .Values.connectivity.additionalLabels }}
45
46
{{- end }}
46
47
checksum/mongodb-config : {{ include (print $.Template.BasePath "/mongodb-secret.yaml") . | sha256sum }}
47
48
checksum/config : {{ include (print $.Template.BasePath "/connectivity-configmap.yaml") . | sha256sum }}
49
+ {{- with .Values.global.additionalAnnotations }}
50
+ {{- toYaml . | nindent 8 }}
51
+ {{- end }}
48
52
{{- with .Values.connectivity.additionalAnnotations }}
49
53
{{- toYaml . | nindent 8 }}
50
54
{{- end }}
@@ -70,12 +74,14 @@ spec:
70
74
mountPath : /var/log/ditto
71
75
{{- end }}
72
76
topologySpreadConstraints :
73
- - maxSkew : {{ .Values.connectivity.topologySpreadConstraints.maxSkew }}
74
- topologyKey : {{ .Values.connectivity.topologySpreadConstraints.topologyKey }}
75
- whenUnsatisfiable : {{ .Values.connectivity.topologySpreadConstraints.whenUnsatisfiable }}
77
+ {{- range .Values.connectivity.topologySpreadConstraints }}
78
+ - maxSkew : {{ .maxSkew }}
79
+ topologyKey : {{ .topologyKey }}
80
+ whenUnsatisfiable : {{ .whenUnsatisfiable }}
76
81
labelSelector :
77
82
matchLabels :
78
- app.kubernetes.io/name : {{ include "ditto.name" . }}-connectivity
83
+ app.kubernetes.io/name : {{ $name }}-connectivity
84
+ {{- end }}
79
85
containers :
80
86
- name : {{ .Chart.Name }}-connectivity
81
87
image : {{ printf "%s:%s" .Values.connectivity.image.repository ( default .Chart.AppVersion ( default .Values.dittoTag .Values.connectivity.image.tag ) ) }}
@@ -312,11 +318,19 @@ spec:
312
318
protocol : TCP
313
319
containerPort : {{ .Values.global.prometheus.port }}
314
320
{{- end }}
321
+ startupProbe :
322
+ httpGet :
323
+ port : management
324
+ path : /ready
325
+ initialDelaySeconds : {{ .Values.connectivity.startupProbe.initialDelaySeconds }}
326
+ periodSeconds : {{ .Values.connectivity.startupProbe.periodSeconds }}
327
+ timeoutSeconds : {{ .Values.connectivity.startupProbe.timeoutSeconds }}
328
+ successThreshold : {{ .Values.connectivity.startupProbe.successThreshold }}
329
+ failureThreshold : {{ .Values.connectivity.startupProbe.failureThreshold }}
315
330
readinessProbe :
316
331
httpGet :
317
332
port : management
318
333
path : /ready
319
- initialDelaySeconds : {{ .Values.connectivity.readinessProbe.initialDelaySeconds }}
320
334
periodSeconds : {{ .Values.connectivity.readinessProbe.periodSeconds }}
321
335
timeoutSeconds : {{ .Values.connectivity.readinessProbe.timeoutSeconds }}
322
336
successThreshold : {{ .Values.connectivity.readinessProbe.successThreshold }}
@@ -352,11 +366,13 @@ spec:
352
366
requests :
353
367
cpu : {{ mulf .Values.connectivity.resources.cpu 1000 }}m
354
368
memory : {{ .Values.connectivity.resources.memoryMi }}Mi
369
+ ephemeral-storage : {{ .Values.connectivity.resources.ephemeralStorageMi }}Mi
355
370
limits :
356
371
# ## no cpu limit to avoid CFS scheduler limits
357
372
# ref: https://pekko.apache.org/docs/pekko/current/additional/deploying.html#deploying-to-kubernetes
358
373
# cpu: ""
359
374
memory : {{ .Values.connectivity.resources.memoryMi }}Mi
375
+ ephemeral-storage : {{ .Values.connectivity.resources.ephemeralStorageMi }}Mi
360
376
{{- if .Values.openshift.enabled }}
361
377
{{- with .Values.openshift.securityContext }}
362
378
securityContext :
0 commit comments