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)
20## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead
27 ## - myRegistryKeySecretName
30 defaultStorageClass: ""
32 ## Security parameters
35 ## @param global.security.allowInsecureImages Allows skipping image verification
36 allowInsecureImages: false
37 ## Compatibility adaptations for Kubernetes platforms
40 ## Compatibility adaptations for Openshift
43 ## @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)
45 adaptSecurityContext: auto
47## @section Common parameters
50## @param kubeVersion Override Kubernetes version
53## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
56## @param fullnameOverride String to fully override common.names.fullname template
59## @param clusterDomain Kubernetes Cluster Domain
61clusterDomain: cluster.local
62## @param extraDeploy Extra objects to deploy (evaluated as a template)
65## @param commonLabels Add labels to all the deployed resources
68## @param commonAnnotations Add annotations to all the deployed resources
71## @param namespaceOverride Override namespace for ZooKeeper resources
72## Useful when including ZooKeeper as a chart dependency, so it can be released into a different namespace than the parent
75## @param usePasswordFiles Mount credentials as files instead of using environment variables
78## Enable diagnostic mode in the statefulset
81 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
84 ## @param diagnosticMode.command Command to override all containers in the statefulset
88 ## @param diagnosticMode.args Args to override all containers in the statefulset
92## @section ZooKeeper chart parameters
94## Iamguarded ZooKeeper image version
95## ref: https://hub.docker.com/r/iamguarded/zookeeper/tags/
96## @param image.registry [default: REGISTRY_NAME] ZooKeeper image registry
97## @param image.repository [default: REPOSITORY_NAME/zookeeper] ZooKeeper image repository
98## @skip image.tag ZooKeeper image tag (immutable tags are recommended)
99## @param image.digest ZooKeeper image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
100## @param image.pullPolicy ZooKeeper image pull policy
101## @param image.pullSecrets Specify docker-registry secret names as an array
102## @param image.debug Specify if debug values should be set
106 repository: chainguard-private/zookeeper-iamguarded
108 digest: sha256:10e18fa12e9e9bf6f02e0452388a573e2561378ac2bd5d63acfb0ac6f0874d0e
109 ## Specify a imagePullPolicy
110 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
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 ## Set to true if you would like to see extra information on logs
124## Authentication parameters
128 ## @param auth.client.enabled Enable ZooKeeper client-server authentication. It uses SASL/Digest-MD5
131 ## @param auth.client.clientUser User that will use ZooKeeper clients to auth
134 ## @param auth.client.clientPassword Password that will use ZooKeeper clients to auth
137 ## @param auth.client.serverUsers Comma, semicolon or whitespace separated list of user to be created
138 ## Specify them as a string, for example: "user1,user2,admin"
141 ## @param auth.client.serverPasswords Comma, semicolon or whitespace separated list of passwords to assign to users when created
142 ## Specify them as a string, for example: "pass4user1, pass4user2, pass4admin"
145 ## @param auth.client.existingSecret Use existing secret (ignores previous passwords)
149 ## @param auth.quorum.enabled Enable ZooKeeper server-server authentication. It uses SASL/Digest-MD5
152 ## @param auth.quorum.learnerUser User that the ZooKeeper quorumLearner will use to authenticate to quorumServers.
153 ## Note: Make sure the user is included in auth.quorum.serverUsers
156 ## @param auth.quorum.learnerPassword Password that the ZooKeeper quorumLearner will use to authenticate to quorumServers.
159 ## @param auth.quorum.serverUsers Comma, semicolon or whitespace separated list of users for the quorumServers.
160 ## Specify them as a string, for example: "user1,user2,admin"
163 ## @param auth.quorum.serverPasswords Comma, semicolon or whitespace separated list of passwords to assign to users when created
164 ## Specify them as a string, for example: "pass4user1, pass4user2, pass4admin"
167 ## @param auth.quorum.existingSecret Use existing secret (ignores previous passwords)
170## @param tickTime Basic time unit (in milliseconds) used by ZooKeeper for heartbeats
173## @param initLimit ZooKeeper uses to limit the length of time the ZooKeeper servers in quorum have to connect to a leader
176## @param syncLimit How far out of date a server can be from a leader
179## @param preAllocSize Block size for transaction log file
182## @param snapCount The number of transactions recorded in the transaction log before a snapshot can be taken (and the transaction log rolled)
185## @param maxClientCnxns Limits the number of concurrent connections that a single client may make to a single member of the ZooKeeper ensemble
188## @param maxSessionTimeout Maximum session timeout (in milliseconds) that the server will allow the client to negotiate
189## Defaults to 20 times the tickTime
191maxSessionTimeout: 40000
192## @param heapSize Size (in MB) for the Java Heap options (Xmx and Xms)
193## This env var is ignored if Xmx an Xms are configured via `jvmFlags`
196## @param fourlwCommandsWhitelist A list of comma separated Four Letter Words commands that can be executed
198fourlwCommandsWhitelist: srvr, mntr, ruok
199## @param minServerId Minimal SERVER_ID value, nodes increment their IDs respectively
200## Servers increment their ID starting at this minimal value.
201## E.g., with `minServerId=10` and 3 replicas, server IDs will be 10, 11, 12 for z-0, z-1 and z-2 respectively.
204## @param listenOnAllIPs Allow ZooKeeper to listen for connections from its peers on all available IP addresses
207## @param zooServers ZooKeeper space separated servers list. Leave empty to use the default ZooKeeper server names.
210## Ongoing data directory cleanup configuration
213 ## @param autopurge.snapRetainCount The most recent snapshots amount (and corresponding transaction logs) to retain
216 ## @param autopurge.purgeInterval The time interval (in hours) for which the purge task has to be triggered
217 ## Set to a positive integer to enable the auto purging. Set to 0 to disable auto purging.
220## @param logLevel Log level for the ZooKeeper server. ERROR by default
221## Have in mind if you set it to INFO or WARN the ReadinessProve will produce a lot of logs
224## @param jvmFlags Default JVM flags for the ZooKeeper process
227## @param dataLogDir Dedicated data log directory
228## This allows a dedicated log device to be used, and helps avoid competition between logging and snapshots.
230## dataLogDir: /iamguarded/zookeeper/dataLog
233## @param configuration Configure ZooKeeper with a custom zoo.cfg file
236## deploy-working-dir=/iamguarded/zookeeper/data
241## @param existingConfigmap The name of an existing ConfigMap with your custom configuration for ZooKeeper
242## NOTE: When it's set the `configuration` parameter is ignored
245## @param extraEnvVars Array with extra environment variables to add to ZooKeeper nodes
252## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars for ZooKeeper nodes
255## @param extraEnvVarsSecret Name of existing Secret containing extra env vars for ZooKeeper nodes
257extraEnvVarsSecret: ""
258## @param command Override default container command (useful when using custom images)
262## @param args Override default container args (useful when using custom images)
265## @section Statefulset parameters
267## @param replicaCount Number of ZooKeeper nodes
270## @param revisionHistoryLimit The number of old history to retain to allow rollback
272revisionHistoryLimit: 10
273## @param containerPorts.client ZooKeeper client container port
274## @param containerPorts.tls ZooKeeper TLS container port
275## @param containerPorts.follower ZooKeeper follower container port
276## @param containerPorts.election ZooKeeper election container port
277## @param containerPorts.adminServer ZooKeeper admin server container port
278## @param containerPorts.metrics ZooKeeper Prometheus Exporter container port
287## Configure extra options for ZooKeeper containers' liveness, readiness and startup probes
288## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
289## @param livenessProbe.enabled Enable livenessProbe on ZooKeeper containers
290## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
291## @param livenessProbe.periodSeconds Period seconds for livenessProbe
292## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
293## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
294## @param livenessProbe.successThreshold Success threshold for livenessProbe
295## @param livenessProbe.probeCommandTimeout Probe command timeout for livenessProbe
299 initialDelaySeconds: 30
304 probeCommandTimeout: 3
305## @param readinessProbe.enabled Enable readinessProbe on ZooKeeper containers
306## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
307## @param readinessProbe.periodSeconds Period seconds for readinessProbe
308## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
309## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
310## @param readinessProbe.successThreshold Success threshold for readinessProbe
311## @param readinessProbe.probeCommandTimeout Probe command timeout for readinessProbe
315 initialDelaySeconds: 5
320 probeCommandTimeout: 2
321## @param startupProbe.enabled Enable startupProbe on ZooKeeper containers
322## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
323## @param startupProbe.periodSeconds Period seconds for startupProbe
324## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
325## @param startupProbe.failureThreshold Failure threshold for startupProbe
326## @param startupProbe.successThreshold Success threshold for startupProbe
330 initialDelaySeconds: 30
335## @param customLivenessProbe Custom livenessProbe that overrides the default one
337customLivenessProbe: {}
338## @param customReadinessProbe Custom readinessProbe that overrides the default one
340customReadinessProbe: {}
341## @param customStartupProbe Custom startupProbe that overrides the default one
343customStartupProbe: {}
344## @param lifecycleHooks for the ZooKeeper container(s) to automate configuration before or after startup
347## ZooKeeper resource requests and limits
348## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
349## @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).
350## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
352resourcesPreset: "micro"
353## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
364## Configure Pods Security Context
365## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
366## @param podSecurityContext.enabled Enabled ZooKeeper pods' Security Context
367## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
368## @param podSecurityContext.sysctls Set kernel settings using the sysctl interface
369## @param podSecurityContext.supplementalGroups Set filesystem extra groups
370## @param podSecurityContext.fsGroup Set ZooKeeper pod's Security Context fsGroup
374 fsGroupChangePolicy: Always
376 supplementalGroups: []
378## Configure Container Security Context
379## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
380## @param containerSecurityContext.enabled Enabled containers' Security Context
381## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
382## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
383## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
384## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
385## @param containerSecurityContext.privileged Set container's Security Context privileged
386## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
387## @param containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
388## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
389## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
391containerSecurityContext:
398 readOnlyRootFilesystem: true
399 allowPrivilegeEscalation: false
403 type: "RuntimeDefault"
404## @param automountServiceAccountToken Mount Service Account token in pod
406automountServiceAccountToken: false
407## @param hostAliases ZooKeeper pods host aliases
408## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
411## @param podLabels Extra labels for ZooKeeper pods
412## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
415## @param podAnnotations Annotations for ZooKeeper pods
416## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
419## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
420## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
423## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
424## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
426podAntiAffinityPreset: soft
427## Node affinity preset
428## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
431 ## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
434 ## @param nodeAffinityPreset.key Node label key to match Ignored if `affinity` is set.
436 ## key: "kubernetes.io/e2e-az-name"
439 ## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set.
446## @param affinity Affinity for pod assignment
447## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
448## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
451## @param nodeSelector Node labels for pod assignment
452## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
455## @param tolerations Tolerations for pod assignment
456## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
459## @param topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
460## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
462topologySpreadConstraints: []
463## @param podManagementPolicy StatefulSet controller supports relax its ordering guarantees while preserving its uniqueness and identity guarantees. There are two valid pod management policies: `OrderedReady` and `Parallel`
464## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#pod-management-policy
466podManagementPolicy: Parallel
467## @param priorityClassName Name of the existing priority class to be used by ZooKeeper pods, priority class needs to be created beforehand
468## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
471## @param schedulerName Kubernetes pod scheduler registry
472## https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
475## @param updateStrategy.type ZooKeeper statefulset strategy type
476## @param updateStrategy.rollingUpdate ZooKeeper statefulset rolling update configuration parameters
477## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
482## @param extraVolumes Optionally specify extra list of additional volumes for the ZooKeeper pod(s)
483## Example Use Case: mount certificates to enable TLS
486## - name: zookeeper-keystore
489## secretName: zookeeper-keystore
490## - name: zookeeper-truststore
493## secretName: zookeeper-truststore
496## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for the ZooKeeper container(s)
497## Example Use Case: mount certificates to enable TLS
500## - name: zookeeper-keystore
501## mountPath: /certs/keystore
503## - name: zookeeper-truststore
504## mountPath: /certs/truststore
508## @param sidecars Add additional sidecar containers to the ZooKeeper pod(s)
511## - name: your-image-name
513## imagePullPolicy: Always
516## containerPort: 1234
519## @param initContainers Add additional init containers to the ZooKeeper pod(s)
522## - name: your-image-name
524## imagePullPolicy: Always
527## containerPort: 1234
530## ZooKeeper Pod Disruption Budget
531## ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
532## @param pdb.create Deploy a pdb object for the ZooKeeper pod
533## @param pdb.minAvailable Minimum available ZooKeeper replicas
534## @param pdb.maxUnavailable Maximum unavailable ZooKeeper replicas. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty.
540## @param enableServiceLinks Whether information about services should be injected into pod's environment variable
541## The environment variables injected by service links are not used, but can lead to slow boot times or slow running of the scripts when there are many services in the current namespace.
542## If you experience slow pod startups or slow running of the scripts you probably want to set this to `false`.
544enableServiceLinks: true
546## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
547## @param dnsPolicy Specifies the DNS policy for the zookeeper pods
548## DNS policies can be set on a per-Pod basis. Currently Kubernetes supports the following Pod-specific DNS policies.
549## Available options: Default, ClusterFirst, ClusterFirstWithHostNet, None
550## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
552## @param dnsConfig allows users more control on the DNS settings for a Pod. Required if `dnsPolicy` is set to `None`
553## The dnsConfig field is optional and it can work with any dnsPolicy settings.
554## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config
558## - 192.0.2.1 # this is an example
560## - ns1.svc.cluster-domain.example
561## - my.dns.search.suffix
567## @section Traffic Exposure parameters
569 ## @param service.type Kubernetes Service type
572 ## @param service.ports.client ZooKeeper client service port
573 ## @param service.ports.tls ZooKeeper TLS service port
574 ## @param service.ports.follower ZooKeeper follower service port
575 ## @param service.ports.election ZooKeeper election service port
582 ## Node ports to expose
583 ## NOTE: choose port between <30000-32767>
584 ## @param service.nodePorts.client Node port for clients
585 ## @param service.nodePorts.tls Node port for TLS
590 ## @param service.disableBaseClientPort Remove client port from service definitions.
592 disableBaseClientPort: false
593 ## @param service.sessionAffinity Control where client requests go, to the same pod or round-robin
594 ## Values: ClientIP or None
595 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
597 sessionAffinity: None
598 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
599 ## sessionAffinityConfig:
601 ## timeoutSeconds: 300
603 sessionAffinityConfig: {}
604 ## @param service.clusterIP ZooKeeper service Cluster IP
609 ## @param service.loadBalancerIP ZooKeeper service Load Balancer IP
610 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
613 ## @param service.loadBalancerSourceRanges ZooKeeper service Load Balancer sources
614 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
616 ## loadBalancerSourceRanges:
619 loadBalancerSourceRanges: []
620 ## @param service.externalTrafficPolicy ZooKeeper service external traffic policy
621 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
623 externalTrafficPolicy: Cluster
624 ## @param service.annotations Additional custom annotations for ZooKeeper service
627 ## @param service.extraPorts Extra ports to expose in the ZooKeeper service (normally used with the `sidecar` value)
630 ## @param service.headless.annotations Annotations for the Headless Service
631 ## @param service.headless.publishNotReadyAddresses If the ZooKeeper headless service should publish DNS records for not ready pods
632 ## @param service.headless.servicenameOverride String to partially override headless service name
635 publishNotReadyAddresses: true
637 servicenameOverride: ""
639## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
642 ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
645 ## @param networkPolicy.allowExternal Don't require client label for connections
646 ## When set to false, only pods with the correct client label will have network access to the port Redis® is
647 ## listening on. When true, zookeeper accept connections from any source (with the correct destination port).
650 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
652 allowExternalEgress: true
653 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
663 ## - matchExpressions:
669 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
679 ## - matchExpressions:
686 ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
687 ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
689 ingressNSMatchLabels: {}
690 ingressNSPodMatchLabels: {}
691## @section Other Parameters
693## Service account for ZooKeeper to use.
694## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
697 ## @param serviceAccount.create Enable creation of ServiceAccount for ZooKeeper pod
700 ## @param serviceAccount.name The name of the ServiceAccount to use.
701 ## If not set and create is true, a name is generated using the common.names.fullname template
704 ## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
705 ## Can be set to false if pods using this serviceAccount do not need to use K8s API
707 automountServiceAccountToken: false
708 ## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
711## @section Persistence parameters
713## Enable persistence using Persistent Volume Claims
714## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
717 ## @param persistence.enabled Enable ZooKeeper data persistence using PVC. If false, use emptyDir
720 ## @param persistence.existingClaim Name of an existing PVC to use (only when deploying a single replica)
723 ## @param persistence.storageClass PVC Storage Class for ZooKeeper data volume
724 ## If defined, storageClassName: <storageClass>
725 ## If set to "-", storageClassName: "", which disables dynamic provisioning
726 ## If undefined (the default) or set to null, no storageClassName spec is
727 ## set, choosing the default provisioner. (gp2 on AWS, standard on
728 ## GKE, AWS & OpenStack)
731 ## @param persistence.accessModes PVC Access modes
735 ## @param persistence.size PVC Storage Request for ZooKeeper data volume
738 ## @param persistence.annotations Annotations for the PVC
741 ## @param persistence.labels Labels for the PVC
744 ## @param persistence.selector Selector to match an existing Persistent Volume for ZooKeeper's data PVC
745 ## If set, the PVC can't have a PV dynamically provisioned for it
752 ## Persistence for a dedicated data log directory
755 ## @param persistence.dataLogDir.size PVC Storage Request for ZooKeeper's dedicated data log directory
758 ## @param persistence.dataLogDir.existingClaim Provide an existing `PersistentVolumeClaim` for ZooKeeper's data log directory
759 ## If defined, PVC must be created manually before volume will be bound
760 ## The value is evaluated as a template
763 ## @param persistence.dataLogDir.selector Selector to match an existing Persistent Volume for ZooKeeper's data log PVC
764 ## If set, the PVC can't have a PV dynamically provisioned for it
771## @section Volume Permissions parameters
774## Init containers parameters:
775## volumePermissions: Change the owner and group of the persistent volume(s) mountpoint(s) to 'runAsUser:fsGroup' on each node
778 ## @param volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume
781 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
782 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image repository
783 ## @skip volumePermissions.image.tag Init container volume-permissions image tag (immutable tags are recommended)
784 ## @param volumePermissions.image.digest Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
785 ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
786 ## @param volumePermissions.image.pullSecrets Init container volume-permissions image pull secrets
790 repository: chainguard-private/os-shell-iamguarded
792 digest: sha256:7401ee05d8e0e6a6be960433db429bf05a6ca21be356b99cd87597199fb355a2
793 pullPolicy: IfNotPresent
794 ## Optionally specify an array of imagePullSecrets.
795 ## Secrets must be manually created in the namespace.
796 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
799 ## - myRegistryKeySecretName
802 ## Init container resource requests and limits
803 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
804 ## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
805 ## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
807 resourcesPreset: "nano"
808 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
819 ## Init container' Security Context
820 ## Note: the chown of the data folder is done to containerSecurityContext.runAsUser
821 ## and not the below volumePermissions.containerSecurityContext.runAsUser
822 ## @param volumePermissions.containerSecurityContext.enabled Enabled init container Security Context
823 ## @param volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
824 ## @param volumePermissions.containerSecurityContext.runAsUser User ID for the init container
826 containerSecurityContext:
830## @section Metrics parameters
833## ZooKeeper Prometheus Exporter configuration
836 ## @param metrics.enabled Enable Prometheus to access ZooKeeper metrics endpoint
839 ## Service configuration
842 ## @param metrics.service.type ZooKeeper Prometheus Exporter service type
845 ## @param metrics.service.port ZooKeeper Prometheus Exporter service port
848 ## @param metrics.service.annotations [object] Annotations for Prometheus to auto-discover the metrics endpoint
851 prometheus.io/scrape: "true"
852 prometheus.io/port: "{{ .Values.metrics.service.port }}"
853 prometheus.io/path: "/metrics"
854 ## Prometheus Operator ServiceMonitor configuration
857 ## @param metrics.serviceMonitor.enabled Create ServiceMonitor Resource for scraping metrics using Prometheus Operator
860 ## @param metrics.serviceMonitor.namespace Namespace for the ServiceMonitor Resource (defaults to the Release Namespace)
863 ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped.
864 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
867 ## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
868 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
871 ## @param metrics.serviceMonitor.additionalLabels Additional labels that can be used so ServiceMonitor will be discovered by Prometheus
874 ## @param metrics.serviceMonitor.selector Prometheus instance selector labels
875 ## ref: https://github.com/iamguarded/charts/tree/main/iamguarded/prometheus-operator#prometheus-configuration
878 ## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping
881 ## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion
883 metricRelabelings: []
884 ## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
887 ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
890 ## @param metrics.serviceMonitor.scheme The explicit scheme for metrics scraping.
893 ## @param metrics.serviceMonitor.tlsConfig [object] TLS configuration used for scrape endpoints used by Prometheus
894 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#tlsconfig
899 ## name: existingSecretName
902 ## Prometheus Operator PrometheusRule configuration
905 ## @param metrics.prometheusRule.enabled Create a PrometheusRule for Prometheus Operator
908 ## @param metrics.prometheusRule.namespace Namespace for the PrometheusRule Resource (defaults to the Release Namespace)
911 ## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so PrometheusRule will be discovered by Prometheus
914 ## @param metrics.prometheusRule.rules PrometheusRule definitions
915 ## - alert: ZooKeeperSyncedFollowers
917 ## message: The number of synced followers for the leader node in ZooKeeper deployment my-release is less than 2. This usually means that some of the ZooKeeper nodes aren't communicating properly. If it doesn't resolve itself you can try killing the pods (one by one).
918 ## expr: max(synced_followers{service="my-release-metrics"}) < 2
921 ## severity: critical
922 ## - alert: ZooKeeperOutstandingRequests
924 ## message: The number of outstanding requests for ZooKeeper pod {{ $labels.pod }} is greater than 10. This can indicate a performance issue with the Pod or cluster a whole.
925 ## expr: outstanding_requests{service="my-release-metrics"} > 10
928 ## severity: critical
931## @section TLS/SSL parameters
934## Enable SSL/TLS encryption
938 ## @param tls.client.enabled Enable TLS for client connections
941 ## @param tls.client.auth SSL Client auth. Can be "none", "want" or "need".
944 ## @param tls.client.autoGenerated Generate automatically self-signed TLS certificates for ZooKeeper client communications
945 ## Currently only supports PEM certificates
948 ## @param tls.client.existingSecret Name of the existing secret containing the TLS certificates for ZooKeeper client communications
951 ## @param tls.client.existingSecretKeystoreKey The secret key from the tls.client.existingSecret containing the Keystore.
953 existingSecretKeystoreKey: ""
954 ## @param tls.client.existingSecretTruststoreKey The secret key from the tls.client.existingSecret containing the Truststore.
956 existingSecretTruststoreKey: ""
957 ## @param tls.client.keystorePath Location of the KeyStore file used for Client connections
959 keystorePath: /opt/iamguarded/zookeeper/config/certs/client/zookeeper.keystore.jks
960 ## @param tls.client.truststorePath Location of the TrustStore file used for Client connections
962 truststorePath: /opt/iamguarded/zookeeper/config/certs/client/zookeeper.truststore.jks
963 ## @param tls.client.passwordsSecretName Existing secret containing Keystore and truststore passwords
965 passwordsSecretName: ""
966 ## @param tls.client.passwordsSecretKeystoreKey The secret key from the tls.client.passwordsSecretName containing the password for the Keystore.
968 passwordsSecretKeystoreKey: ""
969 ## @param tls.client.passwordsSecretTruststoreKey The secret key from the tls.client.passwordsSecretName containing the password for the Truststore.
971 passwordsSecretTruststoreKey: ""
972 ## @param tls.client.keystorePassword Password to access KeyStore if needed
975 ## @param tls.client.truststorePassword Password to access TrustStore if needed
977 truststorePassword: ""
979 ## @param tls.quorum.enabled Enable TLS for quorum protocol
982 ## @param tls.quorum.auth SSL Quorum Client auth. Can be "none", "want" or "need".
985 ## @param tls.quorum.autoGenerated Create self-signed TLS certificates. Currently only supports PEM certificates.
988 ## @param tls.quorum.existingSecret Name of the existing secret containing the TLS certificates for ZooKeeper quorum protocol
991 ## @param tls.quorum.existingSecretKeystoreKey The secret key from the tls.quorum.existingSecret containing the Keystore.
993 existingSecretKeystoreKey: ""
994 ## @param tls.quorum.existingSecretTruststoreKey The secret key from the tls.quorum.existingSecret containing the Truststore.
996 existingSecretTruststoreKey: ""
997 ## @param tls.quorum.keystorePath Location of the KeyStore file used for Quorum protocol
999 keystorePath: /opt/iamguarded/zookeeper/config/certs/quorum/zookeeper.keystore.jks
1000 ## @param tls.quorum.truststorePath Location of the TrustStore file used for Quorum protocol
1002 truststorePath: /opt/iamguarded/zookeeper/config/certs/quorum/zookeeper.truststore.jks
1003 ## @param tls.quorum.passwordsSecretName Existing secret containing Keystore and truststore passwords
1005 passwordsSecretName: ""
1006 ## @param tls.quorum.passwordsSecretKeystoreKey The secret key from the tls.quorum.passwordsSecretName containing the password for the Keystore.
1008 passwordsSecretKeystoreKey: ""
1009 ## @param tls.quorum.passwordsSecretTruststoreKey The secret key from the tls.quorum.passwordsSecretName containing the password for the Truststore.
1011 passwordsSecretTruststoreKey: ""
1012 ## @param tls.quorum.keystorePassword Password to access KeyStore if needed
1014 keystorePassword: ""
1015 ## @param tls.quorum.truststorePassword Password to access TrustStore if needed
1017 truststorePassword: ""
1018 ## Init container resource requests and limits
1019 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1020 ## @param tls.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if tls.resources is set (tls.resources is recommended for production).
1021 ## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
1023 resourcesPreset: "nano"
1024 ## @param tls.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)