values.yaml 47 KB

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