statefulset.yaml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. {{- $shards := .Values.shards | int }}
  2. {{- range $i, $e := until $shards }}
  3. apiVersion: {{ include "common.capabilities.statefulset.apiVersion" $ }}
  4. kind: StatefulSet
  5. metadata:
  6. name: {{ printf "%s-shard%d" (include "common.names.fullname" $ ) $i }}
  7. namespace: {{ include "common.names.namespace" $ | quote }}
  8. labels: {{- include "common.labels.standard" $ | nindent 4 }}
  9. app.kubernetes.io/component: clickhouse
  10. {{- if $.Values.commonLabels }}
  11. {{- include "common.tplvalues.render" ( dict "value" $.Values.commonLabels "context" $ ) | nindent 4 }}
  12. {{- end }}
  13. {{- if $.Values.commonAnnotations }}
  14. annotations: {{- include "common.tplvalues.render" ( dict "value" $.Values.commonAnnotations "context" $ ) | nindent 4 }}
  15. {{- end }}
  16. spec:
  17. replicas: {{ $.Values.replicaCount }}
  18. podManagementPolicy: {{ $.Values.podManagementPolicy | quote }}
  19. selector:
  20. matchLabels: {{ include "common.labels.matchLabels" $ | nindent 6 }}
  21. app.kubernetes.io/component: clickhouse
  22. serviceName: {{ printf "%s-headless" (include "common.names.fullname" $) }}
  23. {{- if $.Values.updateStrategy }}
  24. updateStrategy: {{- toYaml $.Values.updateStrategy | nindent 4 }}
  25. {{- end }}
  26. template:
  27. metadata:
  28. annotations:
  29. checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") $ | sha256sum }}
  30. checksum/config-users: {{ include (print $.Template.BasePath "/configmap-users.yaml") $ | sha256sum }}
  31. checksum/config-extra: {{ include (print $.Template.BasePath "/configmap-extra.yaml") $ | sha256sum }}
  32. {{- if $.Values.podAnnotations }}
  33. {{- include "common.tplvalues.render" (dict "value" $.Values.podAnnotations "context" $) | nindent 8 }}
  34. {{- end }}
  35. {{- if and $.Values.metrics.enabled $.Values.metrics.podAnnotations }}
  36. {{- include "common.tplvalues.render" (dict "value" $.Values.metrics.podAnnotations "context" $) | nindent 8 }}
  37. {{- end }}
  38. labels: {{- include "common.labels.standard" $ | nindent 8 }}
  39. app.kubernetes.io/component: clickhouse
  40. {{- if $.Values.podLabels }}
  41. {{- include "common.tplvalues.render" (dict "value" $.Values.podLabels "context" $) | nindent 8 }}
  42. {{- end }}
  43. spec:
  44. serviceAccountName: {{ template "clickhouse.serviceAccountName" $ }}
  45. {{- include "clickhouse.imagePullSecrets" $ | nindent 6 }}
  46. {{- if $.Values.hostAliases }}
  47. hostAliases: {{- include "common.tplvalues.render" (dict "value" $.Values.hostAliases "context" $) | nindent 8 }}
  48. {{- end }}
  49. {{- if $.Values.affinity }}
  50. affinity: {{- include "common.tplvalues.render" ( dict "value" $.Values.affinity "context" $) | nindent 8 }}
  51. {{- else }}
  52. affinity:
  53. podAffinity: {{- include "common.affinities.pods" (dict "type" $.Values.podAffinityPreset "component" "clickhouse" "context" $) | nindent 10 }}
  54. podAntiAffinity: {{- include "common.affinities.pods" (dict "type" $.Values.podAntiAffinityPreset "component" "clickhouse" "context" $) | nindent 10 }}
  55. nodeAffinity: {{- include "common.affinities.nodes" (dict "type" $.Values.nodeAffinityPreset.type "key" $.Values.nodeAffinityPreset.key "values" $.Values.nodeAffinityPreset.values) | nindent 10 }}
  56. {{- end }}
  57. {{- if $.Values.nodeSelector }}
  58. nodeSelector: {{- include "common.tplvalues.render" ( dict "value" $.Values.nodeSelector "context" $) | nindent 8 }}
  59. {{- end }}
  60. {{- if $.Values.tolerations }}
  61. tolerations: {{- include "common.tplvalues.render" (dict "value" $.Values.tolerations "context" $) | nindent 8 }}
  62. {{- end }}
  63. {{- if $.Values.priorityClassName }}
  64. priorityClassName: {{ $.Values.priorityClassName | quote }}
  65. {{- end }}
  66. {{- if $.Values.schedulerName }}
  67. schedulerName: {{ $.Values.schedulerName | quote }}
  68. {{- end }}
  69. {{- if $.Values.topologySpreadConstraints }}
  70. topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" $.Values.topologySpreadConstraints "context" $) | nindent 8 }}
  71. {{- end }}
  72. {{- if $.Values.podSecurityContext.enabled }}
  73. securityContext: {{- omit $.Values.podSecurityContext "enabled" | toYaml | nindent 8 }}
  74. {{- end }}
  75. {{- if $.Values.terminationGracePeriodSeconds }}
  76. terminationGracePeriodSeconds: {{ $.Values.terminationGracePeriodSeconds }}
  77. {{- end }}
  78. initContainers:
  79. {{- if and $.Values.tls.enabled (not $.Values.volumePermissions.enabled) }}
  80. - name: copy-certs
  81. image: {{ include "clickhouse.volumePermissions.image" $ }}
  82. imagePullPolicy: {{ $.Values.volumePermissions.image.pullPolicy | quote }}
  83. {{- if $.Values.resources }}
  84. resources: {{- toYaml $.Values.resources | nindent 12 }}
  85. {{- end }}
  86. # We don't require a privileged container in this case
  87. {{- if $.Values.containerSecurityContext.enabled }}
  88. securityContext: {{- omit $.Values.containerSecurityContext "enabled" | toYaml | nindent 12 }}
  89. {{- end }}
  90. command:
  91. - /bin/sh
  92. - -ec
  93. - |
  94. cp -L /tmp/certs/* /opt/bitnami/clickhouse/certs/
  95. chmod 600 {{ include "clickhouse.tlsCertKey" $ }}
  96. volumeMounts:
  97. - name: raw-certificates
  98. mountPath: /tmp/certs
  99. - name: clickhouse-certificates
  100. mountPath: /opt/bitnami/clickhouse/certs
  101. {{- else if and $.Values.volumePermissions.enabled $.Values.persistence.enabled }}
  102. - name: volume-permissions
  103. image: {{ include "clickhouse.volumePermissions.image" $ }}
  104. imagePullPolicy: {{ $.Values.volumePermissions.image.pullPolicy | quote }}
  105. command: |
  106. mkdir -p /bitnami/clickhouse/data
  107. chmod 700 /bitnami/clickhouse/data
  108. {{- if $.Values.keeper.enabled }}
  109. mkdir -p /bitnami/clickhouse/keeper
  110. chmod 700 /bitnami/clickhouse/keeper
  111. {{- end }}
  112. chown {{ $.Values.containerSecurityContext.runAsUser }}:{{ $.Values.podSecurityContext.fsGroup }} /bitnami/clickhouse
  113. find /bitnami/clickhouse -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | \
  114. xargs -r chown -R {{ $.Values.containerSecurityContext.runAsUser }}:{{ $.Values.podSecurityContext.fsGroup }}
  115. {{- if $.Values.tls.enabled }}
  116. cp /tmp/certs/* /opt/bitnami/clickhouse/certs/
  117. {{- if eq ( toString ( $.Values.volumePermissions.containerSecurityContext.runAsUser )) "auto" }}
  118. chown -R `id -u`:`id -G | cut -d " " -f2` /opt/bitnami/clickhouse/certs/
  119. {{- else }}
  120. chown -R {{ $.Values.containerSecurityContext.runAsUser }}:{{ $.Values.podSecurityContext.fsGroup }} /opt/bitnami/clickhouse/certs/
  121. {{- end }}
  122. chmod 600 {{ include "clickhouse.tlsCertKey" $ }}
  123. {{- end }}
  124. {{- if $.Values.containerSecurityContext.enabled }}
  125. securityContext: {{- omit $.Values.containerSecurityContext "enabled" | toYaml | nindent 12 }}
  126. {{- end }}
  127. {{- if $.Values.volumePermissions.resources }}
  128. resources: {{- toYaml $.Values.volumePermissions.resources | nindent 12 }}
  129. {{- end }}
  130. volumeMounts:
  131. - name: data
  132. mountPath: /bitnami/clickhouse
  133. - name: config
  134. mountPath: /bitnami/clickhouse/conf/default
  135. {{- if $.Values.tls.enabled }}
  136. - name: raw-certificates
  137. mountPath: /tmp/certs
  138. - name: clickhouse-certificates
  139. mountPath: /opt/bitnami/clickhouse/certs
  140. {{- end }}
  141. {{- end }}
  142. {{- if $.Values.initContainers }}
  143. {{- include "common.tplvalues.render" (dict "value" $.Values.initContainers "context" $) | nindent 8 }}
  144. {{- end }}
  145. containers:
  146. - name: clickhouse
  147. image: {{ template "clickhouse.image" $ }}
  148. imagePullPolicy: {{ $.Values.image.pullPolicy }}
  149. {{- if $.Values.containerSecurityContext.enabled }}
  150. securityContext: {{- omit $.Values.containerSecurityContext "enabled" | toYaml | nindent 12 }}
  151. {{- end }}
  152. {{- if $.Values.diagnosticMode.enabled }}
  153. command: {{- include "common.tplvalues.render" (dict "value" $.Values.diagnosticMode.command "context" $) | nindent 12 }}
  154. {{- else if $.Values.command }}
  155. command: {{- include "common.tplvalues.render" (dict "value" $.Values.command "context" $) | nindent 12 }}
  156. {{- end }}
  157. {{- if $.Values.diagnosticMode.enabled }}
  158. args: {{- include "common.tplvalues.render" (dict "value" $.Values.diagnosticMode.args "context" $) | nindent 12 }}
  159. {{- else if $.Values.args }}
  160. args: {{- include "common.tplvalues.render" (dict "value" $.Values.args "context" $) | nindent 12 }}
  161. {{- end }}
  162. env:
  163. - name: BITNAMI_DEBUG
  164. value: {{ ternary "true" "false" (or $.Values.image.debug $.Values.diagnosticMode.enabled) | quote }}
  165. - name: CLICKHOUSE_HTTP_PORT
  166. value: {{ $.Values.containerPorts.http | quote }}
  167. - name: CLICKHOUSE_TCP_PORT
  168. value: {{ $.Values.containerPorts.tcp | quote }}
  169. - name: CLICKHOUSE_MYSQL_PORT
  170. value: {{ $.Values.containerPorts.mysql | quote }}
  171. - name: CLICKHOUSE_POSTGRESQL_PORT
  172. value: {{ $.Values.containerPorts.postgresql | quote }}
  173. - name: CLICKHOUSE_INTERSERVER_HTTP_PORT
  174. value: {{ $.Values.containerPorts.interserver | quote }}
  175. {{- if $.Values.tls.enabled }}
  176. - name: CLICKHOUSE_TCP_SECURE_PORT
  177. value: {{ $.Values.containerPorts.tcpSecure | quote }}
  178. - name: CLICKHOUSE_HTTPS_PORT
  179. value: {{ $.Values.containerPorts.https | quote }}
  180. {{- end }}
  181. {{- if $.Values.keeper.enabled }}
  182. - name: CLICKHOUSE_KEEPER_PORT
  183. value: {{ $.Values.containerPorts.keeper | quote }}
  184. - name: CLICKHOUSE_KEEPER_INTER_PORT
  185. value: {{ $.Values.containerPorts.keeperInter | quote }}
  186. {{- if $.Values.tls.enabled }}
  187. - name: CLICKHOUSE_KEEPER_SECURE_PORT
  188. value: {{ $.Values.containerPorts.keeperSecure | quote }}
  189. {{- end }}
  190. {{- end }}
  191. {{- if $.Values.metrics.enabled }}
  192. - name: CLICKHOUSE_METRICS_PORT
  193. value: {{ $.Values.containerPorts.metrics | quote }}
  194. {{- end }}
  195. - name: CLICKHOUSE_ADMIN_USER
  196. value: {{ $.Values.auth.username | quote }}
  197. - name: CLICKHOUSE_SHARD_ID
  198. value: {{ printf "shard%d" $i | quote }}
  199. - name: CLICKHOUSE_REPLICA_ID
  200. valueFrom:
  201. fieldRef:
  202. fieldPath: metadata.name
  203. - name: CLICKHOUSE_ADMIN_PASSWORD
  204. valueFrom:
  205. secretKeyRef:
  206. name: {{ include "clickhouse.secretName" $ }}
  207. key: {{ include "clickhouse.secretKey" $ }}
  208. {{- if $.Values.tls.enabled }}
  209. - name: CLICKHOUSE_TLS_CERT_FILE
  210. value: {{ include "clickhouse.tlsCert" $ | quote}}
  211. - name: CLICKHOUSE_TLS_KEY_FILE
  212. value: {{ include "clickhouse.tlsCertKey" $ | quote }}
  213. - name: CLICKHOUSE_TLS_CA_FILE
  214. value: {{ include "clickhouse.tlsCACert" $ | quote }}
  215. {{- end }}
  216. {{- if $.Values.extraEnvVars }}
  217. {{- include "common.tplvalues.render" (dict "value" $.Values.extraEnvVars "context" $) | nindent 12 }}
  218. {{- end }}
  219. {{- if $.Values.keeper.enabled }}
  220. {{- $replicas := $.Values.replicaCount | int }}
  221. {{- range $j, $r := until $replicas }}
  222. - name: {{ printf "KEEPER_NODE_%d" $j }}
  223. value: {{ printf "%s-shard%d-%d.%s.%s.svc.%s" (include "common.names.fullname" $ ) $i $j (include "clickhouse.headlessServiceName" $) (include "common.names.namespace" $) $.Values.clusterDomain }}
  224. {{- end }}
  225. {{- else if $.Values.zookeeper.enabled }}
  226. {{- $replicas := $.Values.zookeeper.replicaCount | int }}
  227. {{- range $j, $r := until $replicas }}
  228. - name: {{ printf "KEEPER_NODE_%d" $j }}
  229. value: {{ printf "%s-%d.%s.%s.svc.%s" (include "clickhouse.zookeeper.fullname" $ ) $j (include "clickhouse.zookeeper.headlessServiceName" $) (include "common.names.namespace" $) $.Values.clusterDomain }}
  230. {{- end }}
  231. {{- end }}
  232. envFrom:
  233. {{- if $.Values.extraEnvVarsCM }}
  234. - configMapRef:
  235. name: {{ include "common.tplvalues.render" (dict "value" $.Values.extraEnvVarsCM "context" $) }}
  236. {{- end }}
  237. {{- if $.Values.extraEnvVarsSecret }}
  238. - secretRef:
  239. name: {{ include "common.tplvalues.render" (dict "value" $.Values.extraEnvVarsSecret "context" $) }}
  240. {{- end }}
  241. {{- if $.Values.resources }}
  242. resources: {{- toYaml $.Values.resources | nindent 12 }}
  243. {{- end }}
  244. ports:
  245. - name: http
  246. containerPort: {{ $.Values.containerPorts.http }}
  247. - name: tcp
  248. containerPort: {{ $.Values.containerPorts.tcp }}
  249. {{- if $.Values.tls.enabled }}
  250. - name: https
  251. containerPort: {{ $.Values.containerPorts.https }}
  252. - name: tcp-secure
  253. containerPort: {{ $.Values.containerPorts.tcpSecure }}
  254. {{- end }}
  255. {{- if $.Values.keeper.enabled }}
  256. - name: tcp-keeper
  257. containerPort: {{ $.Values.containerPorts.keeper }}
  258. - name: tcp-keeperinter
  259. containerPort: {{ $.Values.containerPorts.keeperInter }}
  260. {{- if $.Values.tls.enabled }}
  261. - name: tcp-keepertls
  262. containerPort: {{ $.Values.containerPorts.keeperSecure }}
  263. {{- end }}
  264. {{- end }}
  265. - name: tcp-postgresql
  266. containerPort: {{ $.Values.containerPorts.postgresql }}
  267. - name: tcp-mysql
  268. containerPort: {{ $.Values.containerPorts.mysql }}
  269. - name: http-intersrv
  270. containerPort: {{ $.Values.containerPorts.interserver }}
  271. {{- if $.Values.metrics.enabled }}
  272. - name: http-metrics
  273. containerPort: {{ $.Values.containerPorts.metrics }}
  274. {{- end }}
  275. {{- if not $.Values.diagnosticMode.enabled }}
  276. {{- if $.Values.customLivenessProbe }}
  277. livenessProbe: {{- include "common.tplvalues.render" (dict "value" $.Values.customLivenessProbe "context" $) | nindent 12 }}
  278. {{- else if $.Values.livenessProbe.enabled }}
  279. livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit $.Values.livenessProbe "enabled") "context" $) | nindent 12 }}
  280. httpGet:
  281. path: /ping
  282. port: http
  283. {{- end }}
  284. {{- if $.Values.customReadinessProbe }}
  285. readinessProbe: {{- include "common.tplvalues.render" (dict "value" $.Values.customReadinessProbe "context" $) | nindent 12 }}
  286. {{- else if $.Values.readinessProbe.enabled }}
  287. readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit $.Values.readinessProbe "enabled") "context" $) | nindent 12 }}
  288. httpGet:
  289. path: /ping
  290. port: http
  291. {{- end }}
  292. {{- if $.Values.customStartupProbe }}
  293. startupProbe: {{- include "common.tplvalues.render" (dict "value" $.Values.customStartupProbe "context" $) | nindent 12 }}
  294. {{- else if $.Values.startupProbe.enabled }}
  295. startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit $.Values.startupProbe "enabled") "context" $) | nindent 12 }}
  296. httpGet:
  297. path: /ping
  298. port: http
  299. {{- end }}
  300. {{- end }}
  301. {{- if $.Values.lifecycleHooks }}
  302. lifecycle: {{- include "common.tplvalues.render" (dict "value" $.Values.lifecycleHooks "context" $) | nindent 12 }}
  303. {{- end }}
  304. volumeMounts:
  305. - name: scripts
  306. mountPath: /scripts/setup.sh
  307. subPath: setup.sh
  308. - name: data
  309. mountPath: /bitnami/clickhouse
  310. - name: config
  311. mountPath: /bitnami/clickhouse/etc/conf.d/default
  312. - name: config-users
  313. mountPath: /bitnami/clickhouse/etc
  314. {{- if or $.Values.extraOverridesConfigmap $.Values.extraOverrides }}
  315. - name: extra-config
  316. mountPath: /bitnami/clickhouse/etc/conf.d/extra-configmap
  317. {{- end }}
  318. {{- if $.Values.extraOverridesSecret }}
  319. - name: extra-secret
  320. mountPath: /bitnami/clickhouse/etc/conf.d/extra-secret
  321. {{- end }}
  322. {{- if $.Values.tls.enabled }}
  323. - name: clickhouse-certificates
  324. mountPath: /bitnami/clickhouse/certs
  325. {{- end }}
  326. {{- if or $.Values.initdbScriptsSecret $.Values.initdbScripts }}
  327. - name: custom-init-scripts
  328. mountPath: /docker-entrypoint-initdb.d
  329. {{- end }}
  330. {{- if or $.Values.startdbScriptsSecret $.Values.startdbScripts }}
  331. - name: custom-start-scripts
  332. mountPath: /docker-entrypoint-startdb.d
  333. {{- end }}
  334. {{- if $.Values.extraVolumeMounts }}
  335. {{- include "common.tplvalues.render" (dict "value" $.Values.extraVolumeMounts "context" $) | nindent 12 }}
  336. {{- end }}
  337. {{- if $.Values.sidecars }}
  338. {{- include "common.tplvalues.render" ( dict "value" $.Values.sidecars "context" $) | nindent 8 }}
  339. {{- end }}
  340. volumes:
  341. - name: scripts
  342. configMap:
  343. name: {{ printf "%s-scripts" (include "common.names.fullname" $) }}
  344. defaultMode: 0755
  345. - name: config
  346. configMap:
  347. name: {{ template "clickhouse.configmapName" $ }}
  348. - name: config-users
  349. configMap:
  350. name: clickhouse-users
  351. items:
  352. - key: users.xml
  353. path: users.xml
  354. {{- if or $.Values.initdbScriptsSecret $.Values.initdbScripts }}
  355. - name: custom-init-scripts
  356. secret:
  357. secretName: {{ include "clickhouse.initdbScriptsSecret" $ }}
  358. {{- end }}
  359. {{- if or $.Values.startdbScriptsSecret $.Values.startdbScripts }}
  360. - name: custom-start-scripts
  361. secret:
  362. secretName: {{ include "clickhouse.startdbScriptsSecret" $ }}
  363. {{- end }}
  364. {{- if or $.Values.extraOverridesConfigmap $.Values.extraOverrides }}
  365. - name: extra-config
  366. configMap:
  367. name: {{ template "clickhouse.extraConfigmapName" $ }}
  368. {{- end }}
  369. {{- if $.Values.extraOverridesSecret }}
  370. - name: extra-secret
  371. secret:
  372. secretName: {{ $.Values.extraOverridesSecret }}
  373. {{- end }}
  374. {{- if not $.Values.persistence.enabled }}
  375. - name: data
  376. emptyDir: {}
  377. {{- end }}
  378. {{- if $.Values.tls.enabled }}
  379. - name: raw-certificates
  380. secret:
  381. secretName: {{ include "clickhouse.tlsSecretName" $ }}
  382. - name: clickhouse-certificates
  383. emptyDir: {}
  384. {{- end }}
  385. {{- if $.Values.extraVolumes }}
  386. {{- include "common.tplvalues.render" (dict "value" $.Values.extraVolumes "context" $) | nindent 8 }}
  387. {{- end }}
  388. {{- if $.Values.persistence.enabled }}
  389. volumeClaimTemplates:
  390. - metadata:
  391. name: data
  392. annotations:
  393. {{- if $.Values.persistence.annotations }}
  394. {{- include "common.tplvalues.render" (dict "value" $.Values.persistence.annotations "context" $) | nindent 10 }}
  395. {{- end }}
  396. {{- if $.Values.commonAnnotations }}
  397. {{- include "common.tplvalues.render" (dict "value" $.Values.commonAnnotations "context" $) | nindent 10 }}
  398. {{- end }}
  399. labels:
  400. {{- if $.Values.commonLabels }}
  401. {{- include "common.tplvalues.render" (dict "value" $.Values.commonLabels "context" $) | nindent 10 }}
  402. {{- end }}
  403. {{- if $.Values.persistence.labels }}
  404. labels: {{- include "common.tplvalues.render" (dict "value" $.Values.persistence.labels "context" $) | nindent 10 }}
  405. {{- end }}
  406. spec:
  407. accessModes:
  408. {{- range $.Values.persistence.accessModes }}
  409. - {{ . | quote }}
  410. {{- end }}
  411. resources:
  412. requests:
  413. storage: {{ $.Values.persistence.size | quote }}
  414. {{- if $.Values.persistence.selector }}
  415. selector: {{- include "common.tplvalues.render" (dict "value" $.Values.persistence.selector "context" $) | nindent 10 }}
  416. {{- end }}
  417. {{- if $.Values.persistence.dataSource }}
  418. dataSource: {{- include "common.tplvalues.render" (dict "value" $.Values.persistence.dataSource "context" $) | nindent 10 }}
  419. {{- end }}
  420. {{- include "common.storage.class" (dict "persistence" $.Values.persistence "global" $.Values.global) | nindent 8 }}
  421. {{- end }}
  422. ---
  423. {{- end }}