1# This file has been modified by Chainguard, Inc.
3# Copyright Chainguard, Inc. All Rights Reserved.
4# Chainguard, Inc. modifications are subject to the license
5# available at: https://www.chainguard.dev/legal/software-license-agreement
7# Copyright Broadcom, Inc. All Rights Reserved.
8# SPDX-License-Identifier: APACHE-2.0
10## @section Global parameters
11## Global Docker image parameters
12## Please, note that this will override the image parameters, including dependencies, configured to use the global value
13## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
16## @param global.imageRegistry Global Docker image registry
17## @param global.useImageTags Pull every image by tag and ignore all image digests, including digests set in values. Use this when your registry mirror does not have the chart's default image digests.
18## @param global.imagePullSecrets Global Docker registry secret names as an array
19## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
26 ## - myRegistryKeySecretName
29 defaultStorageClass: ""
30 ## Security parameters
33 ## @param global.security.allowInsecureImages Allows skipping image verification
34 allowInsecureImages: false
35 ## Compatibility adaptations for Kubernetes platforms
38 ## Compatibility adaptations for Openshift
41 ## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
43 adaptSecurityContext: auto
45## @section Common parameters
47## @param kubeVersion Override Kubernetes version
50## @param apiVersions Override Kubernetes API versions reported by .Capabilities
53## @param nameOverride String to partially override common.names.name
56## @param fullnameOverride String to fully override common.names.fullname
59## @param namespaceOverride String to fully override common.names.namespace
62## @param commonLabels Labels to add to all deployed objects
65## @param commonAnnotations Annotations to add to all deployed objects
68## @param clusterDomain Kubernetes cluster domain name
70clusterDomain: cluster.local
71## @param extraDeploy Array of extra objects to deploy with the release
74## @param usePasswordFiles Mount credentials as files instead of using environment variables
77## Enable diagnostic mode in the deployment
80 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
83 ## @param diagnosticMode.command Command to override all containers in the deployment
87 ## @param diagnosticMode.args Args to override all containers in the deployment
91## @section Default Init Container Parameters
93 ## 'volume-permissions' init container
94 ## Used to change the owner and group of the persistent volume(s) mountpoint(s) to 'runAsUser:fsGroup' on each node
97 ## @param defaultInitContainers.volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume
100 ## @param defaultInitContainers.volumePermissions.image.registry [default: REGISTRY_NAME] "volume-permissions" init-containers' image registry
101 ## @param defaultInitContainers.volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] "volume-permissions" init-containers' image repository
102 ## @skip defaultInitContainers.volumePermissions.image.tag "volume-permissions" init-containers' image tag (immutable tags are recommended)
103 ## @param defaultInitContainers.volumePermissions.image.digest "volume-permissions" init-containers' image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
104 ## @param defaultInitContainers.volumePermissions.image.pullPolicy "volume-permissions" init-containers' image pull policy
105 ## @param defaultInitContainers.volumePermissions.image.pullSecrets "volume-permissions" init-containers' image pull secrets
109 repository: chainguard-private/os-shell-iamguarded
112 pullPolicy: IfNotPresent
113 ## Optionally specify an array of imagePullSecrets.
114 ## Secrets must be manually created in the namespace.
115 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
118 ## - myRegistryKeySecretName
121 ## Configure "volume-permissions" init-container Security Context
122 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
123 ## @param defaultInitContainers.volumePermissions.containerSecurityContext.enabled Enabled "volume-permissions" init-containers' Security Context
124 ## @param defaultInitContainers.volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in "volume-permissions" init-containers
125 ## @param defaultInitContainers.volumePermissions.containerSecurityContext.runAsUser Set runAsUser in "volume-permissions" init-containers' Security Context
126 ## @param defaultInitContainers.volumePermissions.containerSecurityContext.privileged Set privileged in "volume-permissions" init-containers' Security Context
127 ## @param defaultInitContainers.volumePermissions.containerSecurityContext.allowPrivilegeEscalation Set allowPrivilegeEscalation in "volume-permissions" init-containers' Security Context
128 ## @param defaultInitContainers.volumePermissions.containerSecurityContext.capabilities.add List of capabilities to be added in "volume-permissions" init-containers
129 ## @param defaultInitContainers.volumePermissions.containerSecurityContext.capabilities.drop List of capabilities to be dropped in "volume-permissions" init-containers
130 ## @param defaultInitContainers.volumePermissions.containerSecurityContext.seccompProfile.type Set seccomp profile in "volume-permissions" init-containers
132 containerSecurityContext:
137 allowPrivilegeEscalation: false
142 type: "RuntimeDefault"
143 ## ClickHouse Keeper "volume-permissions" init container resource requests and limits
144 ## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
145 ## @param defaultInitContainers.volumePermissions.resourcesPreset Set ClickHouse Keeper "volume-permissions" init container resources according to one common preset (allowed values: none, nano, small, medium, large, xlarge, 2xlarge). This is ignored if defaultInitContainers.volumePermissions.resources is set (defaultInitContainers.volumePermissions.resources is recommended for production).
147 resourcesPreset: "nano"
148 ## @param defaultInitContainers.volumePermissions.resources Set ClickHouse Keeper "volume-permissions" init container requests and limits for different resources like CPU or memory (essential for production workloads)
159## @section ClickHouse parameters
161## Iamguarded ClickHouse image
162## @param image.registry [default: REGISTRY_NAME] ClickHouse image registry
163## @param image.repository [default: REPOSITORY_NAME/clickhouse] ClickHouse image repository
164## @skip image.tag ClickHouse image tag (immutable tags are recommended)
165## @param image.digest ClickHouse image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
166## @param image.pullPolicy ClickHouse image pull policy
167## @param image.pullSecrets ClickHouse image pull secrets
168## @param image.debug Enable ClickHouse image debug mode
172 repository: chainguard-private/clickhouse-iamguarded
175 ## Specify a imagePullPolicy
176 ## ref: http://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
178 pullPolicy: IfNotPresent
179 ## Optionally specify an array of imagePullSecrets.
180 ## Secrets must be manually created in the namespace.
181 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
184 ## - myRegistryKeySecretName
190## @param clusterName ClickHouse cluster name
194## @param auth.username ClickHouse Admin username
195## @param auth.password ClickHouse Admin password
196## @param auth.existingSecret Name of a secret containing the Admin password
197## @param auth.existingSecretKey Name of the key inside the existing secret
203 existingSecretKey: ""
204## @param tls.enabled Enable TLS configuration for ClickHouse
205## @param tls.autoGenerated.enabled Enable automatic generation of TLS certificates
206## @param tls.autoGenerated.engine Mechanism to generate the certificates (allowed values: helm, cert-manager)
207## @param tls.autoGenerated.certManager.existingIssuer The name of an existing Issuer to use for generating the certificates (only for `cert-manager` engine)
208## @param tls.autoGenerated.certManager.existingIssuerKind Existing Issuer kind, defaults to Issuer (only for `cert-manager` engine)
209## @param tls.autoGenerated.certManager.keyAlgorithm Key algorithm for the certificates (only for `cert-manager` engine)
210## @param tls.autoGenerated.certManager.keySize Key size for the certificates (only for `cert-manager` engine)
211## @param tls.autoGenerated.certManager.duration Duration for the certificates (only for `cert-manager` engine)
212## @param tls.autoGenerated.certManager.renewBefore Renewal period for the certificates (only for `cert-manager` engine)
213## @param tls.ca CA certificate for TLS. Ignored if `tls.existingCASecret` is set
214## @param tls.existingCASecret The name of an existing Secret containing the CA certificate for TLS
215## @param tls.server.cert TLS certificate for ClickHouse servers. Ignored if `tls.server.existingSecret` is set
216## @param tls.server.key TLS key for ClickHouse servers. Ignored if `tls.server.existingSecret` is set
217## @param tls.server.existingSecret The name of an existing Secret containing the TLS certificates for ClickHouse servers
218## @param tls.keeper.cert TLS certificate for ClickHouse Keeper. Ignored if `tls.keeper.existingSecret` is set
219## @param tls.keeper.key TLS key for ClickHouse Keeper. Ignored if `tls.keeper.existingSecret` is set
220## @param tls.keeper.existingSecret The name of an existing Secret containing the TLS certificates for ClickHouse Keeper
229 existingIssuerKind: ""
244## @param logLevel Logging level
247## @param sampling.enabled Enable logging tables collected by sampling query profiler
251## @param configuration Specify content for ClickHouse configuration (basic one auto-generated based on other values otherwise)
254## @param existingConfigmap The name of an existing ConfigMap with your custom configuration for ClickHouse
257## @param configdFiles Extra configuration files to be mounted at config.d
258## ref: https://clickhouse.com/docs/operations/configuration-files
261## @param existingConfigdConfigmap The name of an existing ConfigMap with extra configuration files for ClickHouse
263existingConfigdConfigmap: ""
264## @param usersdFiles Extra users configuration files to be mounted at users.d
265## ref: https://clickhouse.com/docs/operations/configuration-files#user-settings
268## @param existingUsersdConfigmap The name of an existing ConfigMap with extra users configuration files for ClickHouse
270existingUsersdConfigmap: ""
271## @param existingUsersdSecret The name of an existing Secret with extra users configuration files for ClickHouse
273existingUsersdSecret: ""
274## @param initdbScripts Dictionary of initdb scripts
275## Specify dictionary of scripts to be run at first boot
278## my_init_script.sh: |
280## echo "Do something."
283## @param initdbScriptsSecret ConfigMap with the initdb scripts (Note: Overrides `initdbScripts`)
285initdbScriptsSecret: ""
286## @param startdbScripts Dictionary of startdb scripts
287## Specify dictionary of scripts to be run on every start
290## my_start_script.sh: |
292## echo "Do something."
295## @param startdbScriptsSecret ConfigMap with the startdb scripts (Note: Overrides `startdbScripts`)
297startdbScriptsSecret: ""
298## @param shards Number of ClickHouse shards to deploy
301## @param replicaCount Number of ClickHouse replicas per shard to deploy
302## if keeper enable, same as keeper count, keeper cluster by shards.
305## @param distributeReplicasByZone Schedules replicas of the same shard to different availability zones
307distributeReplicasByZone: false
308## @param exposeMysql Expose MySQL port container port
309## @param exposePostgresql Expose PostgreSQL port container port
312exposePostgresql: true
313## @param containerPorts.http ClickHouse HTTP container port
314## @param containerPorts.https ClickHouse HTTPS container port
315## @param containerPorts.tcp ClickHouse TCP container port
316## @param containerPorts.tcpSecure ClickHouse TCP (secure) container port
317## @param containerPorts.mysql ClickHouse MySQL container port
318## @param containerPorts.postgresql ClickHouse PostgreSQL container port
319## @param containerPorts.interserver ClickHouse Interserver container port
320## @param containerPorts.metrics ClickHouse metrics container port
331## Configure extra options for ClickHouse containers' liveness and readiness probes
332## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
333## @param livenessProbe.enabled Enable livenessProbe on ClickHouse containers
334## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
335## @param livenessProbe.periodSeconds Period seconds for livenessProbe
336## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
337## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
338## @param livenessProbe.successThreshold Success threshold for livenessProbe
343 initialDelaySeconds: 10
347## @param readinessProbe.enabled Enable readinessProbe on ClickHouse containers
348## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
349## @param readinessProbe.periodSeconds Period seconds for readinessProbe
350## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
351## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
352## @param readinessProbe.successThreshold Success threshold for readinessProbe
357 initialDelaySeconds: 10
361## @param startupProbe.enabled Enable startupProbe on ClickHouse containers
362## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
363## @param startupProbe.periodSeconds Period seconds for startupProbe
364## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
365## @param startupProbe.failureThreshold Failure threshold for startupProbe
366## @param startupProbe.successThreshold Success threshold for startupProbe
371 initialDelaySeconds: 10
375## @param customLivenessProbe Custom livenessProbe that overrides the default one
377customLivenessProbe: {}
378## @param customReadinessProbe Custom readinessProbe that overrides the default one
380customReadinessProbe: {}
381## @param customStartupProbe Custom startupProbe that overrides the default one
383customStartupProbe: {}
384## ClickHouse resource requests and limits
385## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
386## @param resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if resources is set (resources is recommended for production).
388resourcesPreset: "small"
389## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
400## Configure Pods Security Context
401## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
402## @param podSecurityContext.enabled Enabled ClickHouse pods' Security Context
403## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
404## @param podSecurityContext.sysctls Set kernel settings using the sysctl interface
405## @param podSecurityContext.supplementalGroups Set filesystem extra groups
406## @param podSecurityContext.fsGroup Set ClickHouse pod's Security Context fsGroup
407## If you are using Kubernetes 1.18, the following code needs to be commented out.
411 fsGroupChangePolicy: Always
413 supplementalGroups: []
415## Configure Container Security Context
416## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
417## @param containerSecurityContext.enabled Enable containers' Security Context
418## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
419## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
420## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
421## @param containerSecurityContext.runAsNonRoot Set containers' Security Context runAsNonRoot
422## @param containerSecurityContext.readOnlyRootFilesystem Set read only root file system pod's
423## @param containerSecurityContext.privileged Set ClickHouse container's Security Context privileged
424## @param containerSecurityContext.allowPrivilegeEscalation Set ClickHouse container's Security Context allowPrivilegeEscalation
425## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
426## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
428containerSecurityContext:
435 allowPrivilegeEscalation: false
436 readOnlyRootFilesystem: true
440 type: "RuntimeDefault"
441## @param command Override default container command (useful when using custom images)
444## @param args Override default container args (useful when using custom images)
447## @param automountServiceAccountToken Mount Service Account token in pod
449automountServiceAccountToken: false
450## @param hostAliases ClickHouse pods host aliases
451## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
454## @param podLabels Extra labels for ClickHouse pods
455## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
458## @param podAnnotations Annotations for ClickHouse pods
459## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
462## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
463## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
466## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
467## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
469podAntiAffinityPreset: soft
470## Node affinity preset
471## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
474 ## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
477 ## @param nodeAffinityPreset.key Node label key to match. Ignored if `affinity` is set
480 ## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set
487## @param affinity Affinity for ClickHouse pods assignment
488## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
489## NOTE: `podAffinityPreset`, `podAntiAffinityPreset`, and `nodeAffinityPreset` will be ignored when it's set
492## @param nodeSelector Node labels for ClickHouse pods assignment
493## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
496## @param tolerations Tolerations for ClickHouse pods assignment
497## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
500## @param updateStrategy.type ClickHouse StatefulSet strategy type
501## @param updateStrategy.rollingUpdate ClickHouse StatefulSet rolling update configuration parameters
502## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
507## @param podManagementPolicy Statefulset Pod management policy, it needs to be Parallel to be able to complete the cluster join
508## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
510podManagementPolicy: Parallel
511## @param priorityClassName ClickHouse pods' priorityClassName
514## @param topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
515## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
517topologySpreadConstraints: []
518## @param schedulerName Name of the k8s scheduler (other than default) for ClickHouse pods
519## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
522## @param terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
523## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
525terminationGracePeriodSeconds: ""
526## @param lifecycleHooks for the ClickHouse container(s) to automate configuration before or after startup
529## @param extraEnvVars Array with extra environment variables to add to ClickHouse nodes
536## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars for ClickHouse nodes
539## @param extraEnvVarsSecret Name of existing Secret containing extra env vars for ClickHouse nodes
541extraEnvVarsSecret: ""
542## @param extraVolumes Optionally specify extra list of additional volumes for the ClickHouse pod(s)
545## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for the ClickHouse container(s)
548## @param extraVolumeClaimTemplates Optionally specify extra list of additional volumeClaimTemplates for the ClickHouse container(s)
550extraVolumeClaimTemplates: []
551## @param sidecars Add additional sidecar containers to the ClickHouse pod(s)
554## - name: your-image-name
556## imagePullPolicy: Always
559## containerPort: 1234
562## @param initContainers Add additional init containers to the ClickHouse pod(s)
563## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
566## - name: your-image-name
568## imagePullPolicy: Always
569## command: ['sh', '-c', 'echo "hello world"']
572## Pod Disruption Budget configuration
573## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
574## @param pdb.create Enable/disable a Pod Disruption Budget creation
575## @param pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
576## @param pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty.
582## ClickHouse Autoscaling configuration
583## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
587 ## @param autoscaling.vpa.enabled Enable VPA
590 ## @param autoscaling.vpa.annotations Annotations for VPA resource
593 ## @param autoscaling.vpa.controlledResources VPA List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory
595 controlledResources: []
596 ## @param autoscaling.vpa.maxAllowed VPA Max allowed resources for the pod
600 ## @param autoscaling.vpa.minAllowed VPA Min allowed resources for the pod
605 ## @param autoscaling.vpa.updatePolicy.updateMode Autoscaling update policy Specifies whether recommended updates are applied when a Pod is started and whether recommended updates are applied during the life of a Pod
606 ## Possible values are "Off", "Initial", "Recreate", and "Auto".
609## @section ClickHouse Traffic Exposure parameters
611## ClickHouse service parameters
614 ## @param service.type ClickHouse service type
617 ## @param service.perReplicaAccess Enable per-replica service creation
618 ## This is useful for exposing individual replicas externally via LoadBalancer or NodePort
620 perReplicaAccess: false
621 ## @param service.ports.http ClickHouse service HTTP port
622 ## @param service.ports.https ClickHouse service HTTPS port
623 ## @param service.ports.tcp ClickHouse service TCP port
624 ## @param service.ports.tcpSecure ClickHouse service TCP (secure) port
625 ## @param service.ports.mysql ClickHouse service MySQL port
626 ## @param service.ports.postgresql ClickHouse service PostgreSQL port
627 ## @param service.ports.interserver ClickHouse service Interserver port
628 ## @param service.ports.metrics ClickHouse service metrics port
639 ## Node ports to expose
640 ## @param service.nodePorts.http Node port for HTTP
641 ## @param service.nodePorts.https Node port for HTTPS
642 ## @param service.nodePorts.tcp Node port for TCP
643 ## @param service.nodePorts.tcpSecure Node port for TCP (with TLS)
644 ## @param service.nodePorts.mysql Node port for MySQL
645 ## @param service.nodePorts.postgresql Node port for PostgreSQL
646 ## @param service.nodePorts.interserver Node port for Interserver
647 ## @param service.nodePorts.metrics Node port for metrics
648 ## NOTE: choose port between <30000-32767>
659 ## @param service.clusterIP ClickHouse service Cluster IP
664 ## @param service.loadBalancerIP ClickHouse service Load Balancer IP (only if per-replica access is disabled)
665 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
668 ## @param service.loadBalancerIPs Array of ClickHouse service Load Balancer IPs (only if per-replica access is enabled). Length must be the same as shards multiplied by replicaCount
675 ## @param service.loadBalancerAnnotations Array of ClickHouse service Load Balancer annotations (only if per-replica access is enabled). Length must be the same as shards multiplied by replicaCount
677 ## loadBalancerAnnotations:
678 ## - external-dns.alpha.kubernetes.io/hostname: 1.external.example.com.
679 ## - external-dns.alpha.kubernetes.io/hostname: 2.external.example.com.
681 loadBalancerAnnotations: []
682 ## @param service.loadBalancerSourceRanges ClickHouse service Load Balancer sources
683 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
685 ## loadBalancerSourceRanges:
688 loadBalancerSourceRanges: []
689 ## @param service.externalTrafficPolicy ClickHouse service external traffic policy
690 ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
692 externalTrafficPolicy: Cluster
693 ## @param service.annotations Additional custom annotations for ClickHouse service
696 ## @param service.extraPorts Extra ports to expose in ClickHouse service (normally used with the `sidecars` value)
699 ## @param service.sessionAffinity Control where client requests go, to the same pod or round-robin
700 ## Values: ClientIP or None
701 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
703 sessionAffinity: None
704 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
705 ## sessionAffinityConfig:
707 ## timeoutSeconds: 300
709 sessionAffinityConfig: {}
710 ## Headless service properties
713 ## @param service.headless.annotations Annotations for the headless service.
716 ## @param service.headless.extraPorts Optionally specify extra ports to expose for the headless service.
719## ClickHouse Ingress parameters
720## ref: http://kubernetes.io/docs/concepts/services-networking/ingress/
723 ## @param ingress.enabled Enable ingress record generation for ClickHouse
726 ## @param ingress.pathType Ingress path type
728 pathType: ImplementationSpecific
729 ## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
732 ## @param ingress.hostname Default host for the ingress record
734 hostname: clickhouse.local
735 ## @param ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
736 ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
737 ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
740 ## @param ingress.path Default path for the ingress record
741 ## NOTE: You may need to set this to '/*' in order to use this with ALB ingress controllers
744 ## @param ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
745 ## Use this parameter to set the required annotations for cert-manager, see
746 ## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
749 ## kubernetes.io/ingress.class: nginx
750 ## cert-manager.io/cluster-issuer: cluster-issuer-name
753 ## @param ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter
754 ## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname }}`
756 ## - Use the `ingress.secrets` parameter to create this TLS secret
757 ## - Rely on cert-manager to create it by setting the corresponding annotations
758 ## - Rely on Helm to create self-signed certificates by setting `ingress.selfSigned=true`
761 ## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
764 ## @param ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record
767 ## - name: clickhouse.local
771 ## @param ingress.extraPaths An array with additional arbitrary paths that may need to be added to the ingress under the main host
776 ## serviceName: ssl-redirect
777 ## servicePort: use-annotation
780 ## @param ingress.extraTls TLS configuration for additional hostname(s) to be covered with this ingress record
781 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
785 ## - clickhouse.local
786 ## secretName: clickhouse.local-tls
789 ## @param ingress.secrets Custom TLS certificates as secrets
790 ## NOTE: 'key' and 'certificate' are expected in PEM format
791 ## NOTE: 'name' should line up with a 'secretName' set further up
792 ## 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
793 ## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created valid for 365 days
794 ## It is also possible to create and manage the certificates outside of this helm chart
795 ## Please see README.md for more information
798 ## - name: clickhouse.local-tls
800 ## -----BEGIN RSA PRIVATE KEY-----
802 ## -----END RSA PRIVATE KEY-----
804 ## -----BEGIN CERTIFICATE-----
806 ## -----END CERTIFICATE-----
809 ## @param ingress.extraRules Additional rules to be covered with this ingress record
810 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
813 ## - host: example.local
823## ClickHouse Network Policies
824## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
827 ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
830 ## @param networkPolicy.allowExternal Don't require client label for connections
831 ## The Policy model to apply. When set to false, only pods with the correct
832 ## client label will have network access to the ports ClickHouse is listening
833 ## on. When true, ClickHouse will accept connections from any source
834 ## (with the correct destination port).
837 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
839 allowExternalEgress: true
840 ## @param networkPolicy.addExternalClientAccess Allow access from pods with client label set to "true". Ignored if `networkPolicy.allowExternal` is true.
842 addExternalClientAccess: true
843 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
853 ## - matchExpressions:
859 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
869 ## - matchExpressions:
876 ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
877 ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
879 ingressNSMatchLabels: {}
880 ingressNSPodMatchLabels: {}
881## @section ClickHouse Persistence parameters
883## persistentVolumeClaimRetentionPolicy
884## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
885## @param persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
886## @param persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
887## @param persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
889persistentVolumeClaimRetentionPolicy:
893## Enable persistence using Persistent Volume Claims
894## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
897 ## @param persistence.enabled Enable persistence using Persistent Volume Claims
900 ## @param persistence.volumeName Name to assign the volume
903 ## @param persistence.existingClaim Name of an existing PVC to use
906 ## @param persistence.storageClass Storage class of backing PVC
907 ## If defined, storageClassName: <storageClass>
908 ## If set to "-", storageClassName: "", which disables dynamic provisioning
909 ## If undefined (the default) or set to null, no storageClassName spec is
910 ## set, choosing the default provisioner. (gp2 on AWS, standard on
911 ## GKE, AWS & OpenStack)
914 ## @param persistence.labels Persistent Volume Claim labels
917 ## @param persistence.annotations Persistent Volume Claim annotations
920 ## @param persistence.accessModes Persistent Volume Access Modes
924 ## @param persistence.size Size of data volume
927 ## @param persistence.selector Selector to match an existing Persistent Volume for ClickHouse data PVC
928 ## If set, the PVC can't have a PV dynamically provisioned for it
935 ## @param persistence.dataSource Custom PVC data source
938 ## @param persistence.mountPath Mount path of the ClickHouse data volume
940 mountPath: /iamguarded/clickhouse
941## @section ClickHouse Keeper parameters
943 ## @param keeper.enabled Deploy ClickHouse Keeper to provide coordination capabilities
946 ## Iamguarded ClickHouse Keeper image
947 ## @param keeper.image.registry [default: REGISTRY_NAME] ClickHouse Keeper image registry
948 ## @param keeper.image.repository [default: REPOSITORY_NAME/clickhouse-keeper] ClickHouse Keeper image repository
949 ## @skip keeper.image.tag ClickHouse Keeper image tag (immutable tags are recommended)
950 ## @param keeper.image.digest ClickHouse Keeper image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag image tag (immutable tags are recommended)
951 ## @param keeper.image.pullPolicy ClickHouse Keeper image pull policy
952 ## @param keeper.image.pullSecrets ClickHouse Keeper image pull secrets
953 ## @param keeper.image.debug Enable ClickHouse image debug mode
957 repository: chainguard-private/clickhouse-keeper-iamguarded
960 ## Specify a imagePullPolicy
961 ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
962 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
964 pullPolicy: IfNotPresent
965 ## Optionally specify an array of imagePullSecrets.
966 ## Secrets must be manually created in the namespace.
967 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
970 ## - myRegistryKeySecretName
973 ## Set to true if you would like to see extra information on logs
976 ## @param keeper.replicaCount Number of ClickHouse Keeper replicas to deploy
979 ## @param keeper.configuration Specify content for ClickHouse Keeper configuration (basic one auto-generated based on other values otherwise)
982 ## @param keeper.existingConfigmap The name of an existing ConfigMap with your custom configuration for ClickHouse Keeper
984 existingConfigmap: ""
985 ## @param keeper.configdFiles Extra configuration files to be mounted at keeper_config.d
986 ## ref: https://clickhouse.com/docs/operations/configuration-files
989 ## @param keeper.existingConfigdConfigmap The name of an existing ConfigMap with extra configuration files for ClickHouse Keeper
991 existingConfigdConfigmap: ""
992 ## @param keeper.usersdFiles Extra users configuration files to be mounted at users.d
993 ## ref: https://clickhouse.com/docs/operations/configuration-files#user-settings
996 ## @param keeper.existingUsersdConfigmap The name of an existing ConfigMap with extra users configuration files for ClickHouse Keeper
998 existingUsersdConfigmap: ""
999 ## @param keeper.existingUsersdSecret The name of an existing Secret with extra users configuration files for ClickHouse Keeper
1001 existingUsersdSecret: ""
1002 ## @param keeper.containerPorts.tcp ClickHouse Keeper TCP container port
1003 ## @param keeper.containerPorts.tcpSecure ClickHouse TCP (secure) container port
1004 ## @param keeper.containerPorts.raft ClickHouse Keeper Raft container port
1010 ## @param keeper.extraContainerPorts ClickHouse Keeper extra containerPorts
1012 extraContainerPorts: []
1013 ## Configure extra options for ClickHouse Keeper containers' liveness and readiness probes
1014 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
1015 ## @param keeper.livenessProbe.enabled Enable livenessProbe on ClickHouse Keeper containers
1016 ## @param keeper.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1017 ## @param keeper.livenessProbe.periodSeconds Period seconds for livenessProbe
1018 ## @param keeper.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1019 ## @param keeper.livenessProbe.failureThreshold Failure threshold for livenessProbe
1020 ## @param keeper.livenessProbe.successThreshold Success threshold for livenessProbe
1025 initialDelaySeconds: 10
1029 ## @param keeper.readinessProbe.enabled Enable readinessProbe on ClickHouse Keeper containers
1030 ## @param keeper.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1031 ## @param keeper.readinessProbe.periodSeconds Period seconds for readinessProbe
1032 ## @param keeper.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1033 ## @param keeper.readinessProbe.failureThreshold Failure threshold for readinessProbe
1034 ## @param keeper.readinessProbe.successThreshold Success threshold for readinessProbe
1039 initialDelaySeconds: 10
1043 ## @param keeper.startupProbe.enabled Enable startupProbe on ClickHouse Keeper containers
1044 ## @param keeper.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1045 ## @param keeper.startupProbe.periodSeconds Period seconds for startupProbe
1046 ## @param keeper.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1047 ## @param keeper.startupProbe.failureThreshold Failure threshold for startupProbe
1048 ## @param keeper.startupProbe.successThreshold Success threshold for startupProbe
1053 initialDelaySeconds: 10
1057 ## @param keeper.customLivenessProbe Custom livenessProbe that overrides the default one
1059 customLivenessProbe: {}
1060 ## @param keeper.customReadinessProbe Custom readinessProbe that overrides the default one
1062 customReadinessProbe: {}
1063 ## @param keeper.customStartupProbe Custom startupProbe that overrides the default one
1065 customStartupProbe: {}
1066 ## ClickHouse Keeper resource requests and limits
1067 ## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1068 ## @param keeper.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if keeper.resources is set (keeper.resources is recommended for production).
1070 resourcesPreset: "small"
1071 ## @param keeper.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1082 ## Configure ClickHouse Keeper pods Security Context
1083 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1084 ## @param keeper.podSecurityContext.enabled Enabled ClickHouse Keeper pods' Security Context
1085 ## @param keeper.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1086 ## @param keeper.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1087 ## @param keeper.podSecurityContext.supplementalGroups Set filesystem extra groups
1088 ## @param keeper.podSecurityContext.fsGroup Set ClickHouse Keeper pod's Security Context fsGroup
1092 fsGroupChangePolicy: Always
1094 supplementalGroups: []
1096 ## Configure ClickHouse Keeper containers (only main one) Security Context
1097 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1098 ## @param keeper.containerSecurityContext.enabled Enabled ClickHouse Keeper containers' Security Context
1099 ## @param keeper.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1100 ## @param keeper.containerSecurityContext.runAsUser Set ClickHouse Keeper containers' Security Context runAsUser
1101 ## @param keeper.containerSecurityContext.runAsGroup Set ClickHouse Keeper containers' Security Context runAsGroup
1102 ## @param keeper.containerSecurityContext.runAsNonRoot Set ClickHouse Keeper containers' Security Context runAsNonRoot
1103 ## @param keeper.containerSecurityContext.privileged Set web container's Security Context privileged
1104 ## @param keeper.containerSecurityContext.allowPrivilegeEscalation Set web container's Security Context allowPrivilegeEscalation
1105 ## @param keeper.containerSecurityContext.readOnlyRootFilesystem Set web container's Security Context readOnlyRootFilesystem
1106 ## @param keeper.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1107 ## @param keeper.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1109 containerSecurityContext:
1116 allowPrivilegeEscalation: false
1117 readOnlyRootFilesystem: true
1121 type: "RuntimeDefault"
1122 ## @param keeper.command Override default container command (useful when using custom images)
1125 ## @param keeper.args Override default container args (useful when using custom images)
1128 ## @param keeper.extraEnvVars Array with extra environment variables to add to ClickHouse Keeper container(s)
1135 ## @param keeper.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for ClickHouse Keeper container(s)
1138 ## @param keeper.extraEnvVarsSecret Name of existing Secret containing extra env vars for ClickHouse Keeper container(s)
1140 extraEnvVarsSecret: ""
1141 ## @param keeper.automountServiceAccountToken Mount Service Account token in pod
1143 automountServiceAccountToken: false
1144 ## @param keeper.hostAliases ClickHouse Keeper pods host aliases
1145 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1148 ## @param keeper.podLabels Extra labels for ClickHouse Keeper pods
1149 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1152 ## @param keeper.podAnnotations Annotations for ClickHouse Keeper pods
1153 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1156 ## @param keeper.podAffinityPreset Pod affinity preset. Ignored if `keeper.affinity` is set. Allowed values: `soft` or `hard`
1157 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1159 podAffinityPreset: ""
1160 ## @param keeper.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `keeper.affinity` is set. Allowed values: `soft` or `hard`
1161 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1163 podAntiAffinityPreset: soft
1164 ## Node affinity preset
1165 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1166 ## @param keeper.nodeAffinityPreset.key Node label key to match. Ignored if `keeper.affinity` is set.
1167 ## @param keeper.nodeAffinityPreset.type Node affinity preset type. Ignored if `keeper.affinity` is set. Allowed values: `soft` or `hard`
1168 ## @param keeper.nodeAffinityPreset.values Node label values to match. Ignored if `keeper.affinity` is set.
1172 ## key: "kubernetes.io/e2e-az-name"
1182 ## @param keeper.affinity Affinity for ClickHouse Keeper pods assignment
1183 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1184 ## NOTE: `keeper.podAffinityPreset`, `keeper.podAntiAffinityPreset`, and `keeper.nodeAffinityPreset` will be ignored when it's set
1187 ## @param keeper.nodeSelector Node labels for ClickHouse Keeper pods assignment
1188 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1191 ## @param keeper.tolerations Tolerations for ClickHouse Keeper pods assignment
1192 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1195 ## @param keeper.updateStrategy.type ClickHouse Keeper StatefulSet strategy type
1196 ## @param keeper.updateStrategy.rollingUpdate ClickHouse Keeper StatefulSet rolling update configuration parameters
1197 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
1202 ## @param keeper.podManagementPolicy StatefulSet Pod management policy, it needs to be Parallel to be able to complete the cluster join
1203 ## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
1205 podManagementPolicy: Parallel
1206 ## @param keeper.priorityClassName ClickHouse Keeper pods' priorityClassName
1208 priorityClassName: ""
1209 ## @param keeper.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
1210 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
1212 topologySpreadConstraints: []
1213 ## @param keeper.schedulerName Name of the k8s scheduler (other than default) for ClickHouse pods
1214 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
1217 ## @param keeper.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
1218 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
1220 terminationGracePeriodSeconds: ""
1221 ## @param keeper.lifecycleHooks for the ClickHouse Keeper container(s) to automate configuration before or after startup
1224 ## @param keeper.extraVolumes Optionally specify extra list of additional volumes for the ClickHouse Keeper pod(s)
1227 ## @param keeper.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the ClickHouse Keeper container(s)
1229 extraVolumeMounts: []
1230 ## @param keeper.sidecars Add additional sidecar containers to the ClickHouse Keeper pod(s)
1233 ## - name: your-image-name
1234 ## image: your-image
1235 ## imagePullPolicy: Always
1238 ## containerPort: 1234
1241 ## @param keeper.initContainers Add additional init containers to the ClickHouse Keeper pod(s)
1242 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
1245 ## - name: your-image-name
1246 ## image: your-image
1247 ## imagePullPolicy: Always
1248 ## command: ['sh', '-c', 'echo "hello world"']
1251 ## ClickHouse Keeper Pod Disruption Budget
1252 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
1253 ## @param keeper.pdb.create Deploy a pdb object for the ClickHouse Keeper pods
1254 ## @param keeper.pdb.minAvailable Maximum number/percentage of unavailable ClickHouse Keeper replicas
1255 ## @param keeper.pdb.maxUnavailable Maximum number/percentage of unavailable ClickHouse Keeper replicas
1261 ## ClickHouse Keeper Autoscaling configuration
1262 ## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
1266 ## @param keeper.autoscaling.vpa.enabled Enable VPA
1269 ## @param keeper.autoscaling.vpa.annotations Annotations for VPA resource
1272 ## @param keeper.autoscaling.vpa.controlledResources VPA List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory
1274 controlledResources: []
1275 ## @param keeper.autoscaling.vpa.maxAllowed VPA Max allowed resources for the pod
1279 ## @param keeper.autoscaling.vpa.minAllowed VPA Min allowed resources for the pod
1284 ## @param keeper.autoscaling.vpa.updatePolicy.updateMode Autoscaling update policy Specifies whether recommended updates are applied when a Pod is started and whether recommended updates are applied during the life of a Pod
1285 ## Possible values are "Off", "Initial", "Recreate", and "Auto".
1288 ## @section ClickHouse Keeper Traffic Exposure parameters
1290 ## ClickHouse Keeper service parameters
1293 ## @param keeper.service.type ClickHouse Keeper service type
1296 ## @param keeper.service.ports.tcp ClickHouse Keeper service TCP port
1297 ## @param keeper.service.ports.tcpSecure ClickHouse Keeper service TCP (secure) port
1298 ## @param keeper.service.ports.raft ClickHouse Keeper service Raft port
1304 ## Node ports to expose
1305 ## @param keeper.service.nodePorts.tcp Node port for ClickHouse Keeper service TCP port
1306 ## @param keeper.service.nodePorts.tcpSecure Node port for ClickHouse Keeper service TCP (secure) port
1307 ## @param keeper.service.nodePorts.raft Node port for ClickHouse Keeper service Raft port
1308 ## NOTE: choose port between <30000-32767>
1314 ## @param keeper.service.clusterIP ClickHouse Keeper service Cluster IP
1319 ## @param keeper.service.loadBalancerIP ClickHouse Keeper service Load Balancer IP
1320 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1323 ## @param keeper.service.loadBalancerSourceRanges ClickHouse Keeper service Load Balancer sources
1324 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1326 ## loadBalancerSourceRanges:
1329 loadBalancerSourceRanges: []
1330 ## @param keeper.service.externalTrafficPolicy ClickHouse Keeper service external traffic policy
1331 ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1333 externalTrafficPolicy: Cluster
1334 ## @param keeper.service.annotations Additional custom annotations for ClickHouse Keeper service
1337 ## @param keeper.service.extraPorts Extra ports to expose in ClickHouse Keeper service (normally used with the `sidecars` value)
1340 ## @param keeper.service.sessionAffinity Control where client requests go, to the same pod or round-robin
1341 ## Values: ClientIP or None
1342 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
1344 sessionAffinity: None
1345 ## @param keeper.service.sessionAffinityConfig Additional settings for the sessionAffinity
1346 ## sessionAffinityConfig:
1348 ## timeoutSeconds: 300
1350 sessionAffinityConfig: {}
1351 ## Headless service properties
1354 ## @param keeper.service.headless.annotations Annotations for the headless service.
1357 ## @param keeper.service.headless.extraPorts Optionally specify extra ports to expose for the headless service.
1360 ## ClickHouse Keeper Network Policies
1361 ## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1364 ## @param keeper.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
1367 ## @param keeper.networkPolicy.allowExternal Don't require client label for connections
1368 ## The Policy model to apply. When set to false, only pods with the correct
1369 ## client label will have network access to the ports ClickHouse Keeper is listening
1370 ## on. When true, ClickHouse Keeper will accept connections from any source
1371 ## (with the correct destination port).
1374 ## @param keeper.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1376 allowExternalEgress: true
1377 ## @param keeper.networkPolicy.addExternalClientAccess Allow access from pods with client label set to "true". Ignored if `keeper.networkPolicy.allowExternal` is true.
1379 addExternalClientAccess: true
1380 ## @param keeper.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1390 ## - matchExpressions:
1396 ## @param keeper.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1406 ## - matchExpressions:
1413 ## @param keeper.networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
1414 ## @param keeper.networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
1416 ingressNSMatchLabels: {}
1417 ingressNSPodMatchLabels: {}
1418 ## @section ClickHouse Keeper Persistence parameters
1420 ## persistentVolumeClaimRetentionPolicy
1421 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1422 ## @param keeper.persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
1423 ## @param keeper.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1424 ## @param keeper.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1426 persistentVolumeClaimRetentionPolicy:
1430 ## Enable persistence using Persistent Volume Claims
1431 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1434 ## @param keeper.persistence.enabled Enable ClickHouse Keeper data persistence using PVC
1437 ## @param keeper.persistence.existingClaim A manually managed Persistent Volume and Claim
1438 ## If defined, PVC must be created manually before volume will be bound
1439 ## The value is evaluated as a template
1442 ## @param keeper.persistence.storageClass PVC Storage Class for ClickHouse Keeper data volume
1443 ## If defined, storageClassName: <storageClass>
1444 ## If set to "-", storageClassName: "", which disables dynamic provisioning
1445 ## If undefined (the default) or set to null, no storageClassName spec is
1446 ## set, choosing the default provisioner.
1449 ## @param keeper.persistence.accessModes Persistent Volume Access Modes
1453 ## @param keeper.persistence.size PVC Storage Request for ClickHouse Keeper data volume
1456 ## @param keeper.persistence.annotations Annotations for the PVC
1459 ## @param keeper.persistence.labels Labels for the PVC
1462 ## @param keeper.persistence.selector Selector to match an existing Persistent Volume for ClickHouse Keeper data PVC. If set, the PVC can't have a PV dynamically provisioned for it
1468 ## @param keeper.persistence.dataSource Custom PVC data source
1471 ## @param keeper.persistence.mountPath Mount path of the ClickHouse Keeper data volume
1473 mountPath: /iamguarded/clickhouse-keeper
1474## @section Other Parameters
1476## ServiceAccount configuration
1479 ## @param serviceAccount.create Specifies whether a ServiceAccount should be created
1482 ## @param serviceAccount.name The name of the ServiceAccount to use.
1483 ## If not set and create is true, a name is generated using the common.names.fullname template
1486 ## @param serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
1489 ## @param serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1491 automountServiceAccountToken: false
1492## @section Prometheus metrics parameters
1494 ## @param metrics.enabled Enable the export of Prometheus metrics
1497 ## @param metrics.podAnnotations Pod annotations for enabling Prometheus to access the metrics endpoint
1500 ## Prometheus Operator ServiceMonitor configuration
1503 ## @param metrics.serviceMonitor.enabled if `true`, creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`)
1506 ## @param metrics.serviceMonitor.namespace Namespace in which Prometheus is running
1509 ## @param metrics.serviceMonitor.annotations Additional custom annotations for the ServiceMonitor
1512 ## @param metrics.serviceMonitor.labels Extra labels for the ServiceMonitor
1515 ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in Prometheus
1518 ## @param metrics.serviceMonitor.honorLabels honorLabels chooses the metric's labels on collisions with target labels
1521 ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped.
1522 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1527 ## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
1528 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1530 ## scrapeTimeout: 10s
1533 ## @param metrics.serviceMonitor.metricRelabelings Specify additional relabeling of metrics
1535 metricRelabelings: []
1536 ## @param metrics.serviceMonitor.relabelings Specify general relabeling
1539 ## @param metrics.serviceMonitor.selector Prometheus instance selector labels
1541 ## prometheus: my-prometheus
1544 ## Prometheus Operator PrometheusRule configuration
1547 ## @param metrics.prometheusRule.enabled Create a PrometheusRule for Prometheus Operator
1550 ## @param metrics.prometheusRule.namespace Namespace for the PrometheusRule Resource (defaults to the Release Namespace)
1553 ## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so PrometheusRule will be discovered by Prometheus
1555 additionalLabels: {}
1556 ## @param metrics.prometheusRule.rules PrometheusRule definitions
1557 ## - alert: ClickHouseServerRestart
1559 ## message: ClickHouse server started recently
1560 ## expr: ClickHouseAsyncMetrics_Uptime > 1 < 180
1563 ## severity: warning
1565## @section External ClickHouse Keeper / Zookeeper parameters
1568 ## @param externalZookeeper.servers List of external ClickHouse Keeper / Zookeeper servers to use
1569 ## @param externalZookeeper.port Port of the ClickHouse Keeper / Zookeeper servers