values.yaml 47 KB

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