values.yaml 44 KB

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