values.yaml 44 KB

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