DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
kafka logoHELM

kafka

Helm chart
iamguarded
Last changed
Request a free trial

Contact our team to test out this Helm chart and related images for free. Please also indicate any other images you would like to evaluate.

Overview
Chart tags
Default values
Chart metadata
Images

Tag:
Compare:

1
# This file has been modified by Chainguard, Inc.
2
#
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
6
#
7
# Copyright Broadcom, Inc. All Rights Reserved.
8
# SPDX-License-Identifier: APACHE-2.0
9
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
14
15
## @param global.imageRegistry Global Docker image registry
16
## @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.
17
## @param global.imagePullSecrets Global Docker registry secret names as an array
18
## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
19
##
20
global:
21
imageRegistry: ""
22
useImageTags: false
23
## E.g.
24
## imagePullSecrets:
25
## - myRegistryKeySecretName
26
##
27
imagePullSecrets: []
28
defaultStorageClass: ""
29
## Security parameters
30
##
31
security:
32
## @param global.security.allowInsecureImages Allows skipping image verification
33
allowInsecureImages: false
34
## Compatibility adaptations for Kubernetes platforms
35
##
36
compatibility:
37
## Compatibility adaptations for Openshift
38
##
39
openshift:
40
## @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)
41
##
42
adaptSecurityContext: auto
43
org: ""
44
## @section Common parameters
45
46
## @param kubeVersion Override Kubernetes version
47
##
48
kubeVersion: ""
49
## @param apiVersions Override Kubernetes API versions reported by .Capabilities
50
##
51
apiVersions: []
52
## @param nameOverride String to partially override common.names.fullname
53
##
54
nameOverride: ""
55
## @param fullnameOverride String to fully override common.names.fullname
56
##
57
fullnameOverride: ""
58
## @param namespaceOverride String to fully override common.names.namespace
59
##
60
namespaceOverride: ""
61
## @param clusterDomain Default Kubernetes cluster domain
62
##
63
clusterDomain: cluster.local
64
## @param commonLabels Labels to add to all deployed objects
65
##
66
commonLabels: {}
67
## @param commonAnnotations Annotations to add to all deployed objects
68
##
69
commonAnnotations: {}
70
## @param extraDeploy Array of extra objects to deploy with the release
71
##
72
extraDeploy: []
73
## @param usePasswordFiles Mount credentials as files instead of using environment variables
74
##
75
usePasswordFiles: true
76
## Diagnostic mode
77
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
78
## @param diagnosticMode.command Command to override all containers in the chart release
79
## @param diagnosticMode.args Args to override all containers in the chart release
80
##
81
diagnosticMode:
82
enabled: false
83
command:
84
- sleep
85
args:
86
- infinity
87
## @param serviceBindings.enabled Create secret for service binding (Experimental)
88
## Ref: https://servicebinding.io/service-provider/
89
##
90
serviceBindings:
91
enabled: false
92
## @section Kafka common parameters
93
94
## Iamguarded Kafka image version
95
## @param image.registry [default: REGISTRY_NAME] Kafka image registry
96
## @param image.repository [default: REPOSITORY_NAME/kafka] Kafka image repository
97
## @skip image.tag Kafka image tag (immutable tags are recommended)
98
## @param image.digest Kafka image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
99
## @param image.pullPolicy Kafka image pull policy
100
## @param image.pullSecrets Specify docker-registry secret names as an array
101
## @param image.debug Specify if debug values should be set
102
##
103
image:
104
registry: cgr.dev
105
repository: chainguard-private/kafka-iamguarded
106
tag: 4.4.0
107
digest: ""
108
## Specify a imagePullPolicy
109
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
110
##
111
pullPolicy: IfNotPresent
112
## Optionally specify an array of imagePullSecrets.
113
## Secrets must be manually created in the namespace.
114
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
115
## e.g:
116
## pullSecrets:
117
## - myRegistryKeySecretName
118
##
119
pullSecrets: []
120
## Set to true if you would like to see extra information on logs
121
##
122
debug: false
123
## @param clusterId Kafka Kraft cluster ID (ignored if existingKraftSecret is set). A random cluster ID will be generated the 1st time Kraft is initialized if not set.
124
## NOTE: Already initialized Kafka nodes will use cluster ID stored in their persisted storage.
125
## If reusing existing PVCs, make sure the cluster ID is set matching the stored cluster ID, otherwise new nodes will fail to join the cluster.
126
## In case the cluster ID stored in the secret does not match the value stored in /iamguarded/kafka/data/meta.properties, remove the secret and upgrade the chart setting the correct value.
127
##
128
clusterId: ""
129
## @param existingKraftSecret Name of the secret containing the Kafka KRaft Cluster ID and one directory ID per controller replica
130
##
131
existingKraftSecret: ""
132
## @param kraftVersion Kraft version to be used. It determines whether static quorum (kraftVersion=0) or dynamic quorum (kraftVersion=1) will be used.
133
## NOTE: Kafka 4.0 does not yet support switching kraft version. This setting was added for backward-compatibility with 3.x clusters.
134
## Ref: https://kafka.apache.org/documentation/#static_versus_dynamic_kraft_quorums
135
##
136
kraftVersion: 1
137
## @param config Specify content for Kafka configuration (auto-generated based on other parameters otherwise)
138
## NOTE: This will override the configuration based on values, please act carefully
139
## Use simple key-value YAML format, then it's transformed to properties format by the chart. e.g:
140
## process.roles: broker
141
## ... will be transformed to:
142
## process.roles=broker
143
##
144
config: {}
145
## @param overrideConfiguration Kafka common configuration override. Values defined here takes precedence over the ones defined at `config`
146
##
147
overrideConfiguration: {}
148
## @param existingConfigmap Name of an existing ConfigMap with the Kafka configuration
149
##
150
existingConfigmap: ""
151
## @param secretConfig Additional configuration to be appended at the end of the generated Kafka configuration (store in a secret)
152
##
153
secretConfig: ""
154
## @param existingSecretConfig Secret with additional configuration that will be appended to the end of the generated Kafka configuration
155
## The key for the configuration should be: server-secret.properties
156
## NOTE: This will override secretConfig value
157
##
158
existingSecretConfig: ""
159
## @param log4j2 Specify content for Kafka log4j2 configuration (default one is used otherwise)
160
## ref: https://github.com/apache/kafka/blob/trunk/config/log4j2.yaml
161
##
162
log4j2: ""
163
## @param existingLog4j2ConfigMap The name of an existing ConfigMap containing the log4j2.yaml file
164
##
165
existingLog4j2ConfigMap: ""
166
## @param heapOpts Kafka Java Heap configuration
167
##
168
heapOpts: -XX:InitialRAMPercentage=75 -XX:MaxRAMPercentage=75
169
## @param brokerRackAwareness.enabled Enable Kafka Rack Awareness
170
## @param brokerRackAwareness.cloudProvider Cloud provider to use to set Broker Rack Awareness. Allowed values: `aws-az`, `azure`
171
## @param brokerRackAwareness.azureApiVersion Metadata API version to use when brokerRackAwareness.cloudProvider is set to `azure`
172
## ref: https://cwiki.apache.org/confluence/display/KAFKA/KIP-392%3A+Allow+consumers+to+fetch+from+closest+replica
173
##
174
brokerRackAwareness:
175
enabled: false
176
cloudProvider: ""
177
azureApiVersion: "2023-11-15"
178
## @param interBrokerProtocolVersion Override the setting 'inter.broker.protocol.version' during the ZK migration.
179
## Ref. https://docs.confluent.io/platform/current/installation/migrate-zk-kraft.html
180
##
181
interBrokerProtocolVersion: ""
182
## Kafka listeners configuration
183
##
184
listeners:
185
## @param listeners.client.name Name for the Kafka client listener
186
## @param listeners.client.containerPort Port for the Kafka client listener
187
## @param listeners.client.protocol Security protocol for the Kafka client listener. Allowed values are 'PLAINTEXT', 'SASL_PLAINTEXT', 'SASL_SSL' and 'SSL'
188
## @param listeners.client.sslClientAuth Optional. If SASL_SSL is enabled, configure mTLS TLS authentication type. If SSL protocol is enabled, overrides tls.authType for this listener. Allowed values are 'none', 'requested' and 'required'
189
client:
190
containerPort: 9092
191
protocol: SASL_PLAINTEXT
192
name: CLIENT
193
sslClientAuth: ""
194
## @param listeners.controller.name Name for the Kafka controller listener
195
## @param listeners.controller.containerPort Port for the Kafka controller listener
196
## @param listeners.controller.protocol Security protocol for the Kafka controller listener. Allowed values are 'PLAINTEXT', 'SASL_PLAINTEXT', 'SASL_SSL' and 'SSL'
197
## @param listeners.controller.sslClientAuth Optional. If SASL_SSL is enabled, configure mTLS TLS authentication type. If SSL protocol is enabled, overrides tls.authType for this listener. Allowed values are 'none', 'requested' and 'required'
198
## Ref: https://cwiki.apache.org/confluence/display/KAFKA/KIP-684+-+Support+mutual+TLS+authentication+on+SASL_SSL+listeners
199
controller:
200
name: CONTROLLER
201
containerPort: 9093
202
protocol: SASL_PLAINTEXT
203
sslClientAuth: ""
204
## @param listeners.interbroker.name Name for the Kafka inter-broker listener
205
## @param listeners.interbroker.containerPort Port for the Kafka inter-broker listener
206
## @param listeners.interbroker.protocol Security protocol for the Kafka inter-broker listener. Allowed values are 'PLAINTEXT', 'SASL_PLAINTEXT', 'SASL_SSL' and 'SSL'
207
## @param listeners.interbroker.sslClientAuth Optional. If SASL_SSL is enabled, configure mTLS TLS authentication type. If SSL protocol is enabled, overrides tls.authType for this listener. Allowed values are 'none', 'requested' and 'required'
208
interbroker:
209
containerPort: 9094
210
protocol: SASL_PLAINTEXT
211
name: INTERNAL
212
sslClientAuth: ""
213
## @param listeners.external.containerPort Port for the Kafka external listener
214
## @param listeners.external.protocol Security protocol for the Kafka external listener. . Allowed values are 'PLAINTEXT', 'SASL_PLAINTEXT', 'SASL_SSL' and 'SSL'
215
## @param listeners.external.name Name for the Kafka external listener
216
## @param listeners.external.sslClientAuth Optional. If SASL_SSL is enabled, configure mTLS TLS authentication type. If SSL protocol is enabled, overrides tls.sslClientAuth for this listener. Allowed values are 'none', 'requested' and 'required'
217
external:
218
containerPort: 9095
219
protocol: SASL_PLAINTEXT
220
name: EXTERNAL
221
sslClientAuth: ""
222
## @param listeners.extraListeners Array of listener objects to be appended to already existing listeners
223
## E.g.
224
## extraListeners:
225
## - name: CUSTOM
226
## containerPort: 9097
227
## protocol: SASL_PLAINTEXT
228
## sslClientAuth: ""
229
##
230
extraListeners: []
231
## NOTE: If set, below values will override configuration set using the above values (extraListeners.*, controller.*, interbroker.*, client.* and external.*)
232
## @param listeners.overrideListeners Overrides the Kafka 'listeners' configuration setting.
233
## @param listeners.advertisedListeners Overrides the Kafka 'advertised.listener' configuration setting.
234
## @param listeners.securityProtocolMap Overrides the Kafka 'security.protocol.map' configuration setting.
235
overrideListeners: ""
236
advertisedListeners: ""
237
securityProtocolMap: ""
238
## @section Kafka SASL parameters
239
## Kafka SASL settings for authentication, required if SASL_PLAINTEXT or SASL_SSL listeners are configured
240
##
241
sasl:
242
## @param sasl.enabledMechanisms Comma-separated list of allowed SASL mechanisms when SASL listeners are configured. Allowed types: `PLAIN`, `SCRAM-SHA-256`, `SCRAM-SHA-512`, `OAUTHBEARER`
243
## NOTE: At the moment, Kafka Raft mode does not support SCRAM, that is why only PLAIN is configured.
244
##
245
enabledMechanisms: PLAIN,SCRAM-SHA-256,SCRAM-SHA-512
246
## @param sasl.interBrokerMechanism SASL mechanism for inter broker communication.
247
##
248
interBrokerMechanism: PLAIN
249
## @param sasl.controllerMechanism SASL mechanism for controller communications.
250
##
251
controllerMechanism: PLAIN
252
## Settings for OAuthBearer mechanism
253
## @param sasl.oauthbearer.tokenEndpointUrl The URL for the OAuth/OIDC identity provider
254
## @param sasl.oauthbearer.jwksEndpointUrl The OAuth/OIDC provider URL from which the provider's JWKS (JSON Web Key Set) can be retrieved
255
## @param sasl.oauthbearer.expectedAudience The comma-delimited setting for the broker to use to verify that the JWT was issued for one of the expected audiences
256
## @param sasl.oauthbearer.subClaimName The OAuth claim name for the subject.
257
##
258
oauthbearer:
259
tokenEndpointUrl: ""
260
jwksEndpointUrl: ""
261
expectedAudience: ""
262
subClaimName: "sub"
263
## Credentials for inter-broker communications.
264
## @param sasl.interbroker.user Username for inter-broker communications when SASL is enabled
265
## @param sasl.interbroker.password Password for inter-broker communications when SASL is enabled. If not set and SASL is enabled for the controller listener, a random password will be generated.
266
## @param sasl.interbroker.clientId Client ID for inter-broker communications when SASL is enabled with mechanism OAUTHBEARER
267
## @param sasl.interbroker.clientSecret Client Secret for inter-broker communications when SASL is enabled with mechanism OAUTHBEARER. If not set and SASL is enabled for the controller listener, a random secret will be generated.
268
##
269
interbroker:
270
user: inter_broker_user
271
password: ""
272
clientId: inter_broker_client
273
clientSecret: ""
274
## Credentials for controller communications.
275
## @param sasl.controller.user Username for controller communications when SASL is enabled
276
## @param sasl.controller.password Password for controller communications when SASL is enabled. If not set and SASL is enabled for the inter-broker listener, a random password will be generated.
277
## @param sasl.controller.clientId Client ID for controller communications when SASL is enabled with mechanism OAUTHBEARER
278
## @param sasl.controller.clientSecret Client Secret for controller communications when SASL is enabled with mechanism OAUTHBEARER. If not set and SASL is enabled for the inter-broker listener, a random secret will be generated.
279
##
280
controller:
281
user: controller_user
282
password: ""
283
clientId: controller_broker_client
284
clientSecret: ""
285
## Credentials for client communications.
286
## @param sasl.client.users Comma-separated list of usernames for client communications when SASL is enabled
287
## @param sasl.client.passwords Comma-separated list of passwords for client communications when SASL is enabled, must match the number of client.users
288
##
289
client:
290
users:
291
- user1
292
passwords: ""
293
## @param sasl.existingSecret Name of the existing secret containing credentials for client.users, interbroker.user and controller.user
294
## Create this secret running the command below where SECRET_NAME is the name of the secret you want to create:
295
## kubectl create secret generic SECRET_NAME --from-literal=client-passwords=CLIENT_PASSWORD1,CLIENT_PASSWORD2 --from-literal=inter-broker-password=INTER_BROKER_PASSWORD --from-literal=inter-broker-client-secret=INTER_BROKER_CLIENT_SECRET --from-literal=controller-password=CONTROLLER_PASSWORD --from-literal=controller-client-secret=CONTROLLER_CLIENT_SECRET
296
## The client secrets are only required when using OAuthBearer as SASL mechanism.
297
## Client, inter-broker and controller passwords are only required if the SASL mechanism includes something other than OAuthBearer.
298
##
299
existingSecret: ""
300
## @section Kafka TLS parameters
301
## Kafka TLS settings, required if SSL or SASL_SSL listeners are configured
302
##
303
tls:
304
## @param tls.type Format to use for TLS certificates. Allowed types: `JKS` and `PEM`
305
##
306
type: JKS
307
## @param tls.pemChainIncluded Flag to denote that the Certificate Authority (CA) certificates are bundled with the endpoint cert.
308
## Certificates must be in proper order, where the top certificate is the leaf and the bottom certificate is the top-most intermediate CA.
309
##
310
pemChainIncluded: false
311
## @param tls.autoGenerated.enabled Enable automatic generation of TLS certificates (only supported if `tls.type` is `PEM`)
312
## @param tls.autoGenerated.engine Mechanism to generate the certificates (allowed values: helm, cert-manager)
313
## @param tls.autoGenerated.customAltNames List of additional subject alternative names (SANs) for the automatically generated TLS certificates.
314
## @param tls.autoGenerated.certManager.existingIssuer The name of an existing Issuer to use for generating the certificates (only for `cert-manager` engine)
315
## @param tls.autoGenerated.certManager.existingIssuerKind Existing Issuer kind, defaults to Issuer (only for `cert-manager` engine)
316
## @param tls.autoGenerated.certManager.keyAlgorithm Key algorithm for the certificates (only for `cert-manager` engine)
317
## @param tls.autoGenerated.certManager.keySize Key size for the certificates (only for `cert-manager` engine)
318
## @param tls.autoGenerated.certManager.duration Duration for the certificates (only for `cert-manager` engine)
319
## @param tls.autoGenerated.certManager.renewBefore Renewal period for the certificates (only for `cert-manager` engine)
320
##
321
autoGenerated:
322
enabled: true
323
engine: helm
324
customAltNames: []
325
certManager:
326
existingIssuer: ""
327
existingIssuerKind: ""
328
keySize: 2048
329
keyAlgorithm: RSA
330
duration: 2160h
331
renewBefore: 360h
332
## @param tls.existingSecret Name of the existing secret containing the TLS certificates for the Kafka nodes.
333
## When using 'jks' format for certificates, each secret should contain a truststore and a keystore.
334
## Create these secrets following the steps below:
335
## 1) Generate your truststore and keystore files. Helpful script: https://raw.githubusercontent.com/confluentinc/confluent-platform-security-tools/master/kafka-generate-ssl.sh
336
## 2) Rename your truststore to `kafka.truststore.jks`.
337
## 3) Rename your keystores to `kafka-<role>-X.keystore.jks` where X is the replica number of the .
338
## 4) Run the command below one time per broker to create its associated secret (SECRET_NAME_X is the name of the secret you want to create):
339
## kubectl create secret generic SECRET_NAME_0 --from-file=kafka.truststore.jks=./kafka.truststore.jks \
340
## --from-file=kafka-controller-0.keystore.jks=./kafka-controller-0.keystore.jks --from-file=kafka-broker-0.keystore.jks=./kafka-broker-0.keystore.jks ...
341
##
342
## NOTE: Alternatively, a single keystore can be provided for all nodes under the key 'kafka.keystore.jks', this keystore will be used by all nodes unless overridden by the 'kafka-<role>-X.keystore.jks' file
343
##
344
## When using 'pem' format for certificates, each secret should contain a public CA certificate, a public certificate and one private key.
345
## Create these secrets following the steps below:
346
## 1) Create a certificate key and signing request per Kafka broker, and sign the signing request with your CA
347
## 2) Rename your CA file to `ca.crt`.
348
## 3) Rename your certificates to `kafka-X.tls.crt` where X is the ID of each Kafka broker.
349
## 3) Rename your keys to `kafka-X.tls.key` where X is the ID of each Kafka broker.
350
## 4) Run the command below one time per broker to create its associated secret (SECRET_NAME_X is the name of the secret you want to create):
351
## kubectl create secret generic SECRET_NAME_0 --from-file=ca.crt=./ca.crt --from-file=kafka-controller-0.crt=./kafka-controller-0.crt --from-file=kafka-controller-0.key=./kafka-controller-0.key \
352
## --from-file=kafka-broker-0.crt=./kafka-broker-0.crt --from-file=kafka-broker-0.key=./kafka-broker-0.key ...
353
##
354
## NOTE: Alternatively, a single key and certificate can be provided for all nodes under the keys 'tls.crt' and 'tls.key'. These certificates will be used by all nodes unless overridden by the 'kafka-<role>-X.key' and 'kafka-<role>-X.crt' files
355
##
356
existingSecret: ""
357
## @param tls.passwordsSecret Name of the secret containing the password to access the JKS files or PEM key when they are password-protected. (`key`: `password`)
358
##
359
passwordsSecret: ""
360
## @param tls.passwordsSecretKeystoreKey The secret key from the tls.passwordsSecret containing the password for the Keystore.
361
##
362
passwordsSecretKeystoreKey: keystore-password
363
## @param tls.passwordsSecretTruststoreKey The secret key from the tls.passwordsSecret containing the password for the Truststore.
364
##
365
passwordsSecretTruststoreKey: truststore-password
366
## @param tls.passwordsSecretPemPasswordKey The secret key from the tls.passwordsSecret containing the password for the PEM key inside 'tls.passwordsSecret'.
367
##
368
passwordsSecretPemPasswordKey: ""
369
## @param tls.keystorePassword Password to access the JKS keystore when it is password-protected. Ignored when 'tls.passwordsSecret' is provided.
370
## When using tls.type=PEM, the generated keystore will use this password or randomly generate one.
371
##
372
keystorePassword: ""
373
## @param tls.truststorePassword Password to access the JKS truststore when it is password-protected. Ignored when 'tls.passwordsSecret' is provided.
374
## When using tls.type=PEM, the generated keystore will use this password or randomly generate one.
375
##
376
truststorePassword: ""
377
## @param tls.keyPassword Password to access the PEM key when it is password-protected.
378
## Note: ignored when using 'tls.passwordsSecret'
379
##
380
keyPassword: ""
381
## @param tls.jksKeystoreKey The secret key from the `tls.existingSecret` containing the keystore
382
## Note: ignored when using 'pem' format for certificates.
383
##
384
jksKeystoreKey: ""
385
## @param tls.jksTruststoreSecret Name of the existing secret containing your truststore if truststore not existing or different from the one in the `tls.existingSecret`
386
## Note: ignored when using 'pem' format for certificates.
387
##
388
jksTruststoreSecret: ""
389
## @param tls.jksTruststoreKey The secret key from the `tls.existingSecret` or `tls.jksTruststoreSecret` containing the truststore
390
## Note: ignored when using 'pem' format for certificates.
391
##
392
jksTruststoreKey: ""
393
## @param tls.endpointIdentificationAlgorithm The endpoint identification algorithm to validate server hostname using server certificate
394
## Disable server host name verification by setting it to an empty string.
395
## ref: https://docs.confluent.io/current/kafka/authentication_ssl.html#optional-settings
396
##
397
endpointIdentificationAlgorithm: https
398
## @param tls.sslClientAuth Sets the default value for the ssl.client.auth Kafka setting.
399
## ref: https://docs.confluent.io/current/kafka/authentication_ssl.html#optional-settings
400
##
401
sslClientAuth: "required"
402
## @param extraEnvVars Extra environment variables to add to Kafka pods
403
## e.g:
404
## extraEnvVars:
405
## - name: KAFKA_CFG_BACKGROUND_THREADS
406
## value: "10"
407
##
408
extraEnvVars: []
409
## @param extraEnvVarsCM ConfigMap with extra environment variables
410
##
411
extraEnvVarsCM: ""
412
## @param extraEnvVarsSecret Secret with extra environment variables
413
##
414
extraEnvVarsSecret: ""
415
## @param extraVolumes Optionally specify extra list of additional volumes for the Kafka pod(s)
416
## e.g:
417
## extraVolumes:
418
## - name: kafka-jaas
419
## secret:
420
## secretName: kafka-jaas
421
##
422
extraVolumes: []
423
## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Kafka container(s)
424
## extraVolumeMounts:
425
## - name: kafka-jaas
426
## mountPath: /iamguarded/kafka/config/kafka_jaas.conf
427
## subPath: kafka_jaas.conf
428
##
429
extraVolumeMounts: []
430
## @param sidecars Add additional sidecar containers to the Kafka pod(s)
431
## e.g:
432
## sidecars:
433
## - name: your-image-name
434
## image: your-image
435
## imagePullPolicy: Always
436
## ports:
437
## - name: portname
438
## containerPort: 1234
439
##
440
sidecars: []
441
## @param initContainers Add additional Add init containers to the Kafka pod(s)
442
## e.g:
443
## initContainers:
444
## - name: your-image-name
445
## image: your-image
446
## imagePullPolicy: Always
447
## ports:
448
## - name: portname
449
## containerPort: 1234
450
##
451
initContainers: []
452
## DNS-Pod services
453
## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
454
## @param dnsPolicy Specifies the DNS policy for the Kafka pods
455
## DNS policies can be set on a per-Pod basis. Currently Kubernetes supports the following Pod-specific DNS policies.
456
## Available options: Default, ClusterFirst, ClusterFirstWithHostNet, None
457
## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
458
dnsPolicy: ""
459
## @param dnsConfig allows users more control on the DNS settings for a Pod. Required if `dnsPolicy` is set to `None`
460
## The dnsConfig field is optional and it can work with any dnsPolicy settings.
461
## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config
462
## E.g.
463
## dnsConfig:
464
## nameservers:
465
## - 192.0.2.1 # this is an example
466
## searches:
467
## - ns1.svc.cluster-domain.example
468
## - my.dns.search.suffix
469
## options:
470
## - name: ndots
471
## value: "2"
472
## - name: edns0
473
dnsConfig: {}
474
## Default init Containers
475
##
476
defaultInitContainers:
477
## 'volume-permissions' init container
478
## Used to change the owner and group of the persistent volume(s) mountpoint(s) to 'runAsUser:fsGroup' on each node
479
##
480
volumePermissions:
481
## @param defaultInitContainers.volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume
482
##
483
enabled: false
484
## @param defaultInitContainers.volumePermissions.image.registry [default: REGISTRY_NAME] "volume-permissions" init-containers' image registry
485
## @param defaultInitContainers.volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] "volume-permissions" init-containers' image repository
486
## @skip defaultInitContainers.volumePermissions.image.tag "volume-permissions" init-containers' image tag (immutable tags are recommended)
487
## @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
488
## @param defaultInitContainers.volumePermissions.image.pullPolicy "volume-permissions" init-containers' image pull policy
489
## @param defaultInitContainers.volumePermissions.image.pullSecrets "volume-permissions" init-containers' image pull secrets
490
##
491
image:
492
registry: cgr.dev
493
repository: chainguard-private/os-shell-iamguarded
494
tag: 1.0.0
495
digest: ""
496
pullPolicy: IfNotPresent
497
## Optionally specify an array of imagePullSecrets.
498
## Secrets must be manually created in the namespace.
499
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
500
## Example:
501
## pullSecrets:
502
## - myRegistryKeySecretName
503
##
504
pullSecrets: []
505
## Configure "volume-permissions" init-container Security Context
506
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
507
## @param defaultInitContainers.volumePermissions.containerSecurityContext.enabled Enabled "volume-permissions" init-containers' Security Context
508
## @param defaultInitContainers.volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in "volume-permissions" init-containers
509
## @param defaultInitContainers.volumePermissions.containerSecurityContext.runAsUser Set runAsUser in "volume-permissions" init-containers' Security Context
510
## @param defaultInitContainers.volumePermissions.containerSecurityContext.privileged Set privileged in "volume-permissions" init-containers' Security Context
511
## @param defaultInitContainers.volumePermissions.containerSecurityContext.allowPrivilegeEscalation Set allowPrivilegeEscalation in "volume-permissions" init-containers' Security Context
512
## @param defaultInitContainers.volumePermissions.containerSecurityContext.capabilities.add List of capabilities to be added in "volume-permissions" init-containers
513
## @param defaultInitContainers.volumePermissions.containerSecurityContext.capabilities.drop List of capabilities to be dropped in "volume-permissions" init-containers
514
## @param defaultInitContainers.volumePermissions.containerSecurityContext.seccompProfile.type Set seccomp profile in "volume-permissions" init-containers
515
##
516
containerSecurityContext:
517
enabled: true
518
seLinuxOptions: {}
519
runAsUser: 0
520
privileged: false
521
allowPrivilegeEscalation: false
522
capabilities:
523
add: []
524
drop: ["ALL"]
525
seccompProfile:
526
type: "RuntimeDefault"
527
## Kafka "volume-permissions" init container resource requests and limits
528
## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
529
## @param defaultInitContainers.volumePermissions.resourcesPreset Set Kafka "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).
530
##
531
resourcesPreset: "nano"
532
## @param defaultInitContainers.volumePermissions.resources Set Kafka "volume-permissions" init container requests and limits for different resources like CPU or memory (essential for production workloads)
533
## E.g:
534
## resources:
535
## requests:
536
## cpu: 2
537
## memory: 512Mi
538
## limits:
539
## cpu: 3
540
## memory: 1024Mi
541
##
542
resources: {}
543
## Kafka "prepare-config" init container
544
## Used to prepare the Kafka configuration files for main containers to use them
545
##
546
prepareConfig:
547
## Configure "prepare-config" init-container Security Context
548
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
549
## @param defaultInitContainers.prepareConfig.containerSecurityContext.enabled Enabled "prepare-config" init-containers' Security Context
550
## @param defaultInitContainers.prepareConfig.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in "prepare-config" init-containers
551
## @param defaultInitContainers.prepareConfig.containerSecurityContext.runAsUser Set runAsUser in "prepare-config" init-containers' Security Context
552
## @param defaultInitContainers.prepareConfig.containerSecurityContext.runAsGroup Set runAsUser in "prepare-config" init-containers' Security Context
553
## @param defaultInitContainers.prepareConfig.containerSecurityContext.runAsNonRoot Set runAsNonRoot in "prepare-config" init-containers' Security Context
554
## @param defaultInitContainers.prepareConfig.containerSecurityContext.readOnlyRootFilesystem Set readOnlyRootFilesystem in "prepare-config" init-containers' Security Context
555
## @param defaultInitContainers.prepareConfig.containerSecurityContext.privileged Set privileged in "prepare-config" init-containers' Security Context
556
## @param defaultInitContainers.prepareConfig.containerSecurityContext.allowPrivilegeEscalation Set allowPrivilegeEscalation in "prepare-config" init-containers' Security Context
557
## @param defaultInitContainers.prepareConfig.containerSecurityContext.capabilities.add List of capabilities to be added in "prepare-config" init-containers
558
## @param defaultInitContainers.prepareConfig.containerSecurityContext.capabilities.drop List of capabilities to be dropped in "prepare-config" init-containers
559
## @param defaultInitContainers.prepareConfig.containerSecurityContext.seccompProfile.type Set seccomp profile in "prepare-config" init-containers
560
##
561
containerSecurityContext:
562
enabled: true
563
seLinuxOptions: {}
564
runAsUser: 1001
565
runAsGroup: 1001
566
runAsNonRoot: true
567
readOnlyRootFilesystem: true
568
privileged: false
569
allowPrivilegeEscalation: false
570
capabilities:
571
add: []
572
drop: ["ALL"]
573
seccompProfile:
574
type: "RuntimeDefault"
575
## Kafka "prepare-config" init container resource requests and limits
576
## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
577
## @param defaultInitContainers.prepareConfig.resourcesPreset Set Kafka "prepare-config" init container resources according to one common preset (allowed values: none, nano, small, medium, large, xlarge, 2xlarge). This is ignored if defaultInitContainers.prepareConfig.resources is set (defaultInitContainers.prepareConfig.resources is recommended for production).
578
##
579
resourcesPreset: "nano"
580
## @param defaultInitContainers.prepareConfig.resources Set Kafka "prepare-config" init container requests and limits for different resources like CPU or memory (essential for production workloads)
581
## E.g:
582
## resources:
583
## requests:
584
## cpu: 2
585
## memory: 512Mi
586
## limits:
587
## cpu: 3
588
## memory: 1024Mi
589
##
590
resources: {}
591
## @param defaultInitContainers.prepareConfig.extraInit Additional content for the "prepare-config" init script, rendered as a template.
592
##
593
extraInit: ""
594
## 'auto-discovery' init container
595
## Used to auto-detect LB IPs or node ports by querying the K8s API
596
## Note: RBAC might be required
597
##
598
autoDiscovery:
599
## @param defaultInitContainers.autoDiscovery.enabled Enable init container that auto-detects external IPs/ports by querying the K8s API
600
##
601
enabled: false
602
## Iamguarded Kubectl image
603
## @param defaultInitContainers.autoDiscovery.image.registry [default: REGISTRY_NAME] "auto-discovery" init-containers' image registry
604
## @param defaultInitContainers.autoDiscovery.image.repository [default: REPOSITORY_NAME/os-shell] "auto-discovery" init-containers' image repository
605
## @skip defaultInitContainers.autoDiscovery.image.tag "auto-discovery" init-containers' image tag (immutable tags are recommended)
606
## @param defaultInitContainers.autoDiscovery.image.digest "auto-discovery" init-containers' image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
607
## @param defaultInitContainers.autoDiscovery.image.pullPolicy "auto-discovery" init-containers' image pull policy
608
## @param defaultInitContainers.autoDiscovery.image.pullSecrets "auto-discovery" init-containers' image pull secrets
609
##
610
image:
611
registry: cgr.dev
612
repository: chainguard-private/kubectl-iamguarded
613
tag: 1.37.3
614
digest: ""
615
## Specify a imagePullPolicy
616
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
617
##
618
pullPolicy: IfNotPresent
619
## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
620
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
621
## e.g:
622
## pullSecrets:
623
## - myRegistryKeySecretName
624
##
625
pullSecrets: []
626
## Configure "auto-discovery" init-container Security Context
627
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
628
## @param defaultInitContainers.autoDiscovery.containerSecurityContext.enabled Enabled "auto-discovery" init-containers' Security Context
629
## @param defaultInitContainers.autoDiscovery.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in "auto-discovery" init-containers
630
## @param defaultInitContainers.autoDiscovery.containerSecurityContext.runAsUser Set runAsUser in "auto-discovery" init-containers' Security Context
631
## @param defaultInitContainers.autoDiscovery.containerSecurityContext.runAsGroup Set runAsUser in "auto-discovery" init-containers' Security Context
632
## @param defaultInitContainers.autoDiscovery.containerSecurityContext.runAsNonRoot Set runAsNonRoot in "auto-discovery" init-containers' Security Context
633
## @param defaultInitContainers.autoDiscovery.containerSecurityContext.readOnlyRootFilesystem Set readOnlyRootFilesystem in "auto-discovery" init-containers' Security Context
634
## @param defaultInitContainers.autoDiscovery.containerSecurityContext.privileged Set privileged in "auto-discovery" init-containers' Security Context
635
## @param defaultInitContainers.autoDiscovery.containerSecurityContext.allowPrivilegeEscalation Set allowPrivilegeEscalation in "auto-discovery" init-containers' Security Context
636
## @param defaultInitContainers.autoDiscovery.containerSecurityContext.capabilities.add List of capabilities to be added in "auto-discovery" init-containers
637
## @param defaultInitContainers.autoDiscovery.containerSecurityContext.capabilities.drop List of capabilities to be dropped in "auto-discovery" init-containers
638
## @param defaultInitContainers.autoDiscovery.containerSecurityContext.seccompProfile.type Set seccomp profile in "auto-discovery" init-containers
639
##
640
containerSecurityContext:
641
enabled: true
642
seLinuxOptions: {}
643
runAsUser: 1001
644
runAsGroup: 1001
645
runAsNonRoot: true
646
readOnlyRootFilesystem: true
647
privileged: false
648
allowPrivilegeEscalation: false
649
capabilities:
650
add: []
651
drop: ["ALL"]
652
seccompProfile:
653
type: "RuntimeDefault"
654
## Kafka "auto-discovery" init container resource requests and limits
655
## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
656
## @param defaultInitContainers.autoDiscovery.resourcesPreset Set Kafka "auto-discovery" init container resources according to one common preset (allowed values: none, nano, small, medium, large, xlarge, 2xlarge). This is ignored if defaultInitContainers.autoDiscovery.resources is set (defaultInitContainers.autoDiscovery.resources is recommended for production).
657
##
658
resourcesPreset: "nano"
659
## @param defaultInitContainers.autoDiscovery.resources Set Kafka "auto-discovery" init container requests and limits for different resources like CPU or memory (essential for production workloads)
660
## E.g:
661
## resources:
662
## requests:
663
## cpu: 2
664
## memory: 512Mi
665
## limits:
666
## cpu: 3
667
## memory: 1024Mi
668
##
669
resources: {}
670
## @section Controller-eligible statefulset parameters
671
##
672
controller:
673
## @param controller.replicaCount Number of Kafka controller-eligible nodes
674
##
675
replicaCount: 3
676
## @param controller.controllerOnly If set to true, controller nodes will be deployed as dedicated controllers, instead of controller+broker processes.
677
##
678
controllerOnly: false
679
## @param controller.quorumBootstrapServers Override the Kafka controller quorum bootstrap servers of the Kafka Kraft cluster. If not set, it will be automatically configured to use all controller-eligible nodes.
680
##
681
quorumBootstrapServers: ""
682
## @param controller.minId Minimal node.id values for controller-eligible nodes. Do not change after first initialization.
683
## Broker-only id increment their ID starting at this minimal value.
684
## We recommend setting this this value high enough, as IDs under this value will be used by controller-elegible nodes
685
##
686
minId: 0
687
## @param controller.config Specify content for Kafka configuration for Kafka controller-eligible nodes (auto-generated based on other parameters otherwise)
688
## NOTE: This will override the configuration based on values, please act carefully
689
## Use simple key-value YAML format, then it's transformed to properties format by the chart. e.g:
690
## process.roles: controller
691
## ... will be transformed to:
692
## process.roles=controller
693
##
694
config: {}
695
## @param controller.overrideConfiguration Kafka configuration override for Kafka controller-eligible nodes. Values defined here takes precedence over the ones defined at `controller.config`
696
##
697
overrideConfiguration: {}
698
## @param controller.existingConfigmap Name of an existing ConfigMap with the Kafka configuration for Kafka controller-eligible nodes
699
##
700
existingConfigmap: ""
701
## @param controller.secretConfig Additional configuration to be appended at the end of the generated Kafka configuration for Kafka controller-eligible nodes (store in a secret)
702
##
703
secretConfig: ""
704
## @param controller.existingSecretConfig Secret with additional configuration that will be appended to the end of the generated Kafka configuration for Kafka controller-eligible nodes
705
## The key for the configuration should be: server-secret.properties
706
## NOTE: This will override secretConfig value
707
##
708
existingSecretConfig: ""
709
## @param controller.heapOpts Kafka Java Heap configuration for controller-eligible nodes
710
##
711
heapOpts: -XX:InitialRAMPercentage=75 -XX:MaxRAMPercentage=75
712
## @param controller.command Override Kafka container command
713
##
714
command: []
715
## @param controller.args Override Kafka container arguments
716
##
717
args: []
718
## @param controller.extraEnvVars Extra environment variables to add to Kafka pods
719
## e.g:
720
## extraEnvVars:
721
## - name: KAFKA_CFG_BACKGROUND_THREADS
722
## value: "10"
723
##
724
extraEnvVars: []
725
## @param controller.extraEnvVarsCM ConfigMap with extra environment variables
726
##
727
extraEnvVarsCM: ""
728
## @param controller.extraEnvVarsSecret Secret with extra environment variables
729
##
730
extraEnvVarsSecret: ""
731
## @param controller.extraContainerPorts Kafka controller-eligible extra containerPorts.
732
##
733
extraContainerPorts: []
734
## Configure extra options for Kafka containers' liveness, readiness and startup probes
735
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
736
## @param controller.livenessProbe.enabled Enable livenessProbe on Kafka containers
737
## @param controller.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
738
## @param controller.livenessProbe.periodSeconds Period seconds for livenessProbe
739
## @param controller.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
740
## @param controller.livenessProbe.failureThreshold Failure threshold for livenessProbe
741
## @param controller.livenessProbe.successThreshold Success threshold for livenessProbe
742
##
743
livenessProbe:
744
enabled: true
745
initialDelaySeconds: 10
746
timeoutSeconds: 5
747
failureThreshold: 3
748
periodSeconds: 10
749
successThreshold: 1
750
## @param controller.readinessProbe.enabled Enable readinessProbe on Kafka containers
751
## @param controller.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
752
## @param controller.readinessProbe.periodSeconds Period seconds for readinessProbe
753
## @param controller.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
754
## @param controller.readinessProbe.failureThreshold Failure threshold for readinessProbe
755
## @param controller.readinessProbe.successThreshold Success threshold for readinessProbe
756
##
757
readinessProbe:
758
enabled: true
759
initialDelaySeconds: 5
760
failureThreshold: 6
761
timeoutSeconds: 5
762
periodSeconds: 10
763
successThreshold: 1
764
## @param controller.startupProbe.enabled Enable startupProbe on Kafka containers
765
## @param controller.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
766
## @param controller.startupProbe.periodSeconds Period seconds for startupProbe
767
## @param controller.startupProbe.timeoutSeconds Timeout seconds for startupProbe
768
## @param controller.startupProbe.failureThreshold Failure threshold for startupProbe
769
## @param controller.startupProbe.successThreshold Success threshold for startupProbe
770
##
771
startupProbe:
772
enabled: false
773
initialDelaySeconds: 30
774
periodSeconds: 10
775
timeoutSeconds: 1
776
failureThreshold: 15
777
successThreshold: 1
778
## @param controller.customLivenessProbe Custom livenessProbe that overrides the default one
779
##
780
customLivenessProbe: {}
781
## @param controller.customReadinessProbe Custom readinessProbe that overrides the default one
782
##
783
customReadinessProbe: {}
784
## @param controller.customStartupProbe Custom startupProbe that overrides the default one
785
##
786
customStartupProbe: {}
787
## @param controller.lifecycleHooks lifecycleHooks for the Kafka container to automate configuration before or after startup
788
##
789
lifecycleHooks: {}
790
## Kafka resource requests and limits
791
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
792
## @param controller.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if controller.resources is set (controller.resources is recommended for production).
793
##
794
resourcesPreset: "small"
795
## @param controller.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
796
## Example:
797
## resources:
798
## requests:
799
## cpu: 2
800
## memory: 512Mi
801
## limits:
802
## cpu: 3
803
## memory: 1024Mi
804
##
805
resources: {}
806
## Kafka pods' Security Context
807
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
808
## @param controller.podSecurityContext.enabled Enable security context for the pods
809
## @param controller.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
810
## @param controller.podSecurityContext.sysctls Set kernel settings using the sysctl interface
811
## @param controller.podSecurityContext.supplementalGroups Set filesystem extra groups
812
## @param controller.podSecurityContext.fsGroup Set Kafka pod's Security Context fsGroup
813
## @param controller.podSecurityContext.seccompProfile.type Set Kafka pods's Security Context seccomp profile
814
##
815
podSecurityContext:
816
enabled: true
817
fsGroupChangePolicy: Always
818
sysctls: []
819
supplementalGroups: []
820
fsGroup: 1001
821
seccompProfile:
822
type: "RuntimeDefault"
823
## Kafka containers' Security Context
824
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
825
## @param controller.containerSecurityContext.enabled Enable Kafka containers' Security Context
826
## @param controller.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
827
## @param controller.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
828
## @param controller.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
829
## @param controller.containerSecurityContext.runAsGroup Set Kafka containers' Security Context runAsGroup
830
## @param controller.containerSecurityContext.runAsNonRoot Set Kafka containers' Security Context runAsNonRoot
831
## @param controller.containerSecurityContext.allowPrivilegeEscalation Force the child process to be run as non-privileged
832
## @param controller.containerSecurityContext.readOnlyRootFilesystem Allows the pod to mount the RootFS as ReadOnly only
833
## @param controller.containerSecurityContext.capabilities.drop Set Kafka containers' server Security Context capabilities to be dropped
834
## e.g:
835
## containerSecurityContext:
836
## enabled: true
837
## capabilities:
838
## drop: ["NET_RAW"]
839
## readOnlyRootFilesystem: true
840
##
841
containerSecurityContext:
842
enabled: true
843
seLinuxOptions: {}
844
runAsUser: 1001
845
runAsGroup: 1001
846
runAsNonRoot: true
847
allowPrivilegeEscalation: false
848
readOnlyRootFilesystem: true
849
capabilities:
850
drop: ["ALL"]
851
## @param controller.automountServiceAccountToken Mount Service Account token in pod
852
##
853
automountServiceAccountToken: false
854
## @param controller.hostAliases Kafka pods host aliases
855
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
856
##
857
hostAliases: []
858
## @param controller.hostNetwork Specify if host network should be enabled for Kafka pods
859
##
860
hostNetwork: false
861
## @param controller.hostIPC Specify if host IPC should be enabled for Kafka pods
862
##
863
hostIPC: false
864
## @param controller.podLabels Extra labels for Kafka pods
865
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
866
##
867
podLabels: {}
868
## @param controller.podAnnotations Extra annotations for Kafka pods
869
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
870
##
871
podAnnotations: {}
872
## @param controller.topologyKey Override common lib default topology key. If empty - "kubernetes.io/hostname" is used
873
## i.e. topologyKey: topology.kubernetes.io/zone
874
##
875
topologyKey: ""
876
## @param controller.podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
877
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
878
##
879
podAffinityPreset: ""
880
## @param controller.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
881
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
882
##
883
podAntiAffinityPreset: soft
884
## Node affinity preset
885
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
886
##
887
nodeAffinityPreset:
888
## @param controller.nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
889
##
890
type: ""
891
## @param controller.nodeAffinityPreset.key Node label key to match Ignored if `affinity` is set.
892
## E.g.
893
## key: "kubernetes.io/e2e-az-name"
894
##
895
key: ""
896
## @param controller.nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set.
897
## E.g.
898
## values:
899
## - e2e-az1
900
## - e2e-az2
901
##
902
values: []
903
## @param controller.affinity Affinity for pod assignment
904
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
905
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
906
##
907
affinity: {}
908
## @param controller.nodeSelector Node labels for pod assignment
909
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
910
##
911
nodeSelector: {}
912
## @param controller.tolerations Tolerations for pod assignment
913
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
914
##
915
tolerations: []
916
## @param controller.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
917
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
918
##
919
topologySpreadConstraints: []
920
## @param controller.terminationGracePeriodSeconds Seconds the pod needs to gracefully terminate
921
## ref: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#hook-handler-execution
922
##
923
terminationGracePeriodSeconds: ""
924
## @param controller.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
925
## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#pod-management-policy
926
##
927
podManagementPolicy: Parallel
928
## @param controller.minReadySeconds How many seconds a pod needs to be ready before killing the next, during update
929
##
930
minReadySeconds: 0
931
## @param controller.priorityClassName Name of the existing priority class to be used by kafka pods
932
## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
933
##
934
priorityClassName: ""
935
## @param controller.runtimeClassName Name of the runtime class to be used by pod(s)
936
## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
937
##
938
runtimeClassName: ""
939
## @param controller.enableServiceLinks Whether information about services should be injected into pod's environment variable
940
## The environment variables injected by service links are not used, but can lead to slow kafka boot times or slow running of the scripts when there are many services in the current namespace.
941
## If you experience slow pod startups or slow running of the scripts you probably want to set this to `false`.
942
##
943
enableServiceLinks: true
944
## @param controller.schedulerName Name of the k8s scheduler (other than default)
945
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
946
##
947
schedulerName: ""
948
## @param controller.updateStrategy.type Kafka statefulset strategy type
949
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
950
##
951
updateStrategy:
952
type: RollingUpdate
953
## @param controller.extraVolumes Optionally specify extra list of additional volumes for the Kafka pod(s)
954
## e.g:
955
## extraVolumes:
956
## - name: kafka-jaas
957
## secret:
958
## secretName: kafka-jaas
959
##
960
extraVolumes: []
961
## @param controller.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Kafka container(s)
962
## extraVolumeMounts:
963
## - name: kafka-jaas
964
## mountPath: /iamguarded/kafka/config/kafka_jaas.conf
965
## subPath: kafka_jaas.conf
966
##
967
extraVolumeMounts: []
968
## @param controller.sidecars Add additional sidecar containers to the Kafka pod(s)
969
## e.g:
970
## sidecars:
971
## - name: your-image-name
972
## image: your-image
973
## imagePullPolicy: Always
974
## ports:
975
## - name: portname
976
## containerPort: 1234
977
##
978
sidecars: []
979
## @param controller.initContainers Add additional Add init containers to the Kafka pod(s)
980
## e.g:
981
## initContainers:
982
## - name: your-image-name
983
## image: your-image
984
## imagePullPolicy: Always
985
## ports:
986
## - name: portname
987
## containerPort: 1234
988
##
989
initContainers: []
990
## @section Experimental: Kafka Controller Autoscaling configuration
991
## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
992
##
993
autoscaling:
994
vpa:
995
## @param controller.autoscaling.vpa.enabled Enable VPA
996
##
997
enabled: false
998
## @param controller.autoscaling.vpa.annotations Annotations for VPA resource
999
##
1000
annotations: {}
1001
## @param controller.autoscaling.vpa.controlledResources VPA List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory
1002
##
1003
controlledResources: []
1004
## @param controller.autoscaling.vpa.maxAllowed VPA Max allowed resources for the pod
1005
## cpu: 200m
1006
## memory: 100Mi
1007
maxAllowed: {}
1008
## @param controller.autoscaling.vpa.minAllowed VPA Min allowed resources for the pod
1009
## cpu: 200m
1010
## memory: 100Mi
1011
minAllowed: {}
1012
updatePolicy:
1013
## @param controller.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
1014
## Possible values are "Off", "Initial", "Recreate", and "Auto".
1015
##
1016
updateMode: Auto
1017
hpa:
1018
## @param controller.autoscaling.hpa.enabled Enable HPA for Kafka Controller
1019
##
1020
enabled: false
1021
## @param controller.autoscaling.hpa.annotations Annotations for HPA resource
1022
##
1023
annotations: {}
1024
## @param controller.autoscaling.hpa.minReplicas Minimum number of Kafka Controller replicas
1025
##
1026
minReplicas: ""
1027
## @param controller.autoscaling.hpa.maxReplicas Maximum number of Kafka Controller replicas
1028
##
1029
maxReplicas: ""
1030
## @param controller.autoscaling.hpa.targetCPU Target CPU utilization percentage
1031
##
1032
targetCPU: ""
1033
## @param controller.autoscaling.hpa.targetMemory Target Memory utilization percentage
1034
##
1035
targetMemory: ""
1036
## Kafka Pod Disruption Budget
1037
## ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
1038
## @param controller.pdb.create Deploy a pdb object for the Kafka pod
1039
## @param controller.pdb.minAvailable Minimum number/percentage of available Kafka replicas
1040
## @param controller.pdb.maxUnavailable Maximum number/percentage of unavailable Kafka replicas
1041
##
1042
pdb:
1043
create: true
1044
minAvailable: ""
1045
maxUnavailable: ""
1046
## persistentVolumeClaimRetentionPolicy
1047
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1048
## @param controller.persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
1049
## @param controller.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1050
## @param controller.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1051
##
1052
persistentVolumeClaimRetentionPolicy:
1053
enabled: false
1054
whenScaled: Retain
1055
whenDeleted: Retain
1056
## Enable persistence using Persistent Volume Claims
1057
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1058
##
1059
persistence:
1060
## @param controller.persistence.enabled Enable Kafka data persistence using PVC
1061
##
1062
enabled: true
1063
## @param controller.persistence.existingClaim A manually managed Persistent Volume and Claim
1064
## If defined, PVC must be created manually before volume will be bound
1065
## The value is evaluated as a template
1066
##
1067
existingClaim: ""
1068
## @param controller.persistence.storageClass PVC Storage Class for Kafka data volume
1069
## If defined, storageClassName: <storageClass>
1070
## If set to "-", storageClassName: "", which disables dynamic provisioning
1071
## If undefined (the default) or set to null, no storageClassName spec is
1072
## set, choosing the default provisioner.
1073
##
1074
storageClass: ""
1075
## @param controller.persistence.accessModes Persistent Volume Access Modes
1076
##
1077
accessModes:
1078
- ReadWriteOnce
1079
## @param controller.persistence.size PVC Storage Request for Kafka data volume
1080
##
1081
size: 8Gi
1082
## @param controller.persistence.annotations Annotations for the PVC
1083
##
1084
annotations: {}
1085
## @param controller.persistence.labels Labels for the PVC
1086
##
1087
labels: {}
1088
## @param controller.persistence.selector Selector to match an existing Persistent Volume for Kafka data PVC. If set, the PVC can't have a PV dynamically provisioned for it
1089
## selector:
1090
## matchLabels:
1091
## app: my-app
1092
##
1093
selector: {}
1094
## @param controller.persistence.mountPath Mount path of the Kafka data volume
1095
##
1096
mountPath: /iamguarded/kafka
1097
## Log Persistence parameters
1098
##
1099
logPersistence:
1100
## @param controller.logPersistence.enabled Enable Kafka logs persistence using PVC
1101
##
1102
enabled: false
1103
## @param controller.logPersistence.existingClaim A manually managed Persistent Volume and Claim
1104
## If defined, PVC must be created manually before volume will be bound
1105
## The value is evaluated as a template
1106
##
1107
existingClaim: ""
1108
## @param controller.logPersistence.storageClass PVC Storage Class for Kafka logs volume
1109
## If defined, storageClassName: <storageClass>
1110
## If set to "-", storageClassName: "", which disables dynamic provisioning
1111
## If undefined (the default) or set to null, no storageClassName spec is
1112
## set, choosing the default provisioner.
1113
##
1114
storageClass: ""
1115
## @param controller.logPersistence.accessModes Persistent Volume Access Modes
1116
##
1117
accessModes:
1118
- ReadWriteOnce
1119
## @param controller.logPersistence.size PVC Storage Request for Kafka logs volume
1120
##
1121
size: 8Gi
1122
## @param controller.logPersistence.annotations Annotations for the PVC
1123
##
1124
annotations: {}
1125
## @param controller.logPersistence.selector Selector to match an existing Persistent Volume for Kafka log data PVC. If set, the PVC can't have a PV dynamically provisioned for it
1126
## selector:
1127
## matchLabels:
1128
## app: my-app
1129
##
1130
selector: {}
1131
## @param controller.logPersistence.mountPath Mount path of the Kafka logs volume
1132
##
1133
mountPath: /opt/iamguarded/kafka/logs
1134
## @section Broker-only statefulset parameters
1135
##
1136
broker:
1137
## @param broker.replicaCount Number of Kafka broker-only nodes
1138
##
1139
replicaCount: 0
1140
## @param broker.minId Minimal node.id values for broker-only nodes. Do not change after first initialization.
1141
## Broker-only id increment their ID starting at this minimal value.
1142
## We recommend setting this this value high enough, as IDs under this value will be used by controller-eligible nodes
1143
##
1144
##
1145
minId: 100
1146
## @param broker.config Specify content for Kafka configuration for Kafka broker-only nodes (auto-generated based on other parameters otherwise)
1147
## NOTE: This will override the configuration based on values, please act carefully
1148
## Use simple key-value YAML format, then it's transformed to properties format by the chart. e.g:
1149
## process.roles: broker
1150
## ... will be transformed to:
1151
## process.roles=broker
1152
##
1153
config: {}
1154
## @param broker.overrideConfiguration Kafka configuration override for Kafka broker-only nodes. Values defined here takes precedence over the ones defined at `broker.config`
1155
##
1156
overrideConfiguration: {}
1157
## @param broker.existingConfigmap Name of an existing ConfigMap with the Kafka configuration for Kafka broker-only nodes
1158
##
1159
existingConfigmap: ""
1160
## @param broker.secretConfig Additional configuration to be appended at the end of the generated Kafka configuration for Kafka broker-only nodes (store in a secret)
1161
##
1162
secretConfig: ""
1163
## @param broker.existingSecretConfig Secret with additional configuration that will be appended to the end of the generated Kafka configuration for Kafka broker-only nodes
1164
## The key for the configuration should be: server-secret.properties
1165
## NOTE: This will override secretConfig value
1166
##
1167
existingSecretConfig: ""
1168
## @param broker.heapOpts Kafka Java Heap configuration for broker-only nodes
1169
##
1170
heapOpts: -XX:InitialRAMPercentage=75 -XX:MaxRAMPercentage=75
1171
## @param broker.command Override Kafka container command
1172
##
1173
command: []
1174
## @param broker.args Override Kafka container arguments
1175
##
1176
args: []
1177
## @param broker.extraEnvVars Extra environment variables to add to Kafka pods
1178
## e.g:
1179
## extraEnvVars:
1180
## - name: KAFKA_CFG_BACKGROUND_THREADS
1181
## value: "10"
1182
##
1183
extraEnvVars: []
1184
## @param broker.extraEnvVarsCM ConfigMap with extra environment variables
1185
##
1186
extraEnvVarsCM: ""
1187
## @param broker.extraEnvVarsSecret Secret with extra environment variables
1188
##
1189
extraEnvVarsSecret: ""
1190
## @param broker.extraContainerPorts Kafka broker-only extra containerPorts.
1191
##
1192
extraContainerPorts: []
1193
## Configure extra options for Kafka containers' liveness, readiness and startup probes
1194
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1195
## @param broker.livenessProbe.enabled Enable livenessProbe on Kafka containers
1196
## @param broker.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1197
## @param broker.livenessProbe.periodSeconds Period seconds for livenessProbe
1198
## @param broker.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1199
## @param broker.livenessProbe.failureThreshold Failure threshold for livenessProbe
1200
## @param broker.livenessProbe.successThreshold Success threshold for livenessProbe
1201
##
1202
livenessProbe:
1203
enabled: true
1204
initialDelaySeconds: 10
1205
timeoutSeconds: 5
1206
failureThreshold: 3
1207
periodSeconds: 10
1208
successThreshold: 1
1209
## @param broker.readinessProbe.enabled Enable readinessProbe on Kafka containers
1210
## @param broker.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1211
## @param broker.readinessProbe.periodSeconds Period seconds for readinessProbe
1212
## @param broker.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1213
## @param broker.readinessProbe.failureThreshold Failure threshold for readinessProbe
1214
## @param broker.readinessProbe.successThreshold Success threshold for readinessProbe
1215
##
1216
readinessProbe:
1217
enabled: true
1218
initialDelaySeconds: 5
1219
failureThreshold: 6
1220
timeoutSeconds: 5
1221
periodSeconds: 10
1222
successThreshold: 1
1223
## @param broker.startupProbe.enabled Enable startupProbe on Kafka containers
1224
## @param broker.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1225
## @param broker.startupProbe.periodSeconds Period seconds for startupProbe
1226
## @param broker.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1227
## @param broker.startupProbe.failureThreshold Failure threshold for startupProbe
1228
## @param broker.startupProbe.successThreshold Success threshold for startupProbe
1229
##
1230
startupProbe:
1231
enabled: false
1232
initialDelaySeconds: 30
1233
periodSeconds: 10
1234
timeoutSeconds: 1
1235
failureThreshold: 15
1236
successThreshold: 1
1237
## @param broker.customLivenessProbe Custom livenessProbe that overrides the default one
1238
##
1239
customLivenessProbe: {}
1240
## @param broker.customReadinessProbe Custom readinessProbe that overrides the default one
1241
##
1242
customReadinessProbe: {}
1243
## @param broker.customStartupProbe Custom startupProbe that overrides the default one
1244
##
1245
customStartupProbe: {}
1246
## @param broker.lifecycleHooks lifecycleHooks for the Kafka container to automate configuration before or after startup
1247
##
1248
lifecycleHooks: {}
1249
## Kafka resource requests and limits
1250
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1251
## @param broker.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if broker.resources is set (broker.resources is recommended for production).
1252
##
1253
resourcesPreset: "small"
1254
## @param broker.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1255
## Example:
1256
## resources:
1257
## requests:
1258
## cpu: 2
1259
## memory: 512Mi
1260
## limits:
1261
## cpu: 3
1262
## memory: 1024Mi
1263
##
1264
resources: {}
1265
## Kafka pods' Security Context
1266
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1267
## @param broker.podSecurityContext.enabled Enable security context for the pods
1268
## @param broker.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1269
## @param broker.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1270
## @param broker.podSecurityContext.supplementalGroups Set filesystem extra groups
1271
## @param broker.podSecurityContext.fsGroup Set Kafka pod's Security Context fsGroup
1272
## @param broker.podSecurityContext.seccompProfile.type Set Kafka pod's Security Context seccomp profile
1273
##
1274
podSecurityContext:
1275
enabled: true
1276
fsGroupChangePolicy: Always
1277
sysctls: []
1278
supplementalGroups: []
1279
fsGroup: 1001
1280
seccompProfile:
1281
type: "RuntimeDefault"
1282
## Kafka containers' Security Context
1283
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1284
## @param broker.containerSecurityContext.enabled Enable Kafka containers' Security Context
1285
## @param broker.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1286
## @param broker.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1287
## @param broker.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1288
## @param broker.containerSecurityContext.runAsNonRoot Set Kafka containers' Security Context runAsNonRoot
1289
## @param broker.containerSecurityContext.allowPrivilegeEscalation Force the child process to be run as non-privileged
1290
## @param broker.containerSecurityContext.readOnlyRootFilesystem Allows the pod to mount the RootFS as ReadOnly only
1291
## @param broker.containerSecurityContext.capabilities.drop Set Kafka containers' server Security Context capabilities to be dropped
1292
## e.g:
1293
## containerSecurityContext:
1294
## enabled: true
1295
## capabilities:
1296
## drop: ["NET_RAW"]
1297
## readOnlyRootFilesystem: true
1298
##
1299
containerSecurityContext:
1300
enabled: true
1301
seLinuxOptions: {}
1302
runAsUser: 1001
1303
runAsGroup: 1001
1304
runAsNonRoot: true
1305
allowPrivilegeEscalation: false
1306
readOnlyRootFilesystem: true
1307
capabilities:
1308
drop: ["ALL"]
1309
## @param broker.automountServiceAccountToken Mount Service Account token in pod
1310
##
1311
automountServiceAccountToken: false
1312
## @param broker.hostAliases Kafka pods host aliases
1313
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1314
##
1315
hostAliases: []
1316
## @param broker.hostNetwork Specify if host network should be enabled for Kafka pods
1317
##
1318
hostNetwork: false
1319
## @param broker.hostIPC Specify if host IPC should be enabled for Kafka pods
1320
##
1321
hostIPC: false
1322
## @param broker.podLabels Extra labels for Kafka pods
1323
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1324
##
1325
podLabels: {}
1326
## @param broker.podAnnotations Extra annotations for Kafka pods
1327
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1328
##
1329
podAnnotations: {}
1330
## @param broker.topologyKey Override common lib default topology key. If empty - "kubernetes.io/hostname" is used
1331
## i.e. topologyKey: topology.kubernetes.io/zone
1332
##
1333
topologyKey: ""
1334
## @param broker.podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1335
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1336
##
1337
podAffinityPreset: ""
1338
## @param broker.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1339
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1340
##
1341
podAntiAffinityPreset: soft
1342
## Node affinity preset
1343
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1344
##
1345
nodeAffinityPreset:
1346
## @param broker.nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1347
##
1348
type: ""
1349
## @param broker.nodeAffinityPreset.key Node label key to match Ignored if `affinity` is set.
1350
## E.g.
1351
## key: "kubernetes.io/e2e-az-name"
1352
##
1353
key: ""
1354
## @param broker.nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set.
1355
## E.g.
1356
## values:
1357
## - e2e-az1
1358
## - e2e-az2
1359
##
1360
values: []
1361
## @param broker.affinity Affinity for pod assignment
1362
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1363
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
1364
##
1365
affinity: {}
1366
## @param broker.nodeSelector Node labels for pod assignment
1367
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1368
##
1369
nodeSelector: {}
1370
## @param broker.tolerations Tolerations for pod assignment
1371
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1372
##
1373
tolerations: []
1374
## @param broker.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
1375
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
1376
##
1377
topologySpreadConstraints: []
1378
## @param broker.terminationGracePeriodSeconds Seconds the pod needs to gracefully terminate
1379
## ref: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#hook-handler-execution
1380
##
1381
terminationGracePeriodSeconds: ""
1382
## @param broker.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
1383
## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#pod-management-policy
1384
##
1385
podManagementPolicy: Parallel
1386
## @param broker.minReadySeconds How many seconds a pod needs to be ready before killing the next, during update
1387
##
1388
minReadySeconds: 0
1389
## @param broker.priorityClassName Name of the existing priority class to be used by kafka pods
1390
## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
1391
##
1392
priorityClassName: ""
1393
## @param broker.runtimeClassName Name of the runtime class to be used by pod(s)
1394
## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
1395
##
1396
runtimeClassName: ""
1397
## @param broker.enableServiceLinks Whether information about services should be injected into pod's environment variable
1398
## The environment variables injected by service links are not used, but can lead to slow kafka boot times or slow running of the scripts when there are many services in the current namespace.
1399
## If you experience slow pod startups or slow running of the scripts you probably want to set this to `false`.
1400
##
1401
enableServiceLinks: true
1402
## @param broker.schedulerName Name of the k8s scheduler (other than default)
1403
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
1404
##
1405
schedulerName: ""
1406
## @param broker.updateStrategy.type Kafka statefulset strategy type
1407
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
1408
##
1409
updateStrategy:
1410
type: RollingUpdate
1411
## @param broker.extraVolumes Optionally specify extra list of additional volumes for the Kafka pod(s)
1412
## e.g:
1413
## extraVolumes:
1414
## - name: kafka-jaas
1415
## secret:
1416
## secretName: kafka-jaas
1417
##
1418
extraVolumes: []
1419
## @param broker.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Kafka container(s)
1420
## extraVolumeMounts:
1421
## - name: kafka-jaas
1422
## mountPath: /iamguarded/kafka/config/kafka_jaas.conf
1423
## subPath: kafka_jaas.conf
1424
##
1425
extraVolumeMounts: []
1426
## @param broker.sidecars Add additional sidecar containers to the Kafka pod(s)
1427
## e.g:
1428
## sidecars:
1429
## - name: your-image-name
1430
## image: your-image
1431
## imagePullPolicy: Always
1432
## ports:
1433
## - name: portname
1434
## containerPort: 1234
1435
##
1436
sidecars: []
1437
## @param broker.initContainers Add additional Add init containers to the Kafka pod(s)
1438
## e.g:
1439
## initContainers:
1440
## - name: your-image-name
1441
## image: your-image
1442
## imagePullPolicy: Always
1443
## ports:
1444
## - name: portname
1445
## containerPort: 1234
1446
##
1447
initContainers: []
1448
## Kafka Pod Disruption Budget
1449
## ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
1450
## @param broker.pdb.create Deploy a pdb object for the Kafka pod
1451
## @param broker.pdb.minAvailable Maximum number/percentage of unavailable Kafka replicas
1452
## @param broker.pdb.maxUnavailable Maximum number/percentage of unavailable Kafka replicas
1453
##
1454
pdb:
1455
create: true
1456
minAvailable: ""
1457
maxUnavailable: ""
1458
## @section Experimental: Kafka Broker Autoscaling configuration
1459
## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
1460
##
1461
autoscaling:
1462
vpa:
1463
## @param broker.autoscaling.vpa.enabled Enable VPA
1464
##
1465
enabled: false
1466
## @param broker.autoscaling.vpa.annotations Annotations for VPA resource
1467
##
1468
annotations: {}
1469
## @param broker.autoscaling.vpa.controlledResources VPA List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory
1470
##
1471
controlledResources: []
1472
## @param broker.autoscaling.vpa.maxAllowed VPA Max allowed resources for the pod
1473
## cpu: 200m
1474
## memory: 100Mi
1475
maxAllowed: {}
1476
## @param broker.autoscaling.vpa.minAllowed VPA Min allowed resources for the pod
1477
## cpu: 200m
1478
## memory: 100Mi
1479
minAllowed: {}
1480
updatePolicy:
1481
## @param broker.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
1482
## Possible values are "Off", "Initial", "Recreate", and "Auto".
1483
##
1484
updateMode: Auto
1485
hpa:
1486
## @param broker.autoscaling.hpa.enabled Enable HPA for Kafka Broker
1487
##
1488
enabled: false
1489
## @param broker.autoscaling.hpa.annotations Annotations for HPA resource
1490
##
1491
annotations: {}
1492
## @param broker.autoscaling.hpa.minReplicas Minimum number of Kafka Broker replicas
1493
##
1494
minReplicas: ""
1495
## @param broker.autoscaling.hpa.maxReplicas Maximum number of Kafka Broker replicas
1496
##
1497
maxReplicas: ""
1498
## @param broker.autoscaling.hpa.targetCPU Target CPU utilization percentage
1499
##
1500
targetCPU: ""
1501
## @param broker.autoscaling.hpa.targetMemory Target Memory utilization percentage
1502
##
1503
targetMemory: ""
1504
## persistentVolumeClaimRetentionPolicy
1505
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1506
## @param broker.persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
1507
## @param broker.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1508
## @param broker.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1509
##
1510
persistentVolumeClaimRetentionPolicy:
1511
enabled: false
1512
whenScaled: Retain
1513
whenDeleted: Retain
1514
## Enable persistence using Persistent Volume Claims
1515
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1516
##
1517
persistence:
1518
## @param broker.persistence.enabled Enable Kafka data persistence using PVC
1519
##
1520
enabled: true
1521
## @param broker.persistence.existingClaim A manually managed Persistent Volume and Claim
1522
## If defined, PVC must be created manually before volume will be bound
1523
## The value is evaluated as a template
1524
##
1525
existingClaim: ""
1526
## @param broker.persistence.storageClass PVC Storage Class for Kafka data volume
1527
## If defined, storageClassName: <storageClass>
1528
## If set to "-", storageClassName: "", which disables dynamic provisioning
1529
## If undefined (the default) or set to null, no storageClassName spec is
1530
## set, choosing the default provisioner.
1531
##
1532
storageClass: ""
1533
## @param broker.persistence.accessModes Persistent Volume Access Modes
1534
##
1535
accessModes:
1536
- ReadWriteOnce
1537
## @param broker.persistence.size PVC Storage Request for Kafka data volume
1538
##
1539
size: 8Gi
1540
## @param broker.persistence.annotations Annotations for the PVC
1541
##
1542
annotations: {}
1543
## @param broker.persistence.labels Labels for the PVC
1544
##
1545
labels: {}
1546
## @param broker.persistence.selector Selector to match an existing Persistent Volume for Kafka data PVC. If set, the PVC can't have a PV dynamically provisioned for it
1547
## selector:
1548
## matchLabels:
1549
## app: my-app
1550
##
1551
selector: {}
1552
## @param broker.persistence.mountPath Mount path of the Kafka data volume
1553
##
1554
mountPath: /iamguarded/kafka
1555
## Log Persistence parameters
1556
##
1557
logPersistence:
1558
## @param broker.logPersistence.enabled Enable Kafka logs persistence using PVC
1559
##
1560
enabled: false
1561
## @param broker.logPersistence.existingClaim A manually managed Persistent Volume and Claim
1562
## If defined, PVC must be created manually before volume will be bound
1563
## The value is evaluated as a template
1564
##
1565
existingClaim: ""
1566
## @param broker.logPersistence.storageClass PVC Storage Class for Kafka logs volume
1567
## If defined, storageClassName: <storageClass>
1568
## If set to "-", storageClassName: "", which disables dynamic provisioning
1569
## If undefined (the default) or set to null, no storageClassName spec is
1570
## set, choosing the default provisioner.
1571
##
1572
storageClass: ""
1573
## @param broker.logPersistence.accessModes Persistent Volume Access Modes
1574
##
1575
accessModes:
1576
- ReadWriteOnce
1577
## @param broker.logPersistence.size PVC Storage Request for Kafka logs volume
1578
##
1579
size: 8Gi
1580
## @param broker.logPersistence.annotations Annotations for the PVC
1581
##
1582
annotations: {}
1583
## @param broker.logPersistence.selector Selector to match an existing Persistent Volume for Kafka log data PVC. If set, the PVC can't have a PV dynamically provisioned for it
1584
## selector:
1585
## matchLabels:
1586
## app: my-app
1587
##
1588
selector: {}
1589
## @param broker.logPersistence.mountPath Mount path of the Kafka logs volume
1590
##
1591
mountPath: /opt/iamguarded/kafka/logs
1592
## @section Traffic Exposure parameters
1593
##
1594
1595
## Service parameters
1596
##
1597
service:
1598
## @param service.type Kubernetes Service type
1599
##
1600
type: ClusterIP
1601
## @param service.ports.client Kafka svc port for client connections
1602
## @param service.ports.controller Kafka svc port for controller connections
1603
## @param service.ports.interbroker Kafka svc port for inter-broker connections
1604
## @param service.ports.external Kafka svc port for external connections
1605
##
1606
ports:
1607
client: 9092
1608
controller: 9093
1609
interbroker: 9094
1610
external: 9095
1611
## @param service.extraPorts Extra ports to expose in the Kafka service (normally used with the `sidecar` value)
1612
##
1613
extraPorts: []
1614
## @param service.nodePorts.client Node port for the Kafka client connections
1615
## @param service.nodePorts.external Node port for the Kafka external connections
1616
## NOTE: choose port between <30000-32767>
1617
##
1618
nodePorts:
1619
client: ""
1620
external: ""
1621
## @param service.sessionAffinity Control where client requests go, to the same pod or round-robin
1622
## Values: ClientIP or None
1623
## ref: https://kubernetes.io/docs/concepts/services-networking/service/
1624
##
1625
sessionAffinity: None
1626
## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
1627
## sessionAffinityConfig:
1628
## clientIP:
1629
## timeoutSeconds: 300
1630
##
1631
sessionAffinityConfig: {}
1632
## @param service.clusterIP Kafka service Cluster IP
1633
## e.g.:
1634
## clusterIP: None
1635
##
1636
clusterIP: ""
1637
## @param service.loadBalancerIP Kafka service Load Balancer IP
1638
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
1639
##
1640
loadBalancerIP: ""
1641
## @param service.loadBalancerClass Kafka service Load Balancer Class
1642
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
1643
##
1644
loadBalancerClass: ""
1645
## @param service.loadBalancerSourceRanges Kafka service Load Balancer sources
1646
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1647
## e.g:
1648
## loadBalancerSourceRanges:
1649
## - 10.10.10.0/24
1650
##
1651
loadBalancerSourceRanges: []
1652
## @param service.allocateLoadBalancerNodePorts Whether to allocate node ports when service type is LoadBalancer
1653
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-nodeport-allocation
1654
##
1655
allocateLoadBalancerNodePorts: true
1656
## @param service.externalTrafficPolicy Kafka service external traffic policy
1657
## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1658
##
1659
externalTrafficPolicy: Cluster
1660
## @param service.annotations Additional custom annotations for Kafka service
1661
##
1662
annotations: {}
1663
## Headless service properties
1664
##
1665
headless:
1666
controller:
1667
## @param service.headless.controller.annotations Annotations for the controller-eligible headless service.
1668
##
1669
annotations: {}
1670
## @param service.headless.controller.labels Labels for the controller-eligible headless service.
1671
##
1672
labels: {}
1673
broker:
1674
## @param service.headless.broker.annotations Annotations for the broker-only headless service.
1675
##
1676
annotations: {}
1677
## @param service.headless.broker.labels Labels for the broker-only headless service.
1678
##
1679
labels: {}
1680
## @param service.headless.ipFamilies IP families for the headless service
1681
##
1682
ipFamilies: []
1683
## @param service.headless.ipFamilyPolicy IP family policy for the headless service
1684
##
1685
ipFamilyPolicy: ""
1686
## External Access to Kafka brokers configuration
1687
##
1688
externalAccess:
1689
## @param externalAccess.enabled Enable Kubernetes external cluster access to Kafka brokers
1690
##
1691
enabled: false
1692
## Service settings
1693
controller:
1694
## @param externalAccess.controller.forceExpose If set to true, force exposing controller-eligible nodes although they are configured as controller-only nodes
1695
##
1696
forceExpose: false
1697
## Parameters to configure K8s service(s) used to externally access Kafka brokers
1698
## Note: A new service per broker will be created
1699
##
1700
service:
1701
## @param externalAccess.controller.service.type Kubernetes Service type for external access. It can be NodePort, LoadBalancer or ClusterIP
1702
##
1703
type: LoadBalancer
1704
## @param externalAccess.controller.service.ports.external Kafka port used for external access when service type is LoadBalancer
1705
##
1706
ports:
1707
external: 9094
1708
## @param externalAccess.controller.service.loadBalancerClass Kubernetes Service Load Balancer class for external access when service type is LoadBalancer
1709
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
1710
##
1711
loadBalancerClass: ""
1712
## @param externalAccess.controller.service.loadBalancerIPs Array of load balancer IPs for each Kafka broker. Length must be the same as replicaCount
1713
## e.g:
1714
## loadBalancerIPs:
1715
## - X.X.X.X
1716
## - Y.Y.Y.Y
1717
##
1718
loadBalancerIPs: []
1719
## @param externalAccess.controller.service.loadBalancerNames Array of load balancer Names for each Kafka broker. Length must be the same as replicaCount
1720
## e.g:
1721
## loadBalancerNames:
1722
## - broker1.external.example.com
1723
## - broker2.external.example.com
1724
##
1725
loadBalancerNames: []
1726
## @param externalAccess.controller.service.loadBalancerAnnotations Array of load balancer annotations for each Kafka broker. Length must be the same as replicaCount
1727
## e.g:
1728
## loadBalancerAnnotations:
1729
## - external-dns.alpha.kubernetes.io/hostname: broker1.external.example.com.
1730
## - external-dns.alpha.kubernetes.io/hostname: broker2.external.example.com.
1731
##
1732
loadBalancerAnnotations: []
1733
## @param externalAccess.controller.service.loadBalancerSourceRanges Address(es) that are allowed when service is LoadBalancer
1734
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1735
## e.g:
1736
## loadBalancerSourceRanges:
1737
## - 10.10.10.0/24
1738
##
1739
loadBalancerSourceRanges: []
1740
## @param externalAccess.controller.service.allocateLoadBalancerNodePorts Whether to allocate node ports when service type is LoadBalancer
1741
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-nodeport-allocation
1742
##
1743
allocateLoadBalancerNodePorts: true
1744
## @param externalAccess.controller.service.nodePorts Array of node ports used for each Kafka broker. Length must be the same as replicaCount
1745
## e.g:
1746
## nodePorts:
1747
## - 30001
1748
## - 30002
1749
##
1750
nodePorts: []
1751
## @param externalAccess.controller.service.externalIPs Use distinct service host IPs to configure Kafka external listener when service type is NodePort. Length must be the same as replicaCount
1752
## e.g:
1753
## externalIPs:
1754
## - X.X.X.X
1755
## - Y.Y.Y.Y
1756
##
1757
externalIPs: []
1758
## @param externalAccess.controller.service.useHostIPs Use service host IPs to configure Kafka external listener when service type is NodePort
1759
##
1760
useHostIPs: false
1761
## @param externalAccess.controller.service.usePodIPs using the MY_POD_IP address for external access.
1762
##
1763
usePodIPs: false
1764
## @param externalAccess.controller.service.domain Domain or external ip used to configure Kafka external listener when service type is NodePort or ClusterIP
1765
## NodePort: If not specified, the container will try to get the kubernetes node external IP
1766
## ClusterIP: Must be specified, ingress IP or domain where tcp for external ports is configured
1767
##
1768
domain: ""
1769
## @param externalAccess.controller.service.publishNotReadyAddresses Indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready
1770
## ref: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/
1771
##
1772
publishNotReadyAddresses: false
1773
## @param externalAccess.controller.service.labels Service labels for external access
1774
##
1775
labels: {}
1776
## @param externalAccess.controller.service.annotations Service annotations for external access
1777
##
1778
annotations: {}
1779
## @param externalAccess.controller.service.extraPorts Extra ports to expose in the Kafka external service
1780
##
1781
extraPorts: []
1782
## @param externalAccess.controller.service.ipFamilies IP families for the external controller service
1783
##
1784
ipFamilies: []
1785
## @param externalAccess.controller.service.ipFamilyPolicy IP family policy for the external controller service
1786
##
1787
ipFamilyPolicy: ""
1788
broker:
1789
## Parameters to configure K8s service(s) used to externally access Kafka brokers
1790
## Note: A new service per broker will be created
1791
##
1792
service:
1793
## @param externalAccess.broker.service.type Kubernetes Service type for external access. It can be NodePort, LoadBalancer or ClusterIP
1794
##
1795
type: LoadBalancer
1796
## @param externalAccess.broker.service.ports.external Kafka port used for external access when service type is LoadBalancer
1797
##
1798
ports:
1799
external: 9094
1800
## @param externalAccess.broker.service.loadBalancerClass Kubernetes Service Load Balancer class for external access when service type is LoadBalancer
1801
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
1802
##
1803
loadBalancerClass: ""
1804
## @param externalAccess.broker.service.loadBalancerIPs Array of load balancer IPs for each Kafka broker. Length must be the same as replicaCount
1805
## e.g:
1806
## loadBalancerIPs:
1807
## - X.X.X.X
1808
## - Y.Y.Y.Y
1809
##
1810
loadBalancerIPs: []
1811
## @param externalAccess.broker.service.loadBalancerNames Array of load balancer Names for each Kafka broker. Length must be the same as replicaCount
1812
## e.g:
1813
## loadBalancerNames:
1814
## - broker1.external.example.com
1815
## - broker2.external.example.com
1816
##
1817
loadBalancerNames: []
1818
## @param externalAccess.broker.service.loadBalancerAnnotations Array of load balancer annotations for each Kafka broker. Length must be the same as replicaCount
1819
## e.g:
1820
## loadBalancerAnnotations:
1821
## - external-dns.alpha.kubernetes.io/hostname: broker1.external.example.com.
1822
## - external-dns.alpha.kubernetes.io/hostname: broker2.external.example.com.
1823
##
1824
loadBalancerAnnotations: []
1825
## @param externalAccess.broker.service.loadBalancerSourceRanges Address(es) that are allowed when service is LoadBalancer
1826
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1827
## e.g:
1828
## loadBalancerSourceRanges:
1829
## - 10.10.10.0/24
1830
##
1831
loadBalancerSourceRanges: []
1832
## @param externalAccess.broker.service.allocateLoadBalancerNodePorts Whether to allocate node ports when service type is LoadBalancer
1833
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-nodeport-allocation
1834
##
1835
allocateLoadBalancerNodePorts: true
1836
## @param externalAccess.broker.service.nodePorts Array of node ports used for each Kafka broker. Length must be the same as replicaCount
1837
## e.g:
1838
## nodePorts:
1839
## - 30001
1840
## - 30002
1841
##
1842
nodePorts: []
1843
## @param externalAccess.broker.service.externalIPs Use distinct service host IPs to configure Kafka external listener when service type is NodePort. Length must be the same as replicaCount
1844
## e.g:
1845
## externalIPs:
1846
## - X.X.X.X
1847
## - Y.Y.Y.Y
1848
##
1849
externalIPs: []
1850
## @param externalAccess.broker.service.useHostIPs Use service host IPs to configure Kafka external listener when service type is NodePort
1851
##
1852
useHostIPs: false
1853
## @param externalAccess.broker.service.usePodIPs using the MY_POD_IP address for external access.
1854
##
1855
usePodIPs: false
1856
## @param externalAccess.broker.service.domain Domain or external ip used to configure Kafka external listener when service type is NodePort or ClusterIP
1857
## NodePort: If not specified, the container will try to get the kubernetes node external IP
1858
## ClusterIP: Must be specified, ingress IP or domain where tcp for external ports is configured
1859
##
1860
domain: ""
1861
## @param externalAccess.broker.service.publishNotReadyAddresses Indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready
1862
## ref: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/
1863
##
1864
publishNotReadyAddresses: false
1865
## @param externalAccess.broker.service.labels Service labels for external access
1866
##
1867
labels: {}
1868
## @param externalAccess.broker.service.annotations Service annotations for external access
1869
##
1870
annotations: {}
1871
## @param externalAccess.broker.service.extraPorts Extra ports to expose in the Kafka external service
1872
##
1873
extraPorts: []
1874
## @param externalAccess.broker.service.ipFamilies IP families for the external broker service
1875
##
1876
ipFamilies: []
1877
## @param externalAccess.broker.service.ipFamilyPolicy IP family policy for the external broker service
1878
##
1879
ipFamilyPolicy: ""
1880
## Network policies
1881
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1882
##
1883
networkPolicy:
1884
## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
1885
##
1886
enabled: true
1887
## @param networkPolicy.allowExternal Don't require client label for connections
1888
## When set to false, only pods with the correct client label will have network access to the port Kafka is
1889
## listening on. When true, Kafka accept connections from any source (with the correct destination port).
1890
##
1891
allowExternal: true
1892
## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1893
##
1894
allowExternalEgress: true
1895
## @param networkPolicy.addExternalClientAccess Allow access from pods with client label set to "true". Ignored if `networkPolicy.allowExternal` is true.
1896
##
1897
addExternalClientAccess: true
1898
## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1899
## e.g:
1900
## extraIngress:
1901
## - ports:
1902
## - port: 1234
1903
## from:
1904
## - podSelector:
1905
## - matchLabels:
1906
## - role: frontend
1907
## - podSelector:
1908
## - matchExpressions:
1909
## - key: role
1910
## operator: In
1911
## values:
1912
## - frontend
1913
extraIngress: []
1914
## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1915
## e.g:
1916
## extraEgress:
1917
## - ports:
1918
## - port: 1234
1919
## to:
1920
## - podSelector:
1921
## - matchLabels:
1922
## - role: frontend
1923
## - podSelector:
1924
## - matchExpressions:
1925
## - key: role
1926
## operator: In
1927
## values:
1928
## - frontend
1929
##
1930
extraEgress: []
1931
## @param networkPolicy.ingressPodMatchLabels [object] Labels to match to allow traffic from other pods. Ignored if `networkPolicy.allowExternal` is true.
1932
## e.g:
1933
## ingressPodMatchLabels:
1934
## my-client: "true"
1935
#
1936
ingressPodMatchLabels: {}
1937
## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces. Ignored if `networkPolicy.allowExternal` is true.
1938
## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces. Ignored if `networkPolicy.allowExternal` is true.
1939
##
1940
ingressNSMatchLabels: {}
1941
ingressNSPodMatchLabels: {}
1942
## @section Other Parameters
1943
1944
## ServiceAccount for Kafka
1945
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1946
##
1947
serviceAccount:
1948
## @param serviceAccount.create Enable creation of ServiceAccount for Kafka pods
1949
##
1950
create: true
1951
## @param serviceAccount.name The name of the service account to use. If not set and `create` is `true`, a name is generated
1952
## If not set and create is true, a name is generated using the kafka.serviceAccountName template
1953
##
1954
name: ""
1955
## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
1956
## Can be set to false if pods using this serviceAccount do not need to use K8s API
1957
##
1958
automountServiceAccountToken: false
1959
## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
1960
##
1961
annotations: {}
1962
## Role Based Access Control
1963
## ref: https://kubernetes.io/docs/admin/authorization/rbac/
1964
##
1965
rbac:
1966
## @param rbac.create Whether to create & use RBAC resources or not
1967
## binding Kafka ServiceAccount to a role
1968
## that allows Kafka pods querying the K8s API
1969
##
1970
create: false
1971
## @section Metrics parameters
1972
1973
## Prometheus Exporters / Metrics
1974
##
1975
metrics:
1976
## Prometheus JMX exporter: exposes the majority of Kafka metrics
1977
##
1978
jmx:
1979
## @param metrics.jmx.enabled Whether or not to expose JMX metrics to Prometheus
1980
##
1981
enabled: false
1982
## @param metrics.jmx.kafkaJmxPort JMX port where the exporter will collect metrics, exposed in the Kafka container.
1983
##
1984
kafkaJmxPort: 5555
1985
## Iamguarded JMX exporter image
1986
## @param metrics.jmx.image.registry [default: REGISTRY_NAME] JMX exporter image registry
1987
## @param metrics.jmx.image.repository [default: REPOSITORY_NAME/jmx-exporter] JMX exporter image repository
1988
## @skip metrics.jmx.image.tag JMX exporter image tag (immutable tags are recommended)
1989
## @param metrics.jmx.image.digest JMX exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1990
## @param metrics.jmx.image.pullPolicy JMX exporter image pull policy
1991
## @param metrics.jmx.image.pullSecrets Specify docker-registry secret names as an array
1992
##
1993
image:
1994
registry: cgr.dev
1995
repository: chainguard-private/jmx-exporter-iamguarded
1996
tag: 1.7.0
1997
digest: ""
1998
## Specify a imagePullPolicy
1999
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
2000
##
2001
pullPolicy: IfNotPresent
2002
## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
2003
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
2004
## e.g:
2005
## pullSecrets:
2006
## - myRegistryKeySecretName
2007
##
2008
pullSecrets: []
2009
## Prometheus JMX exporter containers' Security Context
2010
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
2011
## @param metrics.jmx.containerSecurityContext.enabled Enable Prometheus JMX exporter containers' Security Context
2012
## @param metrics.jmx.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
2013
## @param metrics.jmx.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
2014
## @param metrics.jmx.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
2015
## @param metrics.jmx.containerSecurityContext.runAsNonRoot Set Prometheus JMX exporter containers' Security Context runAsNonRoot
2016
## @param metrics.jmx.containerSecurityContext.allowPrivilegeEscalation Set Prometheus JMX exporter containers' Security Context allowPrivilegeEscalation
2017
## @param metrics.jmx.containerSecurityContext.readOnlyRootFilesystem Set Prometheus JMX exporter containers' Security Context readOnlyRootFilesystem
2018
## @param metrics.jmx.containerSecurityContext.capabilities.drop Set Prometheus JMX exporter containers' Security Context capabilities to be dropped
2019
## e.g:
2020
## containerSecurityContext:
2021
## enabled: true
2022
## capabilities:
2023
## drop: ["NET_RAW"]
2024
## readOnlyRootFilesystem: true
2025
##
2026
containerSecurityContext:
2027
enabled: true
2028
seLinuxOptions: {}
2029
runAsUser: 1001
2030
runAsGroup: 1001
2031
runAsNonRoot: true
2032
allowPrivilegeEscalation: false
2033
readOnlyRootFilesystem: true
2034
capabilities:
2035
drop: ["ALL"]
2036
## @param metrics.jmx.containerPorts.metrics Prometheus JMX exporter metrics container port
2037
##
2038
containerPorts:
2039
metrics: 5556
2040
## Prometheus JMX exporter resource requests and limits
2041
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
2042
## @param metrics.jmx.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if metrics.jmx.resources is set (metrics.jmx.resources is recommended for production).
2043
##
2044
resourcesPreset: "micro"
2045
## @param metrics.jmx.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
2046
## Example:
2047
## resources:
2048
## requests:
2049
## cpu: 2
2050
## memory: 512Mi
2051
## limits:
2052
## cpu: 3
2053
## memory: 1024Mi
2054
##
2055
resources: {}
2056
## Configure extra options for liveness probe
2057
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
2058
## @param metrics.jmx.livenessProbe.enabled Enable livenessProbe
2059
## @param metrics.jmx.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
2060
## @param metrics.jmx.livenessProbe.periodSeconds Period seconds for livenessProbe
2061
## @param metrics.jmx.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
2062
## @param metrics.jmx.livenessProbe.failureThreshold Failure threshold for livenessProbe
2063
## @param metrics.jmx.livenessProbe.successThreshold Success threshold for livenessProbe
2064
##
2065
livenessProbe:
2066
enabled: true
2067
initialDelaySeconds: 60
2068
periodSeconds: 10
2069
timeoutSeconds: 10
2070
successThreshold: 1
2071
failureThreshold: 3
2072
## Configure extra options for readiness probe
2073
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
2074
## @param metrics.jmx.readinessProbe.enabled Enable readinessProbe
2075
## @param metrics.jmx.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
2076
## @param metrics.jmx.readinessProbe.periodSeconds Period seconds for readinessProbe
2077
## @param metrics.jmx.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
2078
## @param metrics.jmx.readinessProbe.failureThreshold Failure threshold for readinessProbe
2079
## @param metrics.jmx.readinessProbe.successThreshold Success threshold for readinessProbe
2080
##
2081
readinessProbe:
2082
enabled: true
2083
initialDelaySeconds: 30
2084
periodSeconds: 10
2085
timeoutSeconds: 10
2086
successThreshold: 1
2087
failureThreshold: 3
2088
## Prometheus JMX exporter service configuration
2089
##
2090
service:
2091
## @param metrics.jmx.service.ports.metrics Prometheus JMX exporter metrics service port
2092
##
2093
ports:
2094
metrics: 5556
2095
## @param metrics.jmx.service.clusterIP Static clusterIP or None for headless services
2096
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
2097
##
2098
clusterIP: ""
2099
## @param metrics.jmx.service.sessionAffinity Control where client requests go, to the same pod or round-robin
2100
## Values: ClientIP or None
2101
## ref: https://kubernetes.io/docs/concepts/services-networking/service/
2102
##
2103
sessionAffinity: None
2104
## @param metrics.jmx.service.annotations [object] Annotations for the Prometheus JMX exporter service
2105
##
2106
annotations:
2107
prometheus.io/scrape: "true"
2108
prometheus.io/port: "{{ .Values.metrics.jmx.service.ports.metrics }}"
2109
prometheus.io/path: "/metrics"
2110
## @param metrics.jmx.service.ipFamilies IP families for the jmx metrics service
2111
##
2112
ipFamilies: []
2113
## @param metrics.jmx.service.ipFamilyPolicy IP family policy for the jmx metrics service
2114
##
2115
ipFamilyPolicy: ""
2116
## @param metrics.jmx.whitelistObjectNames Allows setting which JMX objects you want to expose to via JMX stats to JMX exporter
2117
## Only whitelisted values will be exposed via JMX exporter. They must also be exposed via Rules. To expose all metrics
2118
## (warning its crazy excessive and they aren't formatted in a prometheus style) (1) `whitelistObjectNames: []`
2119
## (2) commented out above `overrideConfig`.
2120
##
2121
whitelistObjectNames:
2122
- kafka.controller:*
2123
- kafka.server:*
2124
- java.lang:*
2125
- kafka.network:*
2126
- kafka.log:*
2127
## @param metrics.jmx.config [string] Configuration file for JMX exporter
2128
## Specify content for jmx-kafka-prometheus.yml. Evaluated as a template
2129
##
2130
## Credits to the incubator/kafka chart for the JMX configuration.
2131
## https://github.com/helm/charts/tree/master/incubator/kafka
2132
##
2133
config: |-
2134
jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:{{ .Values.metrics.jmx.kafkaJmxPort }}/jmxrmi
2135
lowercaseOutputName: true
2136
lowercaseOutputLabelNames: true
2137
ssl: false
2138
{{- if .Values.metrics.jmx.whitelistObjectNames }}
2139
whitelistObjectNames: ["{{ join "\",\"" .Values.metrics.jmx.whitelistObjectNames }}"]
2140
{{- end }}
2141
## @param metrics.jmx.existingConfigmap Name of existing ConfigMap with JMX exporter configuration
2142
## NOTE: This will override metrics.jmx.config
2143
##
2144
existingConfigmap: ""
2145
## @param metrics.jmx.extraRules Add extra rules to JMX exporter configuration
2146
## e.g:
2147
## extraRules: |-
2148
## - pattern: kafka.server<type=socket-server-metrics, listener=(.+), networkProcessor=(.+)><>(connection-count)
2149
## name: kafka_server_socket_server_metrics_$3
2150
## labels:
2151
## listener: $1
2152
##
2153
extraRules: ""
2154
## Prometheus Operator ServiceMonitor configuration
2155
##
2156
serviceMonitor:
2157
## @param metrics.serviceMonitor.enabled if `true`, creates a Prometheus Operator ServiceMonitor (requires `metrics.jmx.enabled` to be `true`)
2158
##
2159
enabled: false
2160
## @param metrics.serviceMonitor.namespace Namespace in which Prometheus is running
2161
##
2162
namespace: ""
2163
## @param metrics.serviceMonitor.path Path where JMX exporter serves metrics
2164
##
2165
path: /metrics
2166
## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped
2167
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
2168
##
2169
interval: ""
2170
## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
2171
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
2172
##
2173
scrapeTimeout: ""
2174
## @param metrics.serviceMonitor.labels Additional labels that can be used so ServiceMonitor will be discovered by Prometheus
2175
##
2176
labels: {}
2177
## @param metrics.serviceMonitor.selector Prometheus instance selector labels
2178
##
2179
selector: {}
2180
## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping
2181
##
2182
relabelings: []
2183
## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion
2184
##
2185
metricRelabelings: []
2186
## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
2187
##
2188
honorLabels: false
2189
## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
2190
##
2191
jobLabel: ""
2192
prometheusRule:
2193
## @param metrics.prometheusRule.enabled if `true`, creates a Prometheus Operator PrometheusRule (requires `metrics.jmx.enabled` to be `true`)
2194
##
2195
enabled: false
2196
## @param metrics.prometheusRule.namespace Namespace in which Prometheus is running
2197
##
2198
namespace: ""
2199
## @param metrics.prometheusRule.labels Additional labels that can be used so PrometheusRule will be discovered by Prometheus
2200
##
2201
labels: {}
2202
## @param metrics.prometheusRule.groups Prometheus Rule Groups for Kafka
2203
##
2204
groups: []
2205
## @section Kafka provisioning parameters
2206
##
2207
2208
## Kafka provisioning
2209
##
2210
provisioning:
2211
## @param provisioning.enabled Enable Kafka provisioning Job
2212
##
2213
enabled: false
2214
## @param provisioning.waitForKafka Whether an init container should be created to wait until Kafka is ready before provisioning
2215
##
2216
waitForKafka: true
2217
## @param provisioning.useHelmHooks Flag to indicate usage of helm hooks
2218
##
2219
useHelmHooks: true
2220
## @param provisioning.automountServiceAccountToken Mount Service Account token in pod
2221
##
2222
automountServiceAccountToken: false
2223
## @param provisioning.numPartitions Default number of partitions for topics when unspecified
2224
##
2225
numPartitions: 1
2226
## @param provisioning.replicationFactor Default replication factor for topics when unspecified
2227
##
2228
replicationFactor: 1
2229
## @param provisioning.topics Kafka topics to provision
2230
## - name: topic-name
2231
## partitions: 1
2232
## replicationFactor: 1
2233
## ## https://kafka.apache.org/documentation/#topicconfigs
2234
## config:
2235
## max.message.bytes: 64000
2236
## flush.messages: 1
2237
##
2238
topics: []
2239
## @param provisioning.nodeSelector Node labels for pod assignment
2240
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
2241
##
2242
nodeSelector: {}
2243
## @param provisioning.tolerations Tolerations for pod assignment
2244
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2245
##
2246
tolerations: []
2247
## @param provisioning.extraProvisioningCommands Extra commands to run to provision cluster resources
2248
## - echo "Allow user to consume from any topic"
2249
## - >-
2250
## /opt/iamguarded/kafka/bin/kafka-acls.sh
2251
## --bootstrap-server $KAFKA_SERVICE
2252
## --command-config /shared/client.properties
2253
## --add
2254
## --allow-principal User:user
2255
## --consumer --topic *
2256
## - "/opt/iamguarded/kafka/bin/kafka-acls.sh
2257
## --bootstrap-server $KAFKA_SERVICE
2258
## --command-config /shared/client.properties
2259
## --list"
2260
##
2261
extraProvisioningCommands: []
2262
## @param provisioning.parallel Number of provisioning commands to run at the same time
2263
##
2264
parallel: 1
2265
## @param provisioning.preScript Extra bash script to run before topic provisioning. /shared/client.properties is path to properties file with most needed configurations
2266
##
2267
preScript: ""
2268
## @param provisioning.postScript Extra bash script to run after topic provisioning. /shared/client.properties is path to properties file with most needed configurations
2269
##
2270
postScript: ""
2271
## Auth Configuration for kafka provisioning Job
2272
##
2273
auth:
2274
## TLS configuration for kafka provisioning Job
2275
##
2276
tls:
2277
## @param provisioning.auth.tls.type Format to use for TLS certificates. Allowed types: `JKS` and `PEM`.
2278
## Note: ignored if auth.tls.client.protocol different from one of these values: "SSL" "SASL_SSL"
2279
##
2280
type: jks
2281
## @param provisioning.auth.tls.certificatesSecret Existing secret containing the TLS certificates for the Kafka provisioning Job.
2282
## When using 'jks' format for certificates, the secret should contain a truststore and a keystore.
2283
## When using 'pem' format for certificates, the secret should contain one of the following:
2284
## 1. A public CA certificate, a public certificate and one private key.
2285
## 2. A truststore and a keystore in PEM format
2286
## If caCert is set, option 1 will be taken, otherwise option 2.
2287
##
2288
certificatesSecret: ""
2289
## @param provisioning.auth.tls.cert The secret key from the certificatesSecret if 'cert' key different from the default (tls.crt)
2290
##
2291
cert: tls.crt
2292
## @param provisioning.auth.tls.key The secret key from the certificatesSecret if 'key' key different from the default (tls.key)
2293
##
2294
key: tls.key
2295
## @param provisioning.auth.tls.caCert The secret key from the certificatesSecret if 'caCert' key different from the default (ca.crt)
2296
##
2297
caCert: ca.crt
2298
## @param provisioning.auth.tls.keystore The secret key from the certificatesSecret if 'keystore' key different from the default (keystore.jks)
2299
##
2300
keystore: keystore.jks
2301
## @param provisioning.auth.tls.truststore The secret key from the certificatesSecret if 'truststore' key different from the default (truststore.jks)
2302
##
2303
truststore: truststore.jks
2304
## @param provisioning.auth.tls.passwordsSecret Name of the secret containing passwords to access the JKS files or PEM key when they are password-protected.
2305
## It should contain two keys called "keystore-password" and "truststore-password", or "key-password" if using a password-protected PEM key.
2306
##
2307
passwordsSecret: ""
2308
## @param provisioning.auth.tls.keyPasswordSecretKey The secret key from the passwordsSecret if 'keyPasswordSecretKey' key different from the default (key-password)
2309
## Note: must not be used if `passwordsSecret` is not defined.
2310
##
2311
keyPasswordSecretKey: key-password
2312
## @param provisioning.auth.tls.keystorePasswordSecretKey The secret key from the passwordsSecret if 'keystorePasswordSecretKey' key different from the default (keystore-password)
2313
## Note: must not be used if `passwordsSecret` is not defined.
2314
##
2315
keystorePasswordSecretKey: keystore-password
2316
## @param provisioning.auth.tls.truststorePasswordSecretKey The secret key from the passwordsSecret if 'truststorePasswordSecretKey' key different from the default (truststore-password)
2317
## Note: must not be used if `passwordsSecret` is not defined.
2318
##
2319
truststorePasswordSecretKey: truststore-password
2320
## @param provisioning.auth.tls.keyPassword Password to access the password-protected PEM key if necessary. Ignored if 'passwordsSecret' is provided.
2321
##
2322
keyPassword: ""
2323
## @param provisioning.auth.tls.keystorePassword Password to access the JKS keystore. Ignored if 'passwordsSecret' is provided.
2324
##
2325
keystorePassword: ""
2326
## @param provisioning.auth.tls.truststorePassword Password to access the JKS truststore. Ignored if 'passwordsSecret' is provided.
2327
##
2328
truststorePassword: ""
2329
## @param provisioning.command Override provisioning container command
2330
##
2331
command: []
2332
## @param provisioning.args Override provisioning container arguments
2333
##
2334
args: []
2335
## @param provisioning.extraEnvVars Extra environment variables to add to the provisioning pod
2336
## e.g:
2337
## extraEnvVars:
2338
## - name: KAFKA_CFG_BACKGROUND_THREADS
2339
## value: "10"
2340
##
2341
extraEnvVars: []
2342
## @param provisioning.extraEnvVarsCM ConfigMap with extra environment variables
2343
##
2344
extraEnvVarsCM: ""
2345
## @param provisioning.extraEnvVarsSecret Secret with extra environment variables
2346
##
2347
extraEnvVarsSecret: ""
2348
## @param provisioning.podAnnotations Extra annotations for Kafka provisioning pods
2349
##
2350
podAnnotations: {}
2351
## @param provisioning.podLabels Extra labels for Kafka provisioning pods
2352
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2353
##
2354
podLabels: {}
2355
## Kafka provisioning pods ServiceAccount
2356
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
2357
##
2358
serviceAccount:
2359
## @param provisioning.serviceAccount.create Enable creation of ServiceAccount for Kafka provisioning pods
2360
##
2361
create: true
2362
## @param provisioning.serviceAccount.name The name of the service account to use. If not set and `create` is `true`, a name is generated
2363
## If not set and create is true, a name is generated using the provisioning.serviceAccount.name template
2364
##
2365
name: ""
2366
## @param provisioning.serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
2367
## Can be set to false if pods using this serviceAccount do not need to use K8s API
2368
##
2369
automountServiceAccountToken: false
2370
## Kafka provisioning resource requests and limits
2371
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
2372
## @param provisioning.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if provisioning.resources is set (provisioning.resources is recommended for production).
2373
##
2374
resourcesPreset: "micro"
2375
## @param provisioning.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
2376
## Example:
2377
## resources:
2378
## requests:
2379
## cpu: 2
2380
## memory: 512Mi
2381
## limits:
2382
## cpu: 3
2383
## memory: 1024Mi
2384
##
2385
resources: {}
2386
## Kafka provisioning pods' Security Context
2387
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
2388
## @param provisioning.podSecurityContext.enabled Enable security context for the pods
2389
## @param provisioning.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
2390
## @param provisioning.podSecurityContext.sysctls Set kernel settings using the sysctl interface
2391
## @param provisioning.podSecurityContext.supplementalGroups Set filesystem extra groups
2392
## @param provisioning.podSecurityContext.fsGroup Set Kafka provisioning pod's Security Context fsGroup
2393
## @param provisioning.podSecurityContext.seccompProfile.type Set Kafka provisioning pod's Security Context seccomp profile
2394
##
2395
podSecurityContext:
2396
enabled: true
2397
fsGroupChangePolicy: Always
2398
sysctls: []
2399
supplementalGroups: []
2400
fsGroup: 1001
2401
seccompProfile:
2402
type: "RuntimeDefault"
2403
## Kafka provisioning containers' Security Context
2404
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
2405
## @param provisioning.containerSecurityContext.enabled Enable Kafka provisioning containers' Security Context
2406
## @param provisioning.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
2407
## @param provisioning.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
2408
## @param provisioning.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
2409
## @param provisioning.containerSecurityContext.runAsNonRoot Set Kafka provisioning containers' Security Context runAsNonRoot
2410
## @param provisioning.containerSecurityContext.allowPrivilegeEscalation Set Kafka provisioning containers' Security Context allowPrivilegeEscalation
2411
## @param provisioning.containerSecurityContext.readOnlyRootFilesystem Set Kafka provisioning containers' Security Context readOnlyRootFilesystem
2412
## @param provisioning.containerSecurityContext.capabilities.drop Set Kafka provisioning containers' Security Context capabilities to be dropped
2413
## e.g:
2414
## containerSecurityContext:
2415
## enabled: true
2416
## capabilities:
2417
## drop: ["NET_RAW"]
2418
## readOnlyRootFilesystem: true
2419
##
2420
containerSecurityContext:
2421
enabled: true
2422
seLinuxOptions: {}
2423
runAsUser: 1001
2424
runAsGroup: 1001
2425
runAsNonRoot: true
2426
allowPrivilegeEscalation: false
2427
readOnlyRootFilesystem: true
2428
capabilities:
2429
drop: ["ALL"]
2430
## @param provisioning.schedulerName Name of the k8s scheduler (other than default) for kafka provisioning
2431
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
2432
##
2433
schedulerName: ""
2434
## @param provisioning.enableServiceLinks Whether information about services should be injected into pod's environment variable
2435
## The environment variables injected by service links are not used, but can lead to slow kafka boot times or slow running of the scripts when there are many services in the current namespace.
2436
## If you experience slow pod startups or slow running of the scripts you probably want to set this to `false`.
2437
##
2438
enableServiceLinks: true
2439
## @param provisioning.extraVolumes Optionally specify extra list of additional volumes for the Kafka provisioning pod(s)
2440
## e.g:
2441
## extraVolumes:
2442
## - name: kafka-jaas
2443
## secret:
2444
## secretName: kafka-jaas
2445
##
2446
extraVolumes: []
2447
## @param provisioning.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Kafka provisioning container(s)
2448
## extraVolumeMounts:
2449
## - name: kafka-jaas
2450
## mountPath: /iamguarded/kafka/config/kafka_jaas.conf
2451
## subPath: kafka_jaas.conf
2452
##
2453
extraVolumeMounts: []
2454
## @param provisioning.sidecars Add additional sidecar containers to the Kafka provisioning pod(s)
2455
## e.g:
2456
## sidecars:
2457
## - name: your-image-name
2458
## image: your-image
2459
## imagePullPolicy: Always
2460
## ports:
2461
## - name: portname
2462
## containerPort: 1234
2463
##
2464
sidecars: []
2465
## @param provisioning.initContainers Add additional Add init containers to the Kafka provisioning pod(s)
2466
## e.g:
2467
## initContainers:
2468
## - name: your-image-name
2469
## image: your-image
2470
## imagePullPolicy: Always
2471
## ports:
2472
## - name: portname
2473
## containerPort: 1234
2474
##
2475
initContainers: []
2476

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.