Docker
This page describes running Standalone K2K in Kubernetes via Docker.
Prerequisites
At least 1Gb of memory
Two available Kafka API compatible Clusters
Configure K2K
To run K2K, you need to provide a YAML configuration file that defines your replication pipeline. This file tells K2K how to move and transform your data.
First, create your replication pipeline definition in a YAML file. For example, let's say you name it pipeline.yaml
. This file describes the specifics of your data replication.
Running K2K
To run K2K as a Docker container, ensure you have your pipeline.yaml
file ready. Navigate to the directory containing the pipeline.yaml
file and execute the following command. This command will mount your configuration file into the container and set up the required environment variables for K2K and OpenTelemetry.
docker run --rm -it \
-v "$(pwd):/pipelines" \
-e K2K_PIPELINE_FOLDER="/pipelines" \
-e OTEL_SERVICE_NAME="k2k" \
-e OTEL_METRICS_EXPORTER=console \
-e OTEL_TRACES_EXPORTER=none \
-e OTEL_LOGS_EXPORTER=none \
--name k2k \
lensesio/k2k:0.1.0 \
k2k start -f /pipelines/pipeline.yaml -t
Warning: OTEL traces and logs are not supported for now.
Last updated
Was this helpful?