values.yaml 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175
  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. kubernetes.io/hostname: cest-3
  562. #n @param to.io/hostname: cest-3erations Tolerations for ClickHouse pods assignment
  563. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  564. ##
  565. tolerations: []
  566. ## @param updateStrategy.type ClickHouse statefulset strategy type
  567. ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
  568. ##
  569. updateStrategy:
  570. ## StrategyType
  571. ## Can be set to RollingUpdate or OnDelete
  572. ##
  573. type: RollingUpdate
  574. ## @param podManagementPolicy Statefulset Pod management policy, it needs to be Parallel to be able to complete the cluster join
  575. ## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
  576. ##
  577. podManagementPolicy: Parallel
  578. ## @param priorityClassName ClickHouse pods' priorityClassName
  579. ##
  580. priorityClassName: ""
  581. ## @param topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
  582. ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
  583. ##
  584. topologySpreadConstraints: []
  585. ## @param schedulerName Name of the k8s scheduler (other than default) for ClickHouse pods
  586. ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
  587. ##
  588. schedulerName: ""
  589. ## @param terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
  590. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
  591. ##
  592. terminationGracePeriodSeconds: ""
  593. ## @param lifecycleHooks for the ClickHouse container(s) to automate configuration before or after startup
  594. ##
  595. lifecycleHooks: {}
  596. ## @param extraEnvVars Array with extra environment variables to add to ClickHouse nodes
  597. ## e.g:
  598. ## extraEnvVars:
  599. ## - name: FOO
  600. ## value: "bar"
  601. ##
  602. extraEnvVars: []
  603. ## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars for ClickHouse nodes
  604. ##
  605. extraEnvVarsCM: ""
  606. ## @param extraEnvVarsSecret Name of existing Secret containing extra env vars for ClickHouse nodes
  607. ##
  608. extraEnvVarsSecret: ""
  609. ## @param extraVolumes Optionally specify extra list of additional volumes for the ClickHouse pod(s)
  610. ##
  611. extraVolumes: []
  612. ## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for the ClickHouse container(s)
  613. ##
  614. extraVolumeMounts: []
  615. ## @param sidecars Add additional sidecar containers to the ClickHouse pod(s)
  616. ## e.g:
  617. ## sidecars:
  618. ## - name: your-image-name
  619. ## image: your-image
  620. ## imagePullPolicy: Always
  621. ## ports:
  622. ## - name: portname
  623. ## containerPort: 1234
  624. ##
  625. sidecars: []
  626. ## @param initContainers Add additional init containers to the ClickHouse pod(s)
  627. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
  628. ## e.g:
  629. ## initContainers:
  630. ## - name: your-image-name
  631. ## image: your-image
  632. ## imagePullPolicy: Always
  633. ## command: ['sh', '-c', 'echo "hello world"']
  634. ##
  635. initContainers: []
  636. ## TLS configuration
  637. ##
  638. tls:
  639. ## @param tls.enabled Enable TLS traffic support
  640. ##
  641. enabled: false
  642. ## @param tls.autoGenerated Generate automatically self-signed TLS certificates
  643. ##
  644. autoGenerated: false
  645. ## @param tls.certificatesSecret Name of an existing secret that contains the certificates
  646. ##
  647. certificatesSecret: ""
  648. ## @param tls.certFilename Certificate filename
  649. ##
  650. certFilename: ""
  651. ## @param tls.certKeyFilename Certificate key filename
  652. ##
  653. certKeyFilename: ""
  654. ## @param tls.certCAFilename CA Certificate filename
  655. ## If provided, PostgreSQL will authenticate TLS/SSL clients by requesting them a certificate
  656. ## ref: https://www.postgresql.org/docs/9.6/auth-methods.html
  657. ##
  658. certCAFilename: ""
  659. ## @section Traffic Exposure Parameters
  660. ##
  661. ## ClickHouse service parameters
  662. ##
  663. service:
  664. ## @param service.type ClickHouse service type
  665. ##
  666. type: NodePort
  667. # type: ClusterIP
  668. ## @param service.ports.http ClickHouse service HTTP port
  669. ## @param service.ports.https ClickHouse service HTTPS port
  670. ## @param service.ports.tcp ClickHouse service TCP port
  671. ## @param service.ports.tcpSecure ClickHouse service TCP (secure) port
  672. ## @param service.ports.keeper ClickHouse keeper TCP container port
  673. ## @param service.ports.keeperSecure ClickHouse keeper TCP (secure) container port
  674. ## @param service.ports.keeperInter ClickHouse keeper interserver TCP container port
  675. ## @param service.ports.mysql ClickHouse service MySQL port
  676. ## @param service.ports.postgresql ClickHouse service PostgreSQL port
  677. ## @param service.ports.interserver ClickHouse service Interserver port
  678. ## @param service.ports.metrics ClickHouse service metrics port
  679. ##
  680. ports:
  681. http: 8123
  682. metrics: 8001
  683. ## Node ports to expose
  684. ## @param service.nodePorts.http Node port for HTTP
  685. ## @param service.nodePorts.https Node port for HTTPS
  686. ## @param service.nodePorts.tcp Node port for TCP
  687. ## @param service.nodePorts.tcpSecure Node port for TCP (with TLS)
  688. ## @param service.nodePorts.keeper ClickHouse keeper TCP container port
  689. ## @param service.nodePorts.keeperSecure ClickHouse keeper TCP (secure) container port
  690. ## @param service.nodePorts.keeperInter ClickHouse keeper interserver TCP container port
  691. ## @param service.nodePorts.mysql Node port for MySQL
  692. ## @param service.nodePorts.postgresql Node port for PostgreSQL
  693. ## @param service.nodePorts.interserver Node port for Interserver
  694. ## @param service.nodePorts.metrics Node port for metrics
  695. ## NOTE: choose port between <30000-32767>
  696. ##
  697. nodePorts:
  698. http: ""
  699. metrics: 30001
  700. ## @param service.clusterIP ClickHouse service Cluster IP
  701. ## e.g.:
  702. ## clusterIP: None
  703. ##
  704. clusterIP: ""
  705. ## @param service.loadBalancerIP ClickHouse service Load Balancer IP
  706. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
  707. ##
  708. loadBalancerIP: ""
  709. ## @param service.loadBalancerSourceRanges ClickHouse service Load Balancer sources
  710. ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
  711. ## e.g:
  712. ## loadBalancerSourceRanges:
  713. ## - 10.10.10.0/24
  714. ##
  715. loadBalancerSourceRanges: []
  716. ## @param service.externalTrafficPolicy ClickHouse service external traffic policy
  717. ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
  718. ##
  719. externalTrafficPolicy: Cluster
  720. ## @param service.annotations Additional custom annotations for ClickHouse service
  721. ##
  722. annotations: {}
  723. ## @param service.extraPorts Extra ports to expose in ClickHouse service (normally used with the `sidecars` value)
  724. ##
  725. extraPorts: []
  726. ## @param service.sessionAffinity Control where client requests go, to the same pod or round-robin
  727. ## Values: ClientIP or None
  728. ## ref: https://kubernetes.io/docs/user-guide/services/
  729. ##
  730. sessionAffinity: None
  731. ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
  732. ## sessionAffinityConfig:
  733. ## clientIP:
  734. ## timeoutSeconds: 300
  735. ##
  736. sessionAffinityConfig: {}
  737. ## Headless service properties
  738. ##
  739. headless:
  740. ## @param service.headless.annotations Annotations for the headless service.
  741. ##
  742. annotations: {}
  743. ## External Access to ClickHouse configuration
  744. ##
  745. externalAccess:
  746. ## @param externalAccess.enabled Enable Kubernetes external cluster access to ClickHouse
  747. ##
  748. enabled: false
  749. ## Parameters to configure K8s service(s) used to externally access ClickHouse
  750. ## Note: A new service per will be created
  751. ##
  752. service:
  753. ## @param externalAccess.service.type Kubernetes Service type for external access. It can be NodePort, LoadBalancer or ClusterIP
  754. ##
  755. type: LoadBalancer
  756. ## @param externalAccess.service.ports.http ClickHouse service HTTP port
  757. ## @param externalAccess.service.ports.https ClickHouse service HTTPS port
  758. ## @param externalAccess.service.ports.tcp ClickHouse service TCP port
  759. ## @param externalAccess.service.ports.tcpSecure ClickHouse service TCP (secure) port
  760. ## @param externalAccess.service.ports.keeper ClickHouse keeper TCP container port
  761. ## @param externalAccess.service.ports.keeperSecure ClickHouse keeper TCP (secure) container port
  762. ## @param externalAccess.service.ports.keeperInter ClickHouse keeper interserver TCP container port
  763. ## @param externalAccess.service.ports.mysql ClickHouse service MySQL port
  764. ## @param externalAccess.service.ports.postgresql ClickHouse service PostgreSQL port
  765. ## @param externalAccess.service.ports.interserver ClickHouse service Interserver port
  766. ## @param externalAccess.service.ports.metrics ClickHouse service metrics port
  767. ##
  768. ports:
  769. http: 80
  770. https: 443
  771. tcp: 9000
  772. tcpSecure: 9440
  773. keeper: 2181
  774. keeperSecure: 3181
  775. keeperInter: 9444
  776. mysql: 9004
  777. postgresql: 9005
  778. interserver: 9009
  779. metrics: 8001
  780. ## @param externalAccess.service.loadBalancerIPs Array of load balancer IPs for each ClickHouse . Length must be the same as replicaCount
  781. ## e.g:
  782. ## loadBalancerIPs:
  783. ## - X.X.X.X
  784. ## - Y.Y.Y.Y
  785. ##
  786. loadBalancerIPs: []
  787. ## @param externalAccess.service.loadBalancerAnnotations Array of load balancer annotations for each ClickHouse . Length must be the same as replicaCount
  788. ## e.g:
  789. ## loadBalancerAnnotations:
  790. ## - external-dns.alpha.kubernetes.io/hostname: 1.external.example.com.
  791. ## - external-dns.alpha.kubernetes.io/hostname: 2.external.example.com.
  792. ##
  793. loadBalancerAnnotations: []
  794. ## @param externalAccess.service.loadBalancerSourceRanges Address(es) that are allowed when service is LoadBalancer
  795. ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
  796. ## e.g:
  797. ## loadBalancerSourceRanges:
  798. ## - 10.10.10.0/24
  799. ##
  800. loadBalancerSourceRanges: []
  801. ## @param externalAccess.service.nodePorts.http Node port for HTTP
  802. ## @param externalAccess.service.nodePorts.https Node port for HTTPS
  803. ## @param externalAccess.service.nodePorts.tcp Node port for TCP
  804. ## @param externalAccess.service.nodePorts.tcpSecure Node port for TCP (with TLS)
  805. ## @param externalAccess.service.nodePorts.keeper ClickHouse keeper TCP container port
  806. ## @param externalAccess.service.nodePorts.keeperSecure ClickHouse keeper TCP container port (with TLS)
  807. ## @param externalAccess.service.nodePorts.keeperInter ClickHouse keeper interserver TCP container port
  808. ## @param externalAccess.service.nodePorts.mysql Node port for MySQL
  809. ## @param externalAccess.service.nodePorts.postgresql Node port for PostgreSQL
  810. ## @param externalAccess.service.nodePorts.interserver Node port for Interserver
  811. ## @param externalAccess.service.nodePorts.metrics Node port for metrics
  812. ## NOTE: choose port between <30000-32767>
  813. ## e.g:
  814. ## nodePorts:
  815. ## tls:
  816. ## - 30001
  817. ## - 30002
  818. ##
  819. nodePorts:
  820. http: []
  821. https: []
  822. tcp: []
  823. tcpSecure: []
  824. keeper: []
  825. keeperSecure: []
  826. keeperInter: []
  827. mysql: []
  828. postgresql: []
  829. interserver: []
  830. metrics: []
  831. ## @param externalAccess.service.labels Service labels for external access
  832. ##
  833. labels: {}
  834. ## @param externalAccess.service.annotations Service annotations for external access
  835. ##
  836. annotations: {}
  837. ## @param externalAccess.service.extraPorts Extra ports to expose in the ClickHouse external service
  838. ##
  839. extraPorts: []
  840. ## ClickHouse ingress parameters
  841. ## ref: http://kubernetes.io/docs/user-guide/ingress/
  842. ##
  843. ingress:
  844. ## @param ingress.enabled Enable ingress record generation for ClickHouse
  845. ##
  846. enabled: true
  847. ## @param ingress.pathType Ingress path type
  848. ##
  849. pathType: ImplementationSpecific
  850. ## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
  851. ##
  852. apiVersion: ""
  853. ## @param ingress.hostname Default host for the ingress record
  854. ##
  855. hostname: clickhouse.cecf.base
  856. ## @param ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
  857. ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
  858. ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
  859. ##
  860. ingressClassName: "nginx"
  861. ## @param ingress.path Default path for the ingress record
  862. ## NOTE: You may need to set this to '/*' in order to use this with ALB ingress controllers
  863. ##
  864. path: /
  865. ## @param ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
  866. ## Use this parameter to set the required annotations for cert-manager, see
  867. ## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
  868. ## e.g:
  869. ## annotations:
  870. ## kubernetes.io/ingress.class: nginx
  871. ## cert-manager.io/cluster-issuer: cluster-issuer-name
  872. ##
  873. annotations: {}
  874. ## @param ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter
  875. ## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname }}`
  876. ## You can:
  877. ## - Use the `ingress.secrets` parameter to create this TLS secret
  878. ## - Rely on cert-manager to create it by setting the corresponding annotations
  879. ## - Rely on Helm to create self-signed certificates by setting `ingress.selfSigned=true`
  880. ##
  881. tls: false
  882. ## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
  883. ##
  884. selfSigned: false
  885. ## @param ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record
  886. ## e.g:
  887. ## extraHosts:
  888. ## - name: clickhouse.local
  889. ## path: /
  890. ##
  891. extraHosts: []
  892. ## @param ingress.extraPaths An array with additional arbitrary paths that may need to be added to the ingress under the main host
  893. ## e.g:
  894. ## extraPaths:
  895. ## - path: /*
  896. ## backend:
  897. ## serviceName: ssl-redirect
  898. ## servicePort: use-annotation
  899. ##
  900. extraPaths: []
  901. ## @param ingress.extraTls TLS configuration for additional hostname(s) to be covered with this ingress record
  902. ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
  903. ## e.g:
  904. ## extraTls:
  905. ## - hosts:
  906. ## - clickhouse.local
  907. ## secretName: clickhouse.local-tls
  908. ##
  909. extraTls: []
  910. ## @param ingress.secrets Custom TLS certificates as secrets
  911. ## NOTE: 'key' and 'certificate' are expected in PEM format
  912. ## NOTE: 'name' should line up with a 'secretName' set further up
  913. ## 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
  914. ## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created valid for 365 days
  915. ## It is also possible to create and manage the certificates outside of this helm chart
  916. ## Please see README.md for more information
  917. ## e.g:
  918. ## secrets:
  919. ## - name: clickhouse.local-tls
  920. ## key: |-
  921. ## -----BEGIN RSA PRIVATE KEY-----
  922. ## ...
  923. ## -----END RSA PRIVATE KEY-----
  924. ## certificate: |-
  925. ## -----BEGIN CERTIFICATE-----
  926. ## ...
  927. ## -----END CERTIFICATE-----
  928. ##
  929. secrets: []
  930. ## @param ingress.extraRules Additional rules to be covered with this ingress record
  931. ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
  932. ## e.g:
  933. ## extraRules:
  934. ## - host: example.local
  935. ## http:
  936. ## path: /
  937. ## backend:
  938. ## service:
  939. ## name: example-svc
  940. ## port:
  941. ## name: http
  942. ##
  943. extraRules: []
  944. ## @section Persistence Parameters
  945. ##
  946. ## Enable persistence using Persistent Volume Claims
  947. ## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
  948. ##
  949. persistence:
  950. ## @param persistence.enabled Enable persistence using Persistent Volume Claims
  951. ##
  952. enabled: true
  953. ## @param persistence.storageClass Storage class of backing PVC
  954. ## If defined, storageClassName: <storageClass>
  955. ## If set to "-", storageClassName: "", which disables dynamic provisioning
  956. ## If undefined (the default) or set to null, no storageClassName spec is
  957. ## set, choosing the default provisioner. (gp2 on AWS, standard on
  958. ## GKE, AWS & OpenStack)
  959. ##
  960. storageClass: "openebs-hostpath"
  961. ## @param persistence.labels Persistent Volume Claim labels
  962. ##
  963. labels: {}
  964. ## @param persistence.annotations Persistent Volume Claim annotations
  965. ##
  966. annotations: {}
  967. ## @param persistence.accessModes Persistent Volume Access Modes
  968. ##
  969. accessModes:
  970. - ReadWriteOnce
  971. ## @param persistence.size Size of data volume
  972. ##
  973. size: 8Gi
  974. ## @param persistence.selector Selector to match an existing Persistent Volume for WordPress data PVC
  975. ## If set, the PVC can't have a PV dynamically provisioned for it
  976. ## E.g.
  977. ## selector:
  978. ## matchLabels:
  979. ## app: my-app
  980. ##
  981. selector: {}
  982. ## @param persistence.dataSource Custom PVC data source
  983. ##
  984. dataSource: {}
  985. ## @section Init Container Parameters
  986. ##
  987. ## 'volumePermissions' init container parameters
  988. ## Changes the owner and group of the persistent volume mount point to runAsUser:fsGroup values
  989. ## based on the *podSecurityContext/*containerSecurityContext parameters
  990. ##
  991. volumePermissions:
  992. ## @param volumePermissions.enabled Enable init container that changes the owner/group of the PV mount point to `runAsUser:fsGroup`
  993. ##
  994. enabled: false
  995. ## Bitnami Shell image
  996. ## ref: https://hub.docker.com/r/bitnami/bitnami-shell/tags/
  997. ## @param volumePermissions.image.registry Bitnami Shell image registry
  998. ## @param volumePermissions.image.repository Bitnami Shell image repository
  999. ## @param volumePermissions.image.tag Bitnami Shell image tag (immutable tags are recommended)
  1000. ## @param volumePermissions.image.pullPolicy Bitnami Shell image pull policy
  1001. ## @param volumePermissions.image.pullSecrets Bitnami Shell image pull secrets
  1002. ##
  1003. image:
  1004. registry: docker.io
  1005. repository: bitnami/bitnami-shell
  1006. tag: 11-debian-11-r101
  1007. pullPolicy: IfNotPresent
  1008. ## Optionally specify an array of imagePullSecrets.
  1009. ## Secrets must be manually created in the namespace.
  1010. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  1011. ## e.g:
  1012. ## pullSecrets:
  1013. ## - myRegistryKeySecretName
  1014. ##
  1015. pullSecrets: []
  1016. ## Init container's resource requests and limits
  1017. ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
  1018. ## @param volumePermissions.resources.limits The resources limits for the init container
  1019. ## @param volumePermissions.resources.requests The requested resources for the init container
  1020. ##
  1021. resources:
  1022. limits: {}
  1023. requests: {}
  1024. ## Init container Container Security Context
  1025. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
  1026. ## @param volumePermissions.containerSecurityContext.runAsUser Set init container's Security Context runAsUser
  1027. ## NOTE: when runAsUser is set to special value "auto", init container will try to chown the
  1028. ## data folder to auto-determined user&group, using commands: `id -u`:`id -G | cut -d" " -f2`
  1029. ## "auto" is especially useful for OpenShift which has scc with dynamic user ids (and 0 is not allowed)
  1030. ##
  1031. containerSecurityContext:
  1032. runAsUser: 0
  1033. ## @section Other Parameters
  1034. ##
  1035. ## ServiceAccount configuration
  1036. ##
  1037. serviceAccount:
  1038. ## @param serviceAccount.create Specifies whether a ServiceAccount should be created
  1039. ##
  1040. create: true
  1041. ## @param serviceAccount.name The name of the ServiceAccount to use.
  1042. ## If not set and create is true, a name is generated using the common.names.fullname template
  1043. ##
  1044. name: ""
  1045. ## @param serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
  1046. ##
  1047. annotations: {}
  1048. ## @param serviceAccount.automountServiceAccountToken Automount service account token for the server service account
  1049. ##
  1050. automountServiceAccountToken: true
  1051. ## Prometheus metrics
  1052. ##
  1053. metrics:
  1054. ## @param metrics.enabled Enable the export of Prometheus metrics
  1055. ##
  1056. enabled: true
  1057. ## @param metrics.podAnnotations [object] Annotations for metrics scraping
  1058. ##
  1059. podAnnotations:
  1060. prometheus.io/scrape: "true"
  1061. prometheus.io/port: "{{ .Values.containerPorts.metrics }}"
  1062. ## Prometheus Operator ServiceMonitor configuration
  1063. ##
  1064. serviceMonitor:
  1065. ## @param metrics.serviceMonitor.enabled if `true`, creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`)
  1066. ##
  1067. enabled: false
  1068. ## @param metrics.serviceMonitor.namespace Namespace in which Prometheus is running
  1069. ##
  1070. namespace: ""
  1071. ## @param metrics.serviceMonitor.annotations Additional custom annotations for the ServiceMonitor
  1072. ##
  1073. annotations: {}
  1074. ## @param metrics.serviceMonitor.labels Extra labels for the ServiceMonitor
  1075. ##
  1076. labels: {}
  1077. ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in Prometheus
  1078. ##
  1079. jobLabel: ""
  1080. ## @param metrics.serviceMonitor.honorLabels honorLabels chooses the metric's labels on collisions with target labels
  1081. ##
  1082. honorLabels: false
  1083. ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped.
  1084. ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
  1085. ## e.g:
  1086. ## interval: 10s
  1087. ##
  1088. interval: ""
  1089. ## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
  1090. ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
  1091. ## e.g:
  1092. ## scrapeTimeout: 10s
  1093. ##
  1094. scrapeTimeout: ""
  1095. ## @param metrics.serviceMonitor.metricRelabelings Specify additional relabeling of metrics
  1096. ##
  1097. metricRelabelings: []
  1098. ## @param metrics.serviceMonitor.relabelings Specify general relabeling
  1099. ##
  1100. relabelings: []
  1101. ## @param metrics.serviceMonitor.selector Prometheus instance selector labels
  1102. ## ref: https://github.com/bitnami/charts/tree/main/bitnami/prometheus-operator#prometheus-configuration
  1103. ## selector:
  1104. ## prometheus: my-prometheus
  1105. ##
  1106. selector: {}
  1107. ## @section External Zookeeper paramaters
  1108. ##
  1109. externalZookeeper:
  1110. ## @param externalZookeeper.servers List of external zookeeper servers to use
  1111. ## @param externalZookeeper.port Port of the Zookeeper servers
  1112. ##
  1113. servers: []
  1114. port: 2888
  1115. ## @section Zookeeper subchart parameters
  1116. ##
  1117. ## @param zookeeper.enabled Deploy Zookeeper subchart
  1118. ## @param zookeeper.replicaCount Number of Zookeeper instances
  1119. ## @param zookeeper.service.ports.client Zookeeper client port
  1120. ##
  1121. zookeeper:
  1122. enabled: true
  1123. replicaCount: 1
  1124. service:
  1125. ports:
  1126. client: 2181