values.yaml 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150
  1. ## @section Global parameters
  2. ## Global Docker image parameters
  3. ## Please, note that this will override the image parameters, including dependencies, configured to use the global value
  4. ## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
  5. ##
  6. ## @param global.imageRegistry Global Docker image registry
  7. ## @param global.imagePullSecrets Global Docker registry secret names as an array
  8. ## @param global.storageClass Global StorageClass for Persistent Volume(s)
  9. ##
  10. global:
  11. imageRegistry: ""
  12. ## E.g.
  13. ## imagePullSecrets:
  14. ## - myRegistryKeySecretName
  15. ##
  16. imagePullSecrets: []
  17. storageClass: "openebs-hostpath"
  18. ## @section Common parameters
  19. ##
  20. ## @param kubeVersion Override Kubernetes version
  21. ##
  22. kubeVersion: ""
  23. ## @param nameOverride String to partially override common.names.name
  24. ##
  25. nameOverride: ""
  26. ## @param fullnameOverride String to fully override common.names.fullname
  27. ##
  28. fullnameOverride: ""
  29. ## @param namespaceOverride String to fully override common.names.namespace
  30. ##
  31. namespaceOverride: ""
  32. ## @param commonLabels Labels to add to all deployed objects
  33. ##truetruetruetruetruetruetruetruetruetruetruetruetruetrue
  34. commonLabels: {}
  35. ## @param commonAnnotations Annotations to add to all deployed objects
  36. ##
  37. commonAnnotations: {}
  38. ## @param clusterDomain Kubernetes cluster domain name
  39. ##
  40. clusterDomain: cluster.local
  41. ## @param extraDeploy Array of extra objects to deploy with the release
  42. ##
  43. extraDeploy: []
  44. ## Enable diagnostic mode in the deployment
  45. ##
  46. diagnosticMode:
  47. ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
  48. ##
  49. enabled: false
  50. ## @param diagnosticMode.command Command to override all containers in the deployment
  51. ##
  52. command:
  53. - sleep
  54. ## @param diagnosticMode.args Args to override all containers in the deployment
  55. ##
  56. args:
  57. - infinity
  58. ## @section ClickHouse Parameters
  59. ##
  60. ## Bitnami ClickHouse image
  61. ## ref: https://hub.docker.com/r/bitnami/clickhouse/tags/
  62. ## @param image.registry ClickHouse image registry
  63. ## @param image.repository ClickHouse image repository
  64. ## @param image.tag ClickHouse image tag (immutable tags are recommended)
  65. ## @param image.digest ClickHouse image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
  66. ## @param image.pullPolicy ClickHouse image pull policy
  67. ## @param image.pullSecrets ClickHouse image pull secrets
  68. ## @param image.debug Enable ClickHouse image debug mode
  69. ##
  70. image:
  71. registry: docker.io
  72. repository: bitnami/clickhouse
  73. #tag: 24.5.1-debian-12-r0
  74. tag: 23.12.2-debian-11-r0
  75. digest: ""
  76. ## Specify a imagePullPolicy
  77. ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
  78. ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
  79. ##
  80. pullPolicy: IfNotPresent
  81. ## Optionally specify an array of imagePullSecrets.
  82. ## Secrets must be manually created in the namespace.
  83. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  84. ## e.g:
  85. ## pullSecrets:
  86. ## - myRegistryKeySecretName
  87. ##
  88. pullSecrets: []
  89. ## Enable debug mode
  90. ##
  91. debug: false
  92. ## @param shards Number of ClickHouse shards to deploy
  93. ##
  94. shards: 2
  95. ## @param replicaCount Number of ClickHouse replicas per shard to deploy
  96. ## if keeper enable, same as keeper count, keeper cluster by shards.
  97. ##
  98. replicaCount: 2
  99. ## @param containerPorts.http ClickHouse HTTP container port
  100. ## @param containerPorts.https ClickHouse HTTPS container port
  101. ## @param containerPorts.tcp ClickHouse TCP container port
  102. ## @param containerPorts.tcpSecure ClickHouse TCP (secure) container port
  103. ## @param containerPorts.keeper ClickHouse keeper TCP container port
  104. ## @param containerPorts.keeperSecure ClickHouse keeper TCP (secure) container port
  105. ## @param containerPorts.keeperInter ClickHouse keeper interserver TCP container port
  106. ## @param containerPorts.mysql ClickHouse MySQL container port
  107. ## @param containerPorts.postgresql ClickHouse PostgreSQL container port
  108. ## @param containerPorts.interserver ClickHouse Interserver container port
  109. ## @param containerPorts.metrics ClickHouse metrics container port
  110. ##
  111. containerPorts:
  112. http: 8123
  113. https: 8443
  114. tcp: 9000
  115. tcpSecure: 9440
  116. keeper: 2181
  117. keeperSecure: 3181
  118. keeperInter: 9444
  119. mysql: 9004
  120. postgresql: 9005
  121. interserver: 9009
  122. metrics: 8001
  123. ## Configure extra options for ClickHouse containers' liveness and readiness probes
  124. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
  125. ## @param livenessProbe.enabled Enable livenessProbe on ClickHouse containers
  126. ## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
  127. ## @param livenessProbe.periodSeconds Period seconds for livenessProbe
  128. ## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
  129. ## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
  130. ## @param livenessProbe.successThreshold Success threshold for livenessProbe
  131. ##
  132. livenessProbe:
  133. enabled: true
  134. failureThreshold: 3
  135. initialDelaySeconds: 10
  136. periodSeconds: 10
  137. successThreshold: 1
  138. timeoutSeconds: 1
  139. ## @param readinessProbe.enabled Enable readinessProbe on ClickHouse containers
  140. ## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
  141. ## @param readinessProbe.periodSeconds Period seconds for readinessProbe
  142. ## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
  143. ## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
  144. ## @param readinessProbe.successThreshold Success threshold for readinessProbe
  145. ##
  146. readinessProbe:
  147. enabled: true
  148. failureThreshold: 3
  149. initialDelaySeconds: 10
  150. periodSeconds: 10
  151. successThreshold: 1
  152. timeoutSeconds: 1
  153. ## @param startupProbe.enabled Enable startupProbe on ClickHouse containers
  154. ## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
  155. ## @param startupProbe.periodSeconds Period seconds for startupProbe
  156. ## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
  157. ## @param startupProbe.failureThreshold Failure threshold for startupProbe
  158. ## @param startupProbe.successThreshold Success threshold for startupProbe
  159. ##
  160. startupProbe:
  161. enabled: true
  162. failureThreshold: 3
  163. initialDelaySeconds: 10
  164. periodSeconds: 10
  165. successThreshold: 1
  166. timeoutSeconds: 1
  167. ## @param customLivenessProbe Custom livenessProbe that overrides the default one
  168. ##
  169. customLivenessProbe: {}
  170. ## @param customReadinessProbe Custom readinessProbe that overrides the default one
  171. ##
  172. customReadinessProbe: {}
  173. ## @param customStartupProbe Custom startupProbe that overrides the default one
  174. ##
  175. customStartupProbe: {}
  176. ## ClickHouse resource requests and limits
  177. ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
  178. ## @param resources.limits The resources limits for the ClickHouse containers
  179. ## @param resources.requests The requested resources for the ClickHouse containers
  180. ##
  181. resources:
  182. limits:
  183. cpu: 4
  184. memory: 8Gi
  185. requests:
  186. cpu: 2
  187. memory: 4Gi
  188. ## Configure Pods Security Context
  189. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
  190. ## @param podSecurityContext.enabled Enabled ClickHouse pods' Security Context
  191. ## @param podSecurityContext.fsGroup Set ClickHouse pod's Security Context fsGroup
  192. ## @param podSecurityContext.seccompProfile.type Set ClickHouse container's Security Context seccomp profile
  193. ## If you are using Kubernetes 1.18, the following code needs to be commented out.
  194. ##
  195. podSecurityContext:
  196. enabled: true
  197. fsGroup: 1001
  198. seccompProfile:
  199. type: "RuntimeDefault"
  200. ## Configure Container Security Context
  201. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
  202. ## @param containerSecurityContext.enabled Enabled ClickHouse containers' Security Context
  203. ## @param containerSecurityContext.runAsUser Set ClickHouse containers' Security Context runAsUser
  204. ## @param containerSecurityContext.runAsNonRoot Set ClickHouse containers' Security Context runAsNonRoot
  205. ## @param containerSecurityContext.allowPrivilegeEscalation Set ClickHouse container's privilege escalation
  206. ## @param containerSecurityContext.capabilities.drop Set ClickHouse container's Security Context runAsNonRoot
  207. ##
  208. containerSecurityContext:
  209. enabled: true
  210. runAsUser: 1001
  211. runAsNonRoot: true
  212. allowPrivilegeEscalation: false
  213. capabilities:
  214. drop: ["ALL"]
  215. ## Authentication
  216. ## @param auth.username ClickHouse Admin username
  217. ## @param auth.password ClickHouse Admin password
  218. ## @param auth.existingSecret Name of a secret containing the Admin password
  219. ## @param auth.existingSecretKey Name of the key inside the existing secret
  220. ##
  221. auth:
  222. username: default
  223. password: "cecf@cestong.com"
  224. existingSecret: ""
  225. existingSecretKey: ""
  226. ## @param logLevel Logging level
  227. ##
  228. logLevel: information
  229. ## @section ClickHouse keeper configuration parameters
  230. ## @param keeper.enabled Deploy ClickHouse keeper. Support is experimental.
  231. ##
  232. keeper:
  233. enabled: false
  234. ## @param defaultConfigurationOverrides [string] Default configuration overrides (evaluated as a template)
  235. ##
  236. defaultConfigurationOverridesUsers: |
  237. <?xml version="1.0"?>
  238. <clickhouse>
  239. <!-- See also the files in users.d directory where the settings can be overridden. -->
  240. <!-- Profiles of settings. -->
  241. <profiles>
  242. <!-- Default settings. -->
  243. <default>
  244. <async_insert>1</async_insert>
  245. <wait_for_async_insert>0</wait_for_async_insert>
  246. <async_insert_max_data_size>1000000</async_insert_max_data_size>
  247. <log_queries_probability>1</log_queries_probability>
  248. </default>
  249. <readonly>
  250. <readonly>1</readonly>
  251. </readonly>
  252. </profiles>
  253. <users>
  254. <default>
  255. <password from_env="CLICKHOUSE_ADMIN_PASSWORD"/>
  256. <networks>
  257. <ip>::/0</ip>
  258. </networks>
  259. <profile>default</profile>
  260. <quota>default</quota>
  261. <access_management>1</access_management>
  262. </default>
  263. <viewer>
  264. <password>ngh5T@12356789</password>
  265. <networks>
  266. <ip>::/0</ip>
  267. </networks>
  268. <!-- Settings profile for user. -->
  269. <profile>readonly</profile>
  270. <quota>default</quota>
  271. </viewer>
  272. </users>
  273. <!-- Quotas. -->
  274. <quotas>
  275. <!-- Name of quota. -->
  276. <default>
  277. <!-- Limits for time interval. You could specify many intervals with different limits. -->
  278. <interval>
  279. <!-- Length of interval. -->
  280. <duration>3600</duration>
  281. <!-- No limits. Just calculate resource usage for time interval. -->
  282. <queries>0</queries>
  283. <errors>0</errors>
  284. <result_rows>0</result_rows>
  285. <read_rows>0</read_rows>
  286. <execution_time>0</execution_time>
  287. </interval>
  288. </default>
  289. </quotas>
  290. <timezone>Asia/Shanghai</timezone>
  291. </clickhouse>
  292. defaultConfigurationOverrides: |
  293. <clickhouse>
  294. <merge_tree>
  295. <parts_to_throw_insert>3000</parts_to_throw_insert>
  296. </merge_tree>
  297. <max_table_size_to_drop>0</max_table_size_to_drop>
  298. <max_partition_size_to_drop>0</max_partition_size_to_drop>
  299. <query_log>
  300. <database>system</database>
  301. <table>query_log</table>
  302. <partition_by>event_date</partition_by>
  303. <ttl>event_time + INTERVAL 7 DAY</ttl>
  304. <flush_interval_milliseconds>7500</flush_interval_milliseconds>
  305. </query_log>
  306. <storage_configuration>
  307. <disks>
  308. <backups>
  309. <type>local</type>
  310. <path>/opt/bitnami/clickhouse/tmp/backups/</path>
  311. </backups>
  312. </disks>
  313. </storage_configuration>
  314. <backups>
  315. <allowed_disk>backups</allowed_disk>
  316. <allowed_path>/opt/bitnami/clickhouse/tmp/backups/</allowed_path>
  317. </backups>
  318. <!-- Macros -->
  319. <max_concurrent_queries>500</max_concurrent_queries>
  320. <max_connections>4096</max_connections>
  321. <macros>
  322. <shard from_env="CLICKHOUSE_SHARD_ID"></shard>
  323. <replica from_env="CLICKHOUSE_REPLICA_ID"></replica>
  324. <layer>{{ include "common.names.fullname" . }}</layer>
  325. </macros>
  326. <!-- Log Level -->
  327. <logger>
  328. <level>{{ .Values.logLevel }}</level>
  329. </logger>
  330. {{- if or (ne (int .Values.shards) 1) (ne (int .Values.replicaCount) 1)}}
  331. <!-- Cluster configuration - Any update of the shards and replicas requires helm upgrade -->
  332. <remote_servers>
  333. <default>
  334. {{- $shards := $.Values.shards | int }}
  335. {{- range $shard, $e := until $shards }}
  336. <shard>
  337. {{- $replicas := $.Values.replicaCount | int }}
  338. {{- range $i, $_e := until $replicas }}
  339. <replica>
  340. <host>{{ printf "%s-shard%d-%d.%s.%s.svc.%s" (include "common.names.fullname" $ ) $shard $i (include "clickhouse.headlessServiceName" $) (include "common.names.namespace" $) $.Values.clusterDomain }}</host>
  341. <port>{{ $.Values.service.ports.tcp }}</port>
  342. <user>default</user>
  343. <password>cecf@cestong.com</password>
  344. </replica>
  345. {{- end }}
  346. </shard>
  347. {{- end }}
  348. </default>
  349. </remote_servers>
  350. {{- end }}
  351. {{- if .Values.keeper.enabled }}
  352. <!-- keeper configuration -->
  353. <keeper_server>
  354. {{/*ClickHouse keeper configuration using the helm chart */}}
  355. <tcp_port>{{ $.Values.containerPorts.keeper }}</tcp_port>
  356. {{- if .Values.tls.enabled }}
  357. <tcp_port_secure>{{ $.Values.containerPorts.keeperSecure }}</tcp_port_secure>
  358. {{- end }}
  359. <server_id from_env="KEEPER_SERVER_ID"></server_id>
  360. <log_storage_path>/bitnami/clickhouse/keeper/coordination/log</log_storage_path>
  361. <snapshot_storage_path>/bitnami/clickhouse/keeper/coordination/snapshots</snapshot_storage_path>
  362. <coordination_settings>
  363. <operation_timeout_ms>10000</operation_timeout_ms>
  364. <session_timeout_ms>30000</session_timeout_ms>
  365. <raft_logs_level>trace</raft_logs_level>
  366. </coordination_settings>
  367. <raft_configuration>
  368. {{- $nodes := .Values.replicaCount | int }}
  369. {{- range $node, $e := until $nodes }}
  370. <server>
  371. <id>{{ $node | int }}</id>
  372. <hostname from_env="{{ printf "KEEPER_NODE_%d" $node }}"></hostname>
  373. <port>{{ $.Values.service.ports.keeperInter }}</port>
  374. </server>
  375. {{- end }}
  376. </raft_configuration>
  377. </keeper_server>
  378. {{- end }}
  379. {{- if or .Values.keeper.enabled .Values.zookeeper.enabled .Values.externalZookeeper.servers }}
  380. <!-- Zookeeper configuration -->
  381. <zookeeper>
  382. {{- if or .Values.keeper.enabled }}
  383. {{- $nodes := .Values.replicaCount | int }}
  384. {{- range $node, $e := until $nodes }}
  385. <node>
  386. <host from_env="{{ printf "KEEPER_NODE_%d" $node }}"></host>
  387. <port>{{ $.Values.service.ports.keeper }}</port>
  388. </node>
  389. {{- end }}
  390. {{- else if .Values.zookeeper.enabled }}
  391. {{/* Zookeeper configuration using the helm chart */}}
  392. {{- $nodes := .Values.zookeeper.replicaCount | int }}
  393. {{- range $node, $e := until $nodes }}
  394. <node>
  395. <host from_env="{{ printf "KEEPER_NODE_%d" $node }}"></host>
  396. <port>{{ $.Values.zookeeper.service.ports.client }}</port>
  397. </node>
  398. {{- end }}
  399. {{- else if .Values.externalZookeeper.servers }}
  400. {{/* Zookeeper configuration using an external instance */}}
  401. {{- range $node :=.Values.externalZookeeper.servers }}
  402. <node>
  403. <host>{{ $node }}</host>
  404. <port>{{ $.Values.externalZookeeper.port }}</port>
  405. </node>
  406. {{- end }}
  407. {{- end }}
  408. </zookeeper>
  409. {{- end }}
  410. {{- if .Values.tls.enabled }}
  411. <!-- TLS configuration -->
  412. <tcp_port_secure from_env="CLICKHOUSE_TCP_SECURE_PORT"></tcp_port_secure>
  413. <https_port from_env="CLICKHOUSE_HTTPS_PORT"></https_port>
  414. <openSSL>
  415. <server>
  416. {{- $certFileName := default "tls.crt" .Values.tls.certFilename }}
  417. {{- $keyFileName := default "tls.key" .Values.tls.certKeyFilename }}
  418. <certificateFile>/bitnami/clickhouse/certs/{{$certFileName}}</certificateFile>
  419. <privateKeyFile>/bitnami/clickhouse/certs/{{$keyFileName}}</privateKeyFile>
  420. <verificationMode>none</verificationMode>
  421. <cacheSessions>true</cacheSessions>
  422. <disableProtocols>sslv2,sslv3</disableProtocols>
  423. <preferServerCiphers>true</preferServerCiphers>
  424. {{- if or .Values.tls.autoGenerated .Values.tls.certCAFilename }}
  425. {{- $caFileName := default "ca.crt" .Values.tls.certCAFilename }}
  426. <caConfig>/bitnami/clickhouse/certs/{{$caFileName}}</caConfig>
  427. {{- else }}
  428. <loadDefaultCAFile>true</loadDefaultCAFile>
  429. {{- end }}
  430. </server>
  431. <client>
  432. <loadDefaultCAFile>true</loadDefaultCAFile>
  433. <cacheSessions>true</cacheSessions>
  434. <disableProtocols>sslv2,sslv3</disableProtocols>
  435. <preferServerCiphers>true</preferServerCiphers>
  436. <verificationMode>none</verificationMode>
  437. <invalidCertificateHandler>
  438. <name>AcceptCertificateHandler</name>
  439. </invalidCertificateHandler>
  440. </client>
  441. </openSSL>
  442. {{- end }}
  443. {{- if .Values.metrics.enabled }}
  444. <!-- Prometheus metrics -->
  445. <prometheus>
  446. <endpoint>/metrics</endpoint>
  447. <port from_env="CLICKHOUSE_METRICS_PORT"></port>
  448. <metrics>true</metrics>
  449. <events>true</events>
  450. <asynchronous_metrics>true</asynchronous_metrics>
  451. </prometheus>
  452. {{- end }}
  453. </clickhouse>
  454. ## @param existingOverridesConfigmap The name of an existing ConfigMap with your custom configuration for ClickHouse
  455. ##
  456. existingOverridesConfigmap: ""
  457. ## @param extraOverrides Extra configuration overrides (evaluated as a template) apart from the default
  458. ##
  459. extraOverrides: ""
  460. ## @param extraOverridesConfigmap The name of an existing ConfigMap with extra configuration for ClickHouse
  461. ##
  462. extraOverridesConfigmap: ""
  463. ## @param extraOverridesSecret The name of an existing ConfigMap with your custom configuration for ClickHouse
  464. ##
  465. extraOverridesSecret: ""
  466. ## @param initdbScripts Dictionary of initdb scripts
  467. ## Specify dictionary of scripts to be run at first boot
  468. ## Example:
  469. ## initdbScripts:
  470. ## my_init_script.sh: |
  471. ## #!/bin/bash
  472. ## echo "Do something."
  473. ##
  474. initdbScripts: {}
  475. ## @param initdbScriptsSecret ConfigMap with the initdb scripts (Note: Overrides `initdbScripts`)
  476. ##
  477. initdbScriptsSecret: ""
  478. ## @param startdbScripts Dictionary of startdb scripts
  479. ## Specify dictionary of scripts to be run on every start
  480. ## Example:
  481. ## startdbScripts:
  482. ## my_start_script.sh: |
  483. ## #!/bin/bash
  484. ## echo "Do something."
  485. ##
  486. startdbScripts: {}
  487. ## @param startdbScriptsSecret ConfigMap with the startdb scripts (Note: Overrides `startdbScripts`)
  488. ##
  489. startdbScriptsSecret: ""
  490. ## @param command Override default container command (useful when using custom images)
  491. ##
  492. command:
  493. - /scripts/setup.sh
  494. ## @param args Override default container args (useful when using custom images)
  495. ##
  496. args: []
  497. ## @param hostAliases ClickHouse pods host aliases
  498. ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
  499. ##
  500. hostAliases: []
  501. ## @param podLabels Extra labels for ClickHouse pods
  502. ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
  503. ##
  504. podLabels: {}
  505. ## @param podAnnotations Annotations for ClickHouse pods
  506. ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
  507. ##
  508. podAnnotations: {}
  509. ## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
  510. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  511. ##
  512. podAffinityPreset: ""
  513. ## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
  514. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  515. ##
  516. podAntiAffinityPreset: soft
  517. ## Node affinity preset
  518. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
  519. ##
  520. nodeAffinityPreset:
  521. ## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
  522. ##
  523. type: ""
  524. ## @param nodeAffinityPreset.key Node label key to match. Ignored if `affinity` is set
  525. ##
  526. key: ""
  527. ## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set
  528. ## E.g.
  529. ## values:
  530. ## - e2e-az1
  531. ## - e2e-az2
  532. ##
  533. values: []
  534. ## @param affinity Affinity for ClickHouse pods assignment
  535. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
  536. ## NOTE: `podAffinityPreset`, `podAntiAffinityPreset`, and `nodeAffinityPreset` will be ignored when it's set
  537. ##
  538. affinity: {}
  539. ## @param nodeSelector Node labels for ClickHouse pods assignment
  540. ## ref: https://kubernetes.io/docs/user-guide/node-selection/
  541. ##
  542. #nodeSelector:
  543. # kubernetes.io/hostname: cest-3
  544. #n @param to.io/hostname: cest-3erations Tolerations for ClickHouse pods assignment
  545. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  546. ##
  547. tolerations: []
  548. ## @param updateStrategy.type ClickHouse statefulset strategy type
  549. ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
  550. ##
  551. updateStrategy:
  552. ## StrategyType
  553. ## Can be set to RollingUpdate or OnDelete
  554. ##
  555. type: RollingUpdate
  556. ## @param podManagementPolicy Statefulset Pod management policy, it needs to be Parallel to be able to complete the cluster join
  557. ## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
  558. ##
  559. podManagementPolicy: Parallel
  560. ## @param priorityClassName ClickHouse pods' priorityClassName
  561. ##
  562. priorityClassName: ""
  563. ## @param topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
  564. ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
  565. ##
  566. topologySpreadConstraints: []
  567. ## @param schedulerName Name of the k8s scheduler (other than default) for ClickHouse pods
  568. ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
  569. ##
  570. schedulerName: ""
  571. ## @param terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
  572. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
  573. ##
  574. terminationGracePeriodSeconds: ""
  575. ## @param lifecycleHooks for the ClickHouse container(s) to automate configuration before or after startup
  576. ##
  577. lifecycleHooks: {}
  578. ## @param extraEnvVars Array with extra environment variables to add to ClickHouse nodes
  579. ## e.g:
  580. ## extraEnvVars:
  581. ## - name: FOO
  582. ## value: "bar"
  583. ##
  584. extraEnvVars: []
  585. ## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars for ClickHouse nodes
  586. ##
  587. extraEnvVarsCM: ""
  588. ## @param extraEnvVarsSecret Name of existing Secret containing extra env vars for ClickHouse nodes
  589. ##
  590. extraEnvVarsSecret: ""
  591. ## @param extraVolumes Optionally specify extra list of additional volumes for the ClickHouse pod(s)
  592. ##
  593. extraVolumes: []
  594. ## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for the ClickHouse container(s)
  595. ##
  596. extraVolumeMounts: []
  597. ## @param sidecars Add additional sidecar containers to the ClickHouse pod(s)
  598. ## e.g:
  599. ## sidecars:
  600. ## - name: your-image-name
  601. ## image: your-image
  602. ## imagePullPolicy: Always
  603. ## ports:
  604. ## - name: portname
  605. ## containerPort: 1234
  606. ##
  607. sidecars: []
  608. ## @param initContainers Add additional init containers to the ClickHouse pod(s)
  609. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
  610. ## e.g:
  611. ## initContainers:
  612. ## - name: your-image-name
  613. ## image: your-image
  614. ## imagePullPolicy: Always
  615. ## command: ['sh', '-c', 'echo "hello world"']
  616. ##
  617. initContainers: []
  618. ## TLS configuration
  619. ##
  620. tls:
  621. ## @param tls.enabled Enable TLS traffic support
  622. ##
  623. enabled: false
  624. ## @param tls.autoGenerated Generate automatically self-signed TLS certificates
  625. ##
  626. autoGenerated: false
  627. ## @param tls.certificatesSecret Name of an existing secret that contains the certificates
  628. ##
  629. certificatesSecret: ""
  630. ## @param tls.certFilename Certificate filename
  631. ##
  632. certFilename: ""
  633. ## @param tls.certKeyFilename Certificate key filename
  634. ##
  635. certKeyFilename: ""
  636. ## @param tls.certCAFilename CA Certificate filename
  637. ## If provided, PostgreSQL will authenticate TLS/SSL clients by requesting them a certificate
  638. ## ref: https://www.postgresql.org/docs/9.6/auth-methods.html
  639. ##
  640. certCAFilename: ""
  641. ## @section Traffic Exposure Parameters
  642. ##
  643. ## ClickHouse service parameters
  644. ##
  645. service:
  646. ## @param service.type ClickHouse service type
  647. ##
  648. type: NodePort
  649. # type: ClusterIP
  650. ## @param service.ports.http ClickHouse service HTTP port
  651. ## @param service.ports.https ClickHouse service HTTPS port
  652. ## @param service.ports.tcp ClickHouse service TCP port
  653. ## @param service.ports.tcpSecure ClickHouse service TCP (secure) port
  654. ## @param service.ports.keeper ClickHouse keeper TCP container port
  655. ## @param service.ports.keeperSecure ClickHouse keeper TCP (secure) container port
  656. ## @param service.ports.keeperInter ClickHouse keeper interserver TCP container port
  657. ## @param service.ports.mysql ClickHouse service MySQL port
  658. ## @param service.ports.postgresql ClickHouse service PostgreSQL port
  659. ## @param service.ports.interserver ClickHouse service Interserver port
  660. ## @param service.ports.metrics ClickHouse service metrics port
  661. ##
  662. ports:
  663. http: 8123
  664. tcp: 9000
  665. mysql: 9004
  666. metrics: 8001
  667. keeperInter: 9444
  668. ## Node ports to expose
  669. ## @param service.nodePorts.http Node port for HTTP
  670. ## @param service.nodePorts.https Node port for HTTPS
  671. ## @param service.nodePorts.tcp Node port for TCP
  672. ## @param service.nodePorts.tcpSecure Node port for TCP (with TLS)
  673. ## @param service.nodePorts.keeper ClickHouse keeper TCP container port
  674. ## @param service.nodePorts.keeperSecure ClickHouse keeper TCP (secure) container port
  675. ## @param service.nodePorts.keeperInter ClickHouse keeper interserver TCP container port
  676. ## @param service.nodePorts.mysql Node port for MySQL
  677. ## @param service.nodePorts.postgresql Node port for PostgreSQL
  678. ## @param service.nodePorts.interserver Node port for Interserver
  679. ## @param service.nodePorts.metrics Node port for metrics
  680. ## NOTE: choose port between <30000-32767>
  681. ##
  682. nodePorts:
  683. http: "32001"
  684. tcp: "32002"
  685. ## @param service.clusterIP ClickHouse service Cluster IP
  686. ## e.g.:
  687. ## clusterIP: None
  688. ##
  689. clusterIP: ""
  690. ## @param service.loadBalancerIP ClickHouse service Load Balancer IP
  691. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
  692. ##
  693. loadBalancerIP: ""
  694. ## @param service.loadBalancerSourceRanges ClickHouse service Load Balancer sources
  695. ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
  696. ## e.g:
  697. ## loadBalancerSourceRanges:
  698. ## - 10.10.10.0/24
  699. ##
  700. loadBalancerSourceRanges: []
  701. ## @param service.externalTrafficPolicy ClickHouse service external traffic policy
  702. ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
  703. ##
  704. externalTrafficPolicy: Cluster
  705. ## @param service.annotations Additional custom annotations for ClickHouse service
  706. ##
  707. annotations: {}
  708. ## @param service.extraPorts Extra ports to expose in ClickHouse service (normally used with the `sidecars` value)
  709. ##
  710. extraPorts: []
  711. ## @param service.sessionAffinity Control where client requests go, to the same pod or round-robin
  712. ## Values: ClientIP or None
  713. ## ref: https://kubernetes.io/docs/user-guide/services/
  714. ##
  715. sessionAffinity: None
  716. ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
  717. ## sessionAffinityConfig:
  718. ## clientIP:
  719. ## timeoutSeconds: 300
  720. ##
  721. sessionAffinityConfig: {}
  722. ## Headless service properties
  723. ##
  724. headless:
  725. ## @param service.headless.annotations Annotations for the headless service.
  726. ##
  727. annotations: {}
  728. ## External Access to ClickHouse configuration
  729. ##
  730. externalAccess:
  731. ## @param externalAccess.enabled Enable Kubernetes external cluster access to ClickHouse
  732. ##
  733. enabled: false
  734. ## Parameters to configure K8s service(s) used to externally access ClickHouse
  735. ## Note: A new service per will be created
  736. ##
  737. service:
  738. ## @param externalAccess.service.type Kubernetes Service type for external access. It can be NodePort, LoadBalancer or ClusterIP
  739. ##
  740. type: LoadBalancer
  741. ## @param externalAccess.service.ports.http ClickHouse service HTTP port
  742. ## @param externalAccess.service.ports.https ClickHouse service HTTPS port
  743. ## @param externalAccess.service.ports.tcp ClickHouse service TCP port
  744. ## @param externalAccess.service.ports.tcpSecure ClickHouse service TCP (secure) port
  745. ## @param externalAccess.service.ports.keeper ClickHouse keeper TCP container port
  746. ## @param externalAccess.service.ports.keeperSecure ClickHouse keeper TCP (secure) container port
  747. ## @param externalAccess.service.ports.keeperInter ClickHouse keeper interserver TCP container port
  748. ## @param externalAccess.service.ports.mysql ClickHouse service MySQL port
  749. ## @param externalAccess.service.ports.postgresql ClickHouse service PostgreSQL port
  750. ## @param externalAccess.service.ports.interserver ClickHouse service Interserver port
  751. ## @param externalAccess.service.ports.metrics ClickHouse service metrics port
  752. ##
  753. ports:
  754. http: 80
  755. https: 443
  756. tcp: 9000
  757. tcpSecure: 9440
  758. keeper: 2181
  759. keeperSecure: 3181
  760. keeperInter: 9444
  761. mysql: 9004
  762. postgresql: 9005
  763. interserver: 9009
  764. metrics: 8001
  765. ## @param externalAccess.service.loadBalancerIPs Array of load balancer IPs for each ClickHouse . Length must be the same as replicaCount
  766. ## e.g:
  767. ## loadBalancerIPs:
  768. ## - X.X.X.X
  769. ## - Y.Y.Y.Y
  770. ##
  771. loadBalancerIPs: []
  772. ## @param externalAccess.service.loadBalancerAnnotations Array of load balancer annotations for each ClickHouse . Length must be the same as replicaCount
  773. ## e.g:
  774. ## loadBalancerAnnotations:
  775. ## - external-dns.alpha.kubernetes.io/hostname: 1.external.example.com.
  776. ## - external-dns.alpha.kubernetes.io/hostname: 2.external.example.com.
  777. ##
  778. loadBalancerAnnotations: []
  779. ## @param externalAccess.service.loadBalancerSourceRanges Address(es) that are allowed when service is LoadBalancer
  780. ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
  781. ## e.g:
  782. ## loadBalancerSourceRanges:
  783. ## - 10.10.10.0/24
  784. ##
  785. loadBalancerSourceRanges: []
  786. ## @param externalAccess.service.nodePorts.http Node port for HTTP
  787. ## @param externalAccess.service.nodePorts.https Node port for HTTPS
  788. ## @param externalAccess.service.nodePorts.tcp Node port for TCP
  789. ## @param externalAccess.service.nodePorts.tcpSecure Node port for TCP (with TLS)
  790. ## @param externalAccess.service.nodePorts.keeper ClickHouse keeper TCP container port
  791. ## @param externalAccess.service.nodePorts.keeperSecure ClickHouse keeper TCP container port (with TLS)
  792. ## @param externalAccess.service.nodePorts.keeperInter ClickHouse keeper interserver TCP container port
  793. ## @param externalAccess.service.nodePorts.mysql Node port for MySQL
  794. ## @param externalAccess.service.nodePorts.postgresql Node port for PostgreSQL
  795. ## @param externalAccess.service.nodePorts.interserver Node port for Interserver
  796. ## @param externalAccess.service.nodePorts.metrics Node port for metrics
  797. ## NOTE: choose port between <30000-32767>
  798. ## e.g:
  799. ## nodePorts:
  800. ## tls:
  801. ## - 30001
  802. ## - 30002
  803. ##
  804. nodePorts:
  805. http: []
  806. https: []
  807. tcp: []
  808. tcpSecure: []
  809. keeper: []
  810. keeperSecure: []
  811. keeperInter: []
  812. mysql: []
  813. postgresql: []
  814. interserver: []
  815. metrics: []
  816. ## @param externalAccess.service.labels Service labels for external access
  817. ##
  818. labels: {}
  819. ## @param externalAccess.service.annotations Service annotations for external access
  820. ##
  821. annotations: {}
  822. ## @param externalAccess.service.extraPorts Extra ports to expose in the ClickHouse external service
  823. ##
  824. extraPorts: []
  825. ## ClickHouse ingress parameters
  826. ## ref: http://kubernetes.io/docs/user-guide/ingress/
  827. ##
  828. ingress:
  829. ## @param ingress.enabled Enable ingress record generation for ClickHouse
  830. ##
  831. enabled: true
  832. ## @param ingress.pathType Ingress path type
  833. ##
  834. pathType: ImplementationSpecific
  835. ## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
  836. ##
  837. apiVersion: ""
  838. ## @param ingress.hostname Default host for the ingress record
  839. ##
  840. hostname: ch-cold.cestong.com.cn
  841. ## @param ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
  842. ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
  843. ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
  844. ##
  845. ingressClassName: "nginx"
  846. ## @param ingress.path Default path for the ingress record
  847. ## NOTE: You may need to set this to '/*' in order to use this with ALB ingress controllers
  848. ##
  849. path: /
  850. ## @param ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
  851. ## Use this parameter to set the required annotations for cert-manager, see
  852. ## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
  853. ## e.g:
  854. ## annotations:
  855. ## kubernetes.io/ingress.class: nginx
  856. ## cert-manager.io/cluster-issuer: cluster-issuer-name
  857. ##
  858. annotations: {}
  859. ## @param ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter
  860. ## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname }}`
  861. ## You can:
  862. ## - Use the `ingress.secrets` parameter to create this TLS secret
  863. ## - Rely on cert-manager to create it by setting the corresponding annotations
  864. ## - Rely on Helm to create self-signed certificates by setting `ingress.selfSigned=true`
  865. ##
  866. tls: false
  867. ## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
  868. ##
  869. selfSigned: false
  870. ## @param ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record
  871. ## e.g:
  872. ## extraHosts:
  873. ## - name: clickhouse.local
  874. ## path: /
  875. ##
  876. extraHosts: []
  877. ## @param ingress.extraPaths An array with additional arbitrary paths that may need to be added to the ingress under the main host
  878. ## e.g:
  879. ## extraPaths:
  880. ## - path: /*
  881. ## backend:
  882. ## serviceName: ssl-redirect
  883. ## servicePort: use-annotation
  884. ##
  885. extraPaths: []
  886. ## @param ingress.extraTls TLS configuration for additional hostname(s) to be covered with this ingress record
  887. ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
  888. ## e.g:
  889. ## extraTls:
  890. ## - hosts:
  891. ## - clickhouse.local
  892. ## secretName: clickhouse.local-tls
  893. ##
  894. extraTls: []
  895. ## @param ingress.secrets Custom TLS certificates as secrets
  896. ## NOTE: 'key' and 'certificate' are expected in PEM format
  897. ## NOTE: 'name' should line up with a 'secretName' set further up
  898. ## If it is not set and you're using cert-manager, this is unneeded, as it will create a secret for you with valid certificates
  899. ## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created valid for 365 days
  900. ## It is also possible to create and manage the certificates outside of this helm chart
  901. ## Please see README.md for more information
  902. ## e.g:
  903. ## secrets:
  904. ## - name: clickhouse.local-tls
  905. ## key: |-
  906. ## -----BEGIN RSA PRIVATE KEY-----
  907. ## ...
  908. ## -----END RSA PRIVATE KEY-----
  909. ## certificate: |-
  910. ## -----BEGIN CERTIFICATE-----
  911. ## ...
  912. ## -----END CERTIFICATE-----
  913. ##
  914. secrets: []
  915. ## @param ingress.extraRules Additional rules to be covered with this ingress record
  916. ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
  917. ## e.g:
  918. ## extraRules:
  919. ## - host: example.local
  920. ## http:
  921. ## path: /
  922. ## backend:
  923. ## service:
  924. ## name: example-svc
  925. ## port:
  926. ## name: http
  927. ##
  928. extraRules: []
  929. ## @section Persistence Parameters
  930. ##
  931. ## Enable persistence using Persistent Volume Claims
  932. ## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
  933. ##
  934. persistence:
  935. ## @param persistence.enabled Enable persistence using Persistent Volume Claims
  936. ##
  937. enabled: true
  938. ## @param persistence.storageClass Storage class of backing PVC
  939. ## If defined, storageClassName: <storageClass>
  940. ## If set to "-", storageClassName: "", which disables dynamic provisioning
  941. ## If undefined (the default) or set to null, no storageClassName spec is
  942. ## set, choosing the default provisioner. (gp2 on AWS, standard on
  943. ## GKE, AWS & OpenStack)
  944. ##
  945. storageClass: "openebs-hostpath"
  946. ## @param persistence.labels Persistent Volume Claim labels
  947. ##
  948. labels: {}
  949. ## @param persistence.annotations Persistent Volume Claim annotations
  950. ##
  951. annotations: {}
  952. ## @param persistence.accessModes Persistent Volume Access Modes
  953. ##
  954. accessModes:
  955. - ReadWriteOnce
  956. ## @param persistence.size Size of data volume
  957. ##
  958. size: 20Gi
  959. ## @param persistence.selector Selector to match an existing Persistent Volume for WordPress data PVC
  960. ## If set, the PVC can't have a PV dynamically provisioned for it
  961. ## E.g.
  962. ## selector:
  963. ## matchLabels:
  964. ## app: my-app
  965. ##
  966. selector: {}
  967. ## @param persistence.dataSource Custom PVC data source
  968. ##
  969. dataSource: {}
  970. ## @section Init Container Parameters
  971. ##
  972. ## 'volumePermissions' init container parameters
  973. ## Changes the owner and group of the persistent volume mount point to runAsUser:fsGroup values
  974. ## based on the *podSecurityContext/*containerSecurityContext parameters
  975. ##
  976. volumePermissions:
  977. ## @param volumePermissions.enabled Enable init container that changes the owner/group of the PV mount point to `runAsUser:fsGroup`
  978. ##
  979. enabled: false
  980. ## Bitnami Shell image
  981. ## ref: https://hub.docker.com/r/bitnami/bitnami-shell/tags/
  982. ## @param volumePermissions.image.registry Bitnami Shell image registry
  983. ## @param volumePermissions.image.repository Bitnami Shell image repository
  984. ## @param volumePermissions.image.tag Bitnami Shell image tag (immutable tags are recommended)
  985. ## @param volumePermissions.image.pullPolicy Bitnami Shell image pull policy
  986. ## @param volumePermissions.image.pullSecrets Bitnami Shell image pull secrets
  987. ##
  988. image:
  989. registry: docker.io
  990. repository: bitnami/bitnami-shell
  991. tag: 11-debian-11-r101
  992. pullPolicy: IfNotPresent
  993. ## Optionally specify an array of imagePullSecrets.
  994. ## Secrets must be manually created in the namespace.
  995. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  996. ## e.g:
  997. ## pullSecrets:
  998. ## - myRegistryKeySecretName
  999. ##
  1000. pullSecrets: []
  1001. ## Init container's resource requests and limits
  1002. ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
  1003. ## @param volumePermissions.resources.limits The resources limits for the init container
  1004. ## @param volumePermissions.resources.requests The requested resources for the init container
  1005. ##
  1006. resources:
  1007. limits: {}
  1008. requests: {}
  1009. ## Init container Container Security Context
  1010. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
  1011. ## @param volumePermissions.containerSecurityContext.runAsUser Set init container's Security Context runAsUser
  1012. ## NOTE: when runAsUser is set to special value "auto", init container will try to chown the
  1013. ## data folder to auto-determined user&group, using commands: `id -u`:`id -G | cut -d" " -f2`
  1014. ## "auto" is especially useful for OpenShift which has scc with dynamic user ids (and 0 is not allowed)
  1015. ##
  1016. containerSecurityContext:
  1017. runAsUser: 0
  1018. ## @section Other Parameters
  1019. ##
  1020. ## ServiceAccount configuration
  1021. ##
  1022. serviceAccount:
  1023. ## @param serviceAccount.create Specifies whether a ServiceAccount should be created
  1024. ##
  1025. create: true
  1026. ## @param serviceAccount.name The name of the ServiceAccount to use.
  1027. ## If not set and create is true, a name is generated using the common.names.fullname template
  1028. ##
  1029. name: ""
  1030. ## @param serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
  1031. ##
  1032. annotations: {}
  1033. ## @param serviceAccount.automountServiceAccountToken Automount service account token for the server service account
  1034. ##
  1035. automountServiceAccountToken: true
  1036. ## Prometheus metrics
  1037. ##
  1038. metrics:
  1039. ## @param metrics.enabled Enable the export of Prometheus metrics
  1040. ##
  1041. enabled: true
  1042. ## @param metrics.podAnnotations [object] Annotations for metrics scraping
  1043. ##
  1044. podAnnotations:
  1045. prometheus.io/scrape: "true"
  1046. prometheus.io/port: "{{ .Values.containerPorts.metrics }}"
  1047. ## Prometheus Operator ServiceMonitor configuration
  1048. ##
  1049. serviceMonitor:
  1050. ## @param metrics.serviceMonitor.enabled if `true`, creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`)
  1051. ##
  1052. enabled: false
  1053. ## @param metrics.serviceMonitor.namespace Namespace in which Prometheus is running
  1054. ##
  1055. namespace: ""
  1056. ## @param metrics.serviceMonitor.annotations Additional custom annotations for the ServiceMonitor
  1057. ##
  1058. annotations: {}
  1059. ## @param metrics.serviceMonitor.labels Extra labels for the ServiceMonitor
  1060. ##
  1061. labels: {}
  1062. ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in Prometheus
  1063. ##
  1064. jobLabel: ""
  1065. ## @param metrics.serviceMonitor.honorLabels honorLabels chooses the metric's labels on collisions with target labels
  1066. ##
  1067. honorLabels: false
  1068. ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped.
  1069. ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
  1070. ## e.g:
  1071. ## interval: 10s
  1072. ##
  1073. interval: ""
  1074. ## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
  1075. ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
  1076. ## e.g:
  1077. ## scrapeTimeout: 10s
  1078. ##
  1079. scrapeTimeout: ""
  1080. ## @param metrics.serviceMonitor.metricRelabelings Specify additional relabeling of metrics
  1081. ##
  1082. metricRelabelings: []
  1083. ## @param metrics.serviceMonitor.relabelings Specify general relabeling
  1084. ##
  1085. relabelings: []
  1086. ## @param metrics.serviceMonitor.selector Prometheus instance selector labels
  1087. ## ref: https://github.com/bitnami/charts/tree/main/bitnami/prometheus-operator#prometheus-configuration
  1088. ## selector:
  1089. ## prometheus: my-prometheus
  1090. ##
  1091. selector: {}
  1092. ## @section External Zookeeper paramaters
  1093. ##
  1094. externalZookeeper:
  1095. ## @param externalZookeeper.servers List of external zookeeper servers to use
  1096. ## @param externalZookeeper.port Port of the Zookeeper servers
  1097. ##
  1098. servers: ["kafka-zookeeper-headless.observe.svc.cluster.local"]
  1099. port: 2181
  1100. # port: 2888
  1101. ## @section Zookeeper subchart parameters
  1102. ##
  1103. ## @param zookeeper.enabled Deploy Zookeeper subchart
  1104. ## @param zookeeper.replicaCount Number of Zookeeper instances
  1105. ## @param zookeeper.service.ports.client Zookeeper client port
  1106. ##
  1107. zookeeper:
  1108. enabled: true
  1109. replicaCount: 3
  1110. service:
  1111. ports:
  1112. client: 2181