kafka-connect-manager

by joaquinito2051

Helm chartv0.9.9App 0.9.3

A Helm chart to deploy kafka connectors

About this chart

kafka-connect-manager

A Helm chart to deploy kafka connectors

Homepage: https://kafka-connect-manager.lsst.io/

Maintainers

NameEmailUrl
afausti[email protected]https://afausti.github.io/

Source Code

Values

KeyTypeDefaultDescription
env.kafkaBrokerUrlstring"cp-helm-charts-cp-kafka-headless.cp-helm-charts:9092"Kafka broker URL.
env.kafkaConnectUrlstring"http://cp-helm-charts-cp-kafka-connect.cp-helm-charts:8083"Kafka connnect URL.
image.pullPolicystring"Always"
image.repositorystring"lsstsqre/kafkaconnect"
image.tagstring"0.9.3"
influxdbSink.influxdb-sinkobject-To create multiple instances of this connector, repeat this block under the connector instance name. The connector instance name, "influxdb-sink" in this case, is used as scope for the template variables.
influxdbSink.influxdb-sink.autoUpdatebooltrueIf autoUpdate is enabled, check for new kafka topics. If they match topicRegex and excludedTopicRegex add them to the connector dynamically.
influxdbSink.influxdb-sink.checkIntervalstring"15000"The interval, in milliseconds, to check for new topics and update the connector.
influxdbSink.influxdb-sink.connectInfluxDbstring""InfluxDB database to write to.
influxdbSink.influxdb-sink.connectInfluxErrorPolicystring"THROW"Error policy.
influxdbSink.influxdb-sink.connectInfluxMaxRetriesstring"10"The maximum number of times a message is retried.
influxdbSink.influxdb-sink.connectInfluxRetryIntervalstring"60000"The interval, in milliseconds, between retries. Only valid when the connectInfluxErrorPolicy is set to RETRY.
influxdbSink.influxdb-sink.connectInfluxUrlstring"http://localhost:8086"InfluxDB URL, can be internal to the cluster.
influxdbSink.influxdb-sink.connectProgressEnabledboolfalseEnables the output for how many records have been processed.
influxdbSink.influxdb-sink.enabledboolfalseWhether this connector instance is deployed.
influxdbSink.influxdb-sink.excludedTopicRegexstring""Regex to exclude topics from the list of selected topics from Kafka.
influxdbSink.influxdb-sink.influxSecretstring"influxdb-auth"Name of the kubernetes secret with InfluxDB credentials.
influxdbSink.influxdb-sink.namestring"influxdb-sink"Name of the connector instance to create.
influxdbSink.influxdb-sink.tasksMaxint1Number of Kafka Connect tasks.
influxdbSink.influxdb-sink.timestampstring"sys_time()"Timestamp to be used as the InfluxDB time, if not specified sys_time() is used.
influxdbSink.influxdb-sink.topicRegexstring".*"Regex to select topics from Kafka.
jdbcSink.autoCreatestring"true"Whether to automatically create the destination table.
jdbcSink.autoEvolvestring"false"Whether to automatically add columns in the table schema.
jdbcSink.batchSizestring"3000"Specifies how many records to attempt to batch together for insertion into the destination table.
jdbcSink.connectionPasswordstring""Database connection password.
jdbcSink.connectionUrlstring"jdbc:postgresql://localhost:5432/mydb"Database connection URL.
jdbcSink.connectionUserstring""Database connection username.
jdbcSink.dbTimezonestring"UTC"Name of the JDBC timezone that should be used in the connector when inserting time-based values.
jdbcSink.enabledboolfalseWhether the JDBC Sink connector is deployed.
jdbcSink.insertModestring"insert"The insertion mode to use. Supported modes are: insert, upsert and update.
jdbcSink.maxRetriesstring"10"The maximum number of times to retry on errors before failing the task.
jdbcSink.namestring"postgres-sink"Name of the connector to create.
jdbcSink.retryBackoffMsstring"3000"The time in milliseconds to wait following an error before a retry attempt is made.
jdbcSink.tableNameFormatstring"${topic}"A format string for the destination table name.
jdbcSink.tasksMaxstring"10"Number of Kafka Connect tasks.
jdbcSink.topicRegexstring".*"Regex for selecting topics.
mirrorMaker2.enabledboolfalseWhether the MirrorMaker 2 connectors (heartbeat, checkpoint and mirror-source) are deployed.
mirrorMaker2.namestring"replicator"Name od the connector to create.
mirrorMaker2.replicationPolicySeparatorstring"."Separator used to format the remote topic name. Use an empty string if sourceClusterAlias is empty.
mirrorMaker2.sourceClusterAliasstring"src"Alias for the source cluster. The remote topic name is prefixed by this value. Use an empty string to preserve the name of the source topic in the destination cluster.
mirrorMaker2.sourceClusterBootstrapServersstring"localhost:31090"Source Kafka cluster.
mirrorMaker2.syncTopicAclsEnabledboolfalseWhether to monitor source cluster ACLs for changes.
mirrorMaker2.targetClusterAliasstring"destn"Name of the destination cluster.
mirrorMaker2.targetClusterBootstrapServersstring"localhost:31090"Destination Kafka cluster.
mirrorMaker2.tasksMaxint1Number of Kafka Connect tasks.
mirrorMaker2.topicRegexstring".*"Regex for selecting topics. Comma-separated lists are also supported.
s3Sink.awsSecretstring"aws-secret"Name of the Kubernetes secret with the aws_access_key_id and aws_secret_access_key keys.
s3Sink.behaviorOnNullValuesstring"fail"How to handle records with a null value (for example, Kafka tombstone records). Valid options are ignore and fail.
s3Sink.checkIntervalstring"15000"The interval, in milliseconds, to check for new topics and update the connector.
s3Sink.enabledboolfalseWhether the Amazon S3 Sink connector is deployed. It is configured to use the Parquet format class with Snappy compression and a time based partitioner.
s3Sink.excludedTopicRegexstring""Regex to exclude topics from the list of selected topics from Kafka.
s3Sink.flushSizestring"1000"Number of records written to store before invoking file commits.
s3Sink.localestring"en-US"The locale to use when partitioning with TimeBasedPartitioner.
s3Sink.namestring"s3-sink"Name of the connector to create.
s3Sink.partitionDurationMsstring"3600000"The duration of a partition in milliseconds, used by TimeBasedPartitioner. Default is 1h for an hourly based partitioner.
s3Sink.pathFormatstring"'year'=YYYY/'month'=MM/'day'=dd/'hour'=HH"Pattern used to format the path in the S3 object name.
s3Sink.rotateIntervalMsstring"600000"The time interval in milliseconds to invoke file commits. Set to 10 minutes by default.
s3Sink.s3BucketNamestring""s3 bucket name. The bucket must already exist at the s3 provider.
s3Sink.s3PartRetriesint3Maximum number of retry attempts for failed requests. Zero means no retries.
s3Sink.s3PartSizeint5242880The Part Size in S3 Multi-part Uploads. Valid Values: [5242880,…,2147483647]
s3Sink.s3Regionstring"us-east-1"s3 region
s3Sink.s3RetryBackoffMsint200How long to wait in milliseconds before attempting the first retry of a failed S3 request.
s3Sink.s3SchemaCompatibilitystring"NONE"s3 schema compatibility
s3Sink.schemaCacheConfigint5000The size of the schema cache used in the Avro converter.
s3Sink.storeUrlstring""The object storage connection URL, for non-AWS s3 providers.
s3Sink.tasksMaxint1Number of Kafka Connect tasks.
s3Sink.timestampExtractorstring"Record"The extractor determines how to obtain a timestamp from each record.
s3Sink.timestampFieldstring""The record field to be used as timestamp by the timestamp extractor. Only applies if timestampExtractor is set to RecordField.
s3Sink.timezonestring"UTC"The timezone to use when partitioning with TimeBasedPartitioner.
s3Sink.topicsDirstring"topics"Top level directory to store the data ingested from Kafka.
s3Sink.topicsRegexstring".*"Regex to select topics from Kafka.

Autogenerated from chart metadata using helm-docs v1.5.0

Deploy kafka-connect-manager with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kafka-connect-manager on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkafka-connect-manager is pinned at v0.9.9 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply