values.yaml 46 KB

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