@@ -9,6 +9,8 @@ metadata:
9
9
{{- end }}
10
10
labels :
11
11
app.kubernetes.io/instance : {{ .Values.coreInstance }}
12
+ app.kubernetes.io/part-of : calyptia
13
+ calyptia.core : core-instance
12
14
spec :
13
15
replicas : {{ default 1 .Values.replicas }}
14
16
selector :
23
25
{{- end }}
24
26
labels :
25
27
app.kubernetes.io/part-of : calyptia
28
+ calyptia.core : core-instance
26
29
spec :
27
30
serviceAccount : {{ template "instance.serviceAccountName" . }}
28
31
containers :
80
83
{{- if .Values.fromCloud.resources }}
81
84
resources : {{- toYaml .Values.fromCloud.resources | nindent 12 }}
82
85
{{- end }}
86
+ volumeMounts :
87
+ {{- if .Values.extraVolumeMounts }}
88
+ {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
89
+ {{- end }}
90
+ {{- if .Values.fromCloud.extraVolumeMounts }}
91
+ {{- include "common.tplvalues.render" (dict "value" .Values.fromCloud.extraVolumeMounts "context" $) | nindent 12 }}
92
+ {{- end }}
83
93
- env :
84
94
- name : CORE_INSTANCE
85
95
value : {{ default .Release.Name .Values.coreInstance | quote }}
@@ -121,6 +131,13 @@ spec:
121
131
ports :
122
132
- containerPort : {{ .Values.metricsPort | int }}
123
133
name : metrics
134
+ volumeMounts :
135
+ {{- if .Values.extraVolumeMounts }}
136
+ {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
137
+ {{- end }}
138
+ {{- if .Values.toCloud.extraVolumeMounts }}
139
+ {{- include "common.tplvalues.render" (dict "value" .Values.toCloud.extraVolumeMounts "context" $) | nindent 12 }}
140
+ {{- end }}
124
141
{{- if .Values.calyptiaTolerations }}
125
142
tolerations :
126
143
{{- $tolerations := .Values.calyptiaTolerations | split "," }}
@@ -136,4 +153,9 @@ spec:
136
153
{{- end }}
137
154
{{- end }}
138
155
{{- end }}
156
+ volumes :
157
+ {{- if .Values.extraVolumes }}
158
+ {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }}
159
+ {{- end }}
160
+ restartPolicy : {{ default "Always" .Values.restartPolicy }}
139
161
{{- end }}
0 commit comments