Running Debezium on Kubernetes: Strimzi, the Debezium Operator and the Platform
|
This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production. |
The Bookshop migration runs for months. During that time the Debezium connectors are production software: they must be
restarted when a node is drained, upgraded without losing their position in the Oracle redo stream, and configured
without leaking the password of the LogMiner user into a Git repository or a REST response. Kubernetes gives you
those properties if you let an operator manage the Kafka and Debezium components instead of writing Deployment
manifests by hand. This page shows the three ways of doing that, and gives a complete, copyable set of manifests for
the pipeline that the rest of the section runs with Docker Compose: the bookshop-oracle-source connector, reading the
legacy BOOKSHOP schema and writing to topics under the legacy prefix.
The three options are:
-
Strimzi runs Kafka and Kafka Connect, and you describe each Debezium connector as a
KafkaConnectorresource. This is the Kubernetes version of the Kafka Connect deployment used everywhere else in this section, and it is the recommended default for a migration that also uses the JDBC sink. -
The Debezium Operator runs Debezium Server instances described by
DebeziumServerresources. Use it when the pipeline has no Kafka Connect sinks, or when the destination is not Kafka. -
The Debezium Management Platform (incubating) adds a web UI and an API on top of the operator, in which sources, destinations, transforms and pipelines are managed as shared objects.
Kubernetes itself (pods, deployments, services, secrets, RBAC, Helm and operators) is covered in the Kubernetes section, and Kafka Connect concepts in Kafka Connect. This page explains only what is specific to running Debezium there. Monitoring the deployment is in Monitoring, Logging & Tracing, and offset handling in Offsets, Restarts & Exactly-Once.
Checked on 2026-11-09 against Debezium 3.7.1.Final, Strimzi 1.3.1 (released 2026-11-04, Kafka 4.2.x and 4.3.x, tested
on Kubernetes 1.32 to 1.37), and version 3.7.1 of the debezium-operator and debezium-platform Helm charts. The
manifests are derived from the official Debezium and Strimzi documentation and from the Strimzi 1.3.1 example files.
They were not applied to a Kubernetes cluster here. What was checked on 2026-11-09: the plug-in checksums on Maven
Central, the contents of the plug-in archives and of the quay.io/debezium/server:3.7.1.Final image (with Docker), the
chart versions in both Helm repositories, and the Debezium Operator resource fields against the operator’s 3.7.1 source
code.
Three ways to run Debezium on Kubernetes
The solid path is the default deployment of this page, and the dotted path is the Debezium Server alternative. Use one
of them for a given source database, never both: two pipelines with the same topic.prefix write to the same topics and
compete for the same schema history.
Strimzi + KafkaConnector |
Debezium Operator + DebeziumServer |
Debezium Management Platform | |
|---|---|---|---|
What runs the connector |
Kafka Connect workers (distributed mode), managed by the Strimzi Cluster Operator |
One Debezium Server pod per |
Debezium Server pods created by the platform through the Debezium Operator |
Destinations |
Kafka, plus any Kafka Connect sink (the Debezium JDBC sink, the MongoDB sink) in the same Connect cluster |
Any Debezium Server sink (Kafka, Pub/Sub, Kinesis, Redis, HTTP and others). No Kafka Connect sinks |
Any Debezium Server sink |
Offsets and schema history |
Kafka Connect topics (offsets) and a Kafka topic (schema history) |
Configured per resource: file, Kafka, JDBC, Redis, config map and others |
The platform database by default |
Configuration style |
Declarative YAML in Git, one resource per connector |
Declarative YAML in Git, one resource per pipeline |
Web UI and REST API (pipelines are stored in the platform database) |
Maturity |
Strimzi is a CNCF project, and Debezium on Kafka Connect is the reference deployment |
Stable API group |
Incubating: semantics and options may change |
Fits the Bookshop migration when |
The JDBC sink fills the PostgreSQL mirror tables and the application consumes Kafka topics (the default) |
Events only have to reach Kafka (or another broker) and the Connect sinks are not needed |
A team wants self-service pipelines and a UI, and accepts an incubating component |
Reference: Debezium — Running on Kubernetes, Debezium Operator — Overview and Debezium Management Platform — Basic concepts
The choice between Kafka Connect, Debezium Server and the embedded engine is discussed for the whole migration in Choosing a Deployment.
Strimzi 1.x: the v1 API, KRaft and node pools
The Debezium page "Deploying Debezium on Kubernetes" still shows Strimzi resources with apiVersion:
kafka.strimzi.io/v1beta2, the strimzi.io/kraft and strimzi.io/node-pools annotations, and Kafka 3.x versions. The
current Strimzi release line no longer accepts that. Strimzi 1.0.0 made kafka.strimzi.io/v1 the only served and stored
version and removed v1beta2 from the CRDs. Strimzi 1.3.1, the current release, supports Kafka 4.2.x and 4.3.x only, and
therefore KRaft only: there is no ZooKeeper, every Kafka cluster is made of KafkaNodePool resources, and the annotations
are no longer needed.
If you start from the Debezium example or an older internal manifest, change the following:
Older manifest (v1beta2) |
Strimzi 1.x (v1) |
Why it matters |
|---|---|---|
|
|
|
|
No annotations. KRaft and node pools are the only mode |
The roles ( |
|
|
Strimzi rejects these prefixes in |
|
Required in |
Two or more workers let the connector move when a pod is evicted. |
|
|
|
|
|
The version selects the Strimzi Kafka image that the build starts from. |
Reference: Strimzi — KafkaConnectSpec schema, Strimzi — KafkaConnectorSpec schema and Strimzi CHANGELOG (1.0.0: removal of v1beta2)
Two things in the Debezium page are still current: the use of the Strimzi build section to add the connector plug-in,
and the use of the KubernetesSecretConfigProvider with a Role and a RoleBinding for the credentials. The manifests
below use both, in the v1 form.
Installing the Strimzi Cluster Operator
Strimzi publishes its Helm chart as an OCI artifact. The following command installs the Cluster Operator into its own
namespace and lets it manage the resources in bookshop-cdc. Create both namespaces first, because the chart creates
role bindings in each watched namespace.
kubectl create namespace strimzi
kubectl create namespace bookshop-cdc
helm install strimzi-cluster-operator oci://quay.io/strimzi-helm/strimzi-kafka-operator \
--version 1.3.1 \
--namespace strimzi \
--set 'watchNamespaces={bookshop-cdc}'
kubectl get pods -n strimzi --watch # wait for strimzi-cluster-operator-... to be Running
Reference: Strimzi — Deploying Strimzi using Helm
Pin the chart version. Without --version Helm installs the newest chart, and a Strimzi upgrade also upgrades the
CRDs and may drop the Kafka version that your manifests name. Helm itself is explained in
Helm, and how operators reconcile custom resources in
Custom Resources and Operators.
The Kafka cluster
The cluster below has three controllers and three brokers in two node pools with persistent storage. It disables
broker-side topic creation, so that every Debezium topic is created either by a KafkaTopic resource or by Kafka Connect
with the settings that the connector asks for. The plain listener on port 9092 is used inside the namespace. TLS and
client authentication for Connect are covered in
Security & Data Protection and
Kafka Security.
apiVersion: kafka.strimzi.io/v1
kind: KafkaNodePool
metadata:
name: controller
namespace: bookshop-cdc
labels:
strimzi.io/cluster: bookshop-kafka
spec:
replicas: 3
roles:
- controller
storage:
type: jbod
volumes:
- id: 0
type: persistent-claim
size: 20Gi
kraftMetadata: shared
deleteClaim: false
---
apiVersion: kafka.strimzi.io/v1
kind: KafkaNodePool
metadata:
name: broker
namespace: bookshop-cdc
labels:
strimzi.io/cluster: bookshop-kafka
spec:
replicas: 3
roles:
- broker
storage:
type: jbod
volumes:
- id: 0
type: persistent-claim
size: 200Gi
kraftMetadata: shared
deleteClaim: false
---
apiVersion: kafka.strimzi.io/v1
kind: Kafka
metadata:
name: bookshop-kafka
namespace: bookshop-cdc
spec:
kafka:
version: 4.3.2
metadataVersion: 4.3-IV0
listeners:
- name: plain
port: 9092
type: internal
tls: false
- name: tls
port: 9093
type: internal
tls: true
config:
offsets.topic.replication.factor: 3
transaction.state.log.replication.factor: 3
transaction.state.log.min.isr: 2
default.replication.factor: 3
min.insync.replicas: 2
auto.create.topics.enable: false
entityOperator:
topicOperator: {}
userOperator: {}
Reference: Strimzi — Deploying a Kafka cluster in KRaft mode and Strimzi 1.3.1 example — kafka-ephemeral.yaml
Wait for kubectl wait kafka/bookshop-kafka --for=condition=Ready --timeout=600s -n bookshop-cdc. The bootstrap service is
bookshop-kafka-kafka-bootstrap, so clients in the namespace use bookshop-kafka-kafka-bootstrap:9092. The 200 GiB per
broker is a placeholder: size it from the change rate of the legacy database multiplied by the topic retention, plus the
compacted mirror topics. Disk sizing for stateful workloads is discussed in
Stateful Applications in Practice.
Topics that Debezium needs before it starts
Three Bookshop topics have requirements that automatic creation would not meet. The schema history topic must have a
single partition, must never be compacted or expired, and is read in full at every connector start. The signal and
notification topics are small, but you want to own their retention. Declaring them as KafkaTopic resources puts them
under version control.
apiVersion: kafka.strimzi.io/v1
kind: KafkaTopic
metadata:
name: legacy.schema-history
namespace: bookshop-cdc
labels:
strimzi.io/cluster: bookshop-kafka
spec:
partitions: 1
replicas: 3
config:
cleanup.policy: delete
retention.ms: -1
retention.bytes: -1
---
apiVersion: kafka.strimzi.io/v1
kind: KafkaTopic
metadata:
name: legacy.signals
namespace: bookshop-cdc
labels:
strimzi.io/cluster: bookshop-kafka
spec:
partitions: 1
replicas: 3
config:
retention.ms: 604800000
---
apiVersion: kafka.strimzi.io/v1
kind: KafkaTopic
metadata:
name: legacy.notifications
namespace: bookshop-cdc
labels:
strimzi.io/cluster: bookshop-kafka
spec:
partitions: 1
replicas: 3
config:
retention.ms: 2592000000
Reference: Debezium — Oracle connector properties (schema.history.internal.kafka.topic) and Debezium — Internal schema history store
The data topics (legacy.BOOKSHOP.BOOK and the others) and the heartbeat topic are created by Kafka Connect when the
connector first writes to them, with the topic.creation.default.* settings of the connector below. The Connect internal
topics (configs, offsets, status) are created by the Connect workers themselves. Topic creation groups are explained in
Offsets, Restarts & Exactly-Once.
Reaching the legacy Oracle database
The legacy Oracle database normally runs outside the cluster, on a server or a VM. An ExternalName service gives it a
stable in-cluster name, so the connector configuration keeps database.hostname: oracle, exactly as in the Docker
Compose labs, and only the service changes between environments.
apiVersion: v1
kind: Service
metadata:
name: oracle
namespace: bookshop-cdc
spec:
type: ExternalName
externalName: legacy-oracle.example.com
ports:
- name: sqlnet
port: 1521
Reference: Kubernetes — Service type ExternalName
An ExternalName service is only a DNS CNAME. The Connect pods must still be able to reach port 1521 through the
cluster’s egress rules and any firewall in front of Oracle. If you use network policies (see
Network Policies), allow egress from the pods labelled
strimzi.io/cluster: bookshop-connect to the Oracle host. A long LogMiner session holds the connection open, so the
firewall’s idle timeout must also be longer than the connector’s longest mining step.
Credentials: a Secret and the KubernetesSecretConfigProvider
The Oracle user and password must not appear in the KafkaConnector resource. Anything in a connector configuration is
returned in clear text by GET /connectors/bookshop-oracle-source/config, stored in the Connect config topic, and
committed to Git with the manifest. Kafka’s configuration providers solve this: the configuration contains a placeholder
such as ${secrets:bookshop-cdc/bookshop-oracle-credentials:ORACLE_PASSWORD}, and the worker resolves it when it
starts the task. Strimzi ships io.strimzi.kafka.KubernetesSecretConfigProvider, which reads the value directly from a
Kubernetes Secret through the Kubernetes API. It needs no volume mount, and a rotated password is picked up at the next
connector restart without restarting the workers.
The provider calls the Kubernetes API as the service account of the Connect pods, which Strimzi names
<KafkaConnect name>-connect, so bookshop-connect-connect here. That account needs get on exactly this secret.
apiVersion: v1
kind: Secret
metadata:
name: bookshop-oracle-credentials
namespace: bookshop-cdc
type: Opaque
stringData:
ORACLE_USER: c##dbzuser
ORACLE_PASSWORD: dbz
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: bookshop-oracle-credentials-reader
namespace: bookshop-cdc
rules:
- apiGroups: [""]
resources: ["secrets"]
resourceNames: ["bookshop-oracle-credentials"]
verbs: ["get"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: bookshop-oracle-credentials-reader
namespace: bookshop-cdc
subjects:
- kind: ServiceAccount
name: bookshop-connect-connect
namespace: bookshop-cdc
roleRef:
kind: Role
name: bookshop-oracle-credentials-reader
apiGroup: rbac.authorization.k8s.io
Reference: Strimzi — Loading configuration values from secrets or config maps and Debezium — Creating secrets for the database
The values are the lab credentials used throughout this section. In a real cluster the secret is created from your
secret store (an external secrets operator, sealed secrets or the CI system), never from a file in Git. The Secret
object itself and the ways of populating it are covered in Secrets, and roles and
bindings in Authentication, Authorization and RBAC.
The keys use upper-case environment-variable style names on purpose: the Debezium Server resource later on this page
imports the same secret as environment variables.
The Kafka Connect cluster with the Debezium plug-ins
The KafkaConnect resource below creates two Connect workers and builds their image. In the build section, Strimzi
downloads each listed artifact, verifies its SHA-512 checksum, adds it under the plug-in path of the Strimzi Kafka base
image, and pushes the result to the registry in build.output. A change to the plug-in list or the base image triggers a
new build and a rolling restart of the workers. On Kubernetes Strimzi uses Buildah for the build (the
UseConnectBuildWithBuildah feature gate became GA in Strimzi 1.3.0), and on OpenShift it uses an OpenShift build.
apiVersion: kafka.strimzi.io/v1
kind: KafkaConnect
metadata:
name: bookshop-connect
namespace: bookshop-cdc
annotations:
strimzi.io/use-connector-resources: "true"
spec:
version: 4.3.2
replicas: 2
bootstrapServers: bookshop-kafka-kafka-bootstrap:9092
groupId: bookshop-connect
configStorageTopic: bookshop-connect-configs
offsetStorageTopic: bookshop-connect-offsets
statusStorageTopic: bookshop-connect-status
config:
config.storage.replication.factor: 3
offset.storage.replication.factor: 3
status.storage.replication.factor: 3
config.providers: secrets
config.providers.secrets.class: io.strimzi.kafka.KubernetesSecretConfigProvider
key.converter: org.apache.kafka.connect.json.JsonConverter
value.converter: org.apache.kafka.connect.json.JsonConverter
key.converter.schemas.enable: true
value.converter.schemas.enable: true
resources:
requests:
cpu: "1"
memory: 4Gi
limits:
memory: 4Gi
jvmOptions:
"-Xms": 2g
"-Xmx": 3g
logging:
type: inline
loggers:
rootLogger.level: INFO
logger.debezium.name: io.debezium
logger.debezium.level: INFO
build:
output:
type: docker
image: registry.example.com/bookshop/bookshop-connect:3.7.1.Final
pushSecret: bookshop-registry-credentials
plugins:
- name: debezium-connector-oracle
artifacts:
- type: tgz
url: https://repo1.maven.org/maven2/io/debezium/debezium-connector-oracle/3.7.1.Final/debezium-connector-oracle-3.7.1.Final-plugin.tar.gz
sha512sum: 5788ec1b3b32c87327c8d289e31056db43103d29b9f0c1eba5b04391dc01a977c68351be5979ef1e94d195e0faba3935058d80250bbe36f20e38ce10f3593a5c
- name: debezium-connector-jdbc
artifacts:
- type: tgz
url: https://repo1.maven.org/maven2/io/debezium/debezium-connector-jdbc/3.7.1.Final/debezium-connector-jdbc-3.7.1.Final-plugin.tar.gz
sha512sum: c8520f33a2176a55db677a164c3b77353242a422937f7056e0d53a85a9f078328a9a2ce62c6f803c447ae2b978df2a2d0af02792b0e27f7f751222c1e62e63fb
Reference: Strimzi — Building Kafka Connect images with connector plugins and Debezium — Creating a Kafka Connect cluster
What each part does, and what to check:
-
strimzi.io/use-connector-resources: "true"makes the operator manage connectors fromKafkaConnectorresources. With it, the operator also reverts any connector created or changed withcurlagainst the REST API, so pick one method per Connect cluster. The rest of this section showscurlcommands for the Docker labs. On Kubernetes, put the same configuration in aKafkaConnector. -
The internal topics get their names from
groupIdand the three...StorageTopicfields. Every Connect cluster that shares the Kafka cluster needs its own group ID and its own three topics. The offsets topic holds the position ofbookshop-oracle-sourcein the Oracle redo stream, so treat it like data, not like a cache. -
The converters are set to JSON with schemas, which is the same default as the Debezium Connect image. For Avro with Apicurio Registry, add the converter artifacts as a third plug-in and change these properties as described in Serialization & Schema Registries.
-
Memory. The Oracle connector buffers every open transaction in the worker heap with the default
log.mining.buffer.type=memory. Size the heap for the largest legacy batch job, keep the memory limit equal to the request so the pod is not evicted first under node pressure, and leave the gap between-Xmxand the limit for metaspace, threads and direct buffers. See Resource Management. -
The Oracle JDBC driver. The Debezium Oracle documentation says that licensing prevents Debezium from including the Oracle JDBC driver in the connector archive, and asks you to add
ojdbc11.jaryourself. The 3.7.1.Final plug-in archive on Maven Central does containojdbc11-23.26.1.0.0.jarandorai18n-23.26.1.0.0.jarin itsdebezium-connector-oracle/directory (listed on 2026-11-09), and so does the JDBC sink archive. With these two artifacts the image therefore has the driver in each plug-in’s own class loader, and no third artifact is needed. Do not add a secondojdbc11JAR to the same plug-in, because two driver versions in one class loader lead toClassCastExceptionor a driver chosen at random. If a later Debezium release drops the bundled driver, addcom.oracle.database.jdbc:ojdbc11as atype: mavenartifact of thedebezium-connector-oracleplug-in. The full discussion is in Installing Debezium. -
Checksums. The
sha512sumvalues are the ones Maven Central publishes next to each 3.7.1.Final archive (.tar.gz.sha512). Strimzi does not scan downloaded artifacts, so a checksum is your only guarantee that the image contains what you reviewed. Update the URL and the checksum together when you upgrade Debezium. -
The registry.
registry.example.com/bookshop/bookshop-connectand thebookshop-registry-credentialspush secret (akubernetes.io/dockerconfigjsonsecret) stand for your own registry. Strimzi pulls the built image by digest, so the tag can be reused safely.
Instead of the build section you can build the image yourself (FROM quay.io/strimzi/kafka:1.3.1-kafka-4.3.2, then
copy the extracted plug-ins into /opt/kafka/plugins/) and set spec.image. On clusters with the Kubernetes image
volume feature, Strimzi can also mount plug-ins packaged as OCI images through spec.plugins with type: image
artifacts. Either way the rule about a single ojdbc11 per plug-in stays the same.
Apply the resource and wait for the build and the rollout:
kubectl apply -n bookshop-cdc -f oracle-service.yaml -f bookshop-oracle-credentials.yaml -f bookshop-connect.yaml
kubectl wait kafkaconnect/bookshop-connect --for=condition=Ready --timeout=900s -n bookshop-cdc
# The REST API is available inside the cluster on the <name>-connect-api service
kubectl -n bookshop-cdc port-forward service/bookshop-connect-connect-api 8083:8083 &
curl -s http://localhost:8083/connector-plugins | jq -r '.[].class' | grep -E 'OracleConnector|JdbcSinkConnector'
# io.debezium.connector.jdbc.JdbcSinkConnector
# io.debezium.connector.oracle.OracleConnector
If the condition stays NotReady, kubectl describe kafkaconnect bookshop-connect -n bookshop-cdc shows whether the
build failed (a wrong checksum, a registry that refuses the push) or the workers cannot reach Kafka. The build runs in a
pod named bookshop-connect-connect-build, whose log shows the download and push steps.
The bookshop-oracle-source connector as a KafkaConnector
The connector resource carries the same properties as bookshop-oracle-source.json in
Oracle Connector, with three differences: the user and password are
provider placeholders, name, connector.class and tasks.max move to the resource itself, and the bootstrap servers
point at the Strimzi service.
apiVersion: kafka.strimzi.io/v1
kind: KafkaConnector
metadata:
name: bookshop-oracle-source
namespace: bookshop-cdc
labels:
strimzi.io/cluster: bookshop-connect
spec:
class: io.debezium.connector.oracle.OracleConnector
tasksMax: 1
state: running
autoRestart:
enabled: true
maxRestarts: 10
config:
database.hostname: oracle
database.port: "1521"
database.user: ${secrets:bookshop-cdc/bookshop-oracle-credentials:ORACLE_USER}
database.password: ${secrets:bookshop-cdc/bookshop-oracle-credentials:ORACLE_PASSWORD}
database.dbname: FREE
database.pdb.name: FREEPDB1
topic.prefix: legacy
database.connection.adapter: logminer
log.mining.strategy: hybrid
log.mining.query.filter.mode: in
log.mining.buffer.type: memory
lob.enabled: "false"
table.include.list: BOOKSHOP.BOOK,BOOKSHOP.AUTHOR,BOOKSHOP.CUSTOMER,BOOKSHOP.ORDERS,BOOKSHOP.ORDER_LINE,BOOKSHOP.SUPPLIER_CATALOGUE,BOOKSHOP.DEBEZIUM_HEARTBEAT
snapshot.mode: initial
snapshot.locking.mode: shared
decimal.handling.mode: string
include.schema.changes: "true"
provide.transaction.metadata: "true"
schema.history.internal.kafka.bootstrap.servers: bookshop-kafka-kafka-bootstrap:9092
schema.history.internal.kafka.topic: legacy.schema-history
schema.history.internal.store.only.captured.tables.ddl: "false"
signal.enabled.channels: source,kafka
signal.data.collection: FREEPDB1.BOOKSHOP.DEBEZIUM_SIGNAL
signal.kafka.topic: legacy.signals
signal.kafka.bootstrap.servers: bookshop-kafka-kafka-bootstrap:9092
notification.enabled.channels: sink,log
notification.sink.topic.name: legacy.notifications
heartbeat.interval.ms: "10000"
heartbeat.action.query: UPDATE BOOKSHOP.DEBEZIUM_HEARTBEAT SET LAST_BEAT = SYSTIMESTAMP WHERE ID = 1
topic.creation.default.replication.factor: "3"
topic.creation.default.partitions: "1"
topic.creation.default.cleanup.policy: delete
topic.creation.default.retention.ms: "1209600000"
Reference: Debezium — Oracle connector properties, Debezium — Creating a Debezium connector and Strimzi — Deploying KafkaConnector resources
Notes on this resource:
-
Placeholders. The format is
${secrets:<namespace>/<secret>:<key>}, wheresecretsis the alias declared byconfig.providersin theKafkaConnectresource. The value is resolved inside the worker.GET .../configreturns the placeholder, not the password. In a listing block YAML does not touch${...}, so no quoting is needed. -
The signal table name.
signal.data.collectionuses the PDB formFREEPDB1.BOOKSHOP.DEBEZIUM_SIGNAL. The official property description asks for the root database name instead, but Debezium 3.7.1 silently ignored that form in the worked example, and the PDB form worked. Alogsignal after the first deployment confirms the channel, as shown in The signal table name in a PDB. -
Numbers and transactions.
decimal.handling.mode: stringdelivers every OracleNUMBER, keys included, as a JSON string ("BOOK_ID":"7"), which is why the mirror sink’s JDBC URL ends in?stringtype=unspecified.provide.transaction.metadatapublishes thelegacy.transactiontopic that the order projector reads. The schema history keeps the DDL of all tables (store.only.captured.tables.ddl: "false", the default), which the cut-over and a rollback rely on. -
Topic creation. The
topic.creation.default.*properties set the replication factor, partition count and retention of the data topics that Connect creates. One partition per table keeps the change events of a table in commit order. Fourteen days of retention gives the downstream consumers time to recover. Compacted mirror topics and per-table groups are explained in Topic auto-creation. -
state. Settingspec.state: stopped(orpaused) and applying the resource is the Kubernetes way to stop the connector, for example before a legacy maintenance window or before changing offsets. Since Strimzi 1.2.0 a connector that is created withstoppedorpausedstarts directly in that state, which lets you deploy the resource first and start the capture at an agreed moment. -
autoRestart. A Debezium task fails on errors it cannot retry, for exampleORA-01291: missing logfilewhen the archive log for its offset is gone. Strimzi restarts failed connectors and tasks with an increasing back-off (0, 2, 6, 12, 20 and more minutes, capped at 60).maxRestarts: 10stops the loop after about five hours, so that a permanent problem surfaces as aFAILEDconnector and an alert instead of an endless restart loop. A restart never fixes a missing archive log. See Troubleshooting & Failure Recovery.
Apply and check the status that the operator copies into the resource:
kubectl apply -n bookshop-cdc -f bookshop-topics.yaml -f bookshop-oracle-source.yaml
kubectl get kafkaconnector bookshop-oracle-source -n bookshop-cdc
# NAME CLUSTER CONNECTOR CLASS MAX TASKS READY
# bookshop-oracle-source bookshop-connect io.debezium.connector.oracle.OracleConnector 1 True
kubectl get kafkaconnector bookshop-oracle-source -n bookshop-cdc \
-o jsonpath='{.status.connectorStatus.connector.state}{" "}{.status.connectorStatus.tasks[0].state}{"\n"}'
# RUNNING RUNNING
# Follow the snapshot in the worker log (the task runs on one of the two pods)
kubectl logs -n bookshop-cdc -l strimzi.io/cluster=bookshop-connect -f | grep -i snapshot
Reference: Strimzi — Deploying KafkaConnector resources
The status.connectorStatus block is the response of GET /connectors/bookshop-oracle-source/status, refreshed at each
reconciliation. When a task fails, its trace field contains the Java stack trace, which is usually faster to read than
the worker log. To restart by hand, annotate the resource with strimzi.io/restart=true (connector) or
strimzi.io/restart-task=0 (task 0). The operator removes the annotation once the restart is done.
Adding the JDBC sink
The bookshop-pg-mirror-sink that fills the PostgreSQL legacy_* mirror tables runs in the same Connect cluster as a
second KafkaConnector. Its configuration is in JDBC Sink Connector.
Translate it the same way: class: io.debezium.connector.jdbc.JdbcSinkConnector, tasksMax, and the bookshop_mirror
PostgreSQL password in a second secret, read through the same provider (extend the Role with the new secret name).
Because both connectors share the workers, a heavy sink can slow the source down. If the mirror sink needs many tasks,
give it its own KafkaConnect resource with its own group ID and topics.
The Debezium Operator and DebeziumServer
The Debezium Operator manages Debezium Server, the standalone runtime that runs one source connector and writes to one
sink without Kafka Connect (see Debezium Server). Each DebeziumServer
resource becomes a deployment with one pod, a config map with the generated application.properties, and optionally a
service for its API and a persistent volume for file-based offsets. The operator needs Java 21 based images, which the
quay.io/debezium/server:3.7.1.Final image is.
Installing the operator
The operator is published in the Debezium Helm chart repository and, with the same versions, as an OCI chart on
quay.io. Chart versions follow the Debezium version without the .Final suffix, so 3.7.1.Final is chart 3.7.1.
# Either from the chart repository ...
helm repo add debezium https://charts.debezium.io
helm repo update
helm install debezium-operator debezium/debezium-operator --version 3.7.1 -n bookshop-cdc
# ... or from the OCI registry
helm install debezium-operator oci://quay.io/debezium-charts/debezium-operator --version 3.7.1 -n bookshop-cdc
kubectl get pods -n bookshop-cdc --watch
kubectl logs deployment/debezium-operator -n bookshop-cdc -f
Reference: Debezium Operator — Deploy the operator using Helm and Debezium Operator — Tracking the progress of the deployment
The official page shows --version 3.2.0-final, a naming scheme that older chart versions used. The chart index at
https://charts.debezium.io/index.yaml lists 3.7.1 (created on 2026-11-06) and 3.8.0-alpha1, and the OCI repository
quay.io/debezium-charts/debezium-operator has the same tags. Do not install the 3.8.0-alpha1 chart for a migration. It is
a preview of the upcoming 3.8 release. The operator is also available from OperatorHub for clusters that use the Operator
Lifecycle Manager.
The Oracle JDBC driver in the server image
The Debezium Server documentation asks you to copy the Oracle JDBC driver to the server’s lib directory before you use
the Oracle connector. The quay.io/debezium/server:3.7.1.Final image already does this: listing /debezium/lib in the
image on 2026-11-09 showed ojdbc11-23.26.0.0.0.jar, ojdbc17-23.26.0.0.0.jar and orai18n-23.26.0.0.0.jar, next to
the Oracle connector itself. The image runs as the user jboss (UID 185) with /debezium as its working directory.
docker run --rm --entrypoint sh quay.io/debezium/server:3.7.1.Final -c 'id; ls /debezium/lib | grep -E "ojdbc|orai18n"'
# uid=185(jboss) gid=0(root) groups=0(root),185(jboss)
# ojdbc11-23.26.0.0.0.jar
# ojdbc17-23.26.0.0.0.jar
# orai18n-23.26.0.0.0.jar
Reference: Debezium Server — Start the server (Oracle JDBC driver in the lib directory) and Debezium — Obtaining the Oracle JDBC driver
So use the official image for the logminer adapter, and do not add another ojdbc11 JAR to /debezium/lib: a second
driver version on the same class path makes the choice of driver classes unpredictable. Build a derived image only for
what the image does not contain, such as the XStream API (xstreams.jar) for the xstream adapter, and run the same
ls check against every new Debezium version before you upgrade.
The DebeziumServer resource for the Oracle source
The resource below runs the same Oracle capture as bookshop-oracle-source, writing to Kafka through the Debezium Server
Kafka sink. The credentials come from the same secret, this time imported as environment variables with
runtime.environment.from and referenced as ${ORACLE_USER} and ${ORACLE_PASSWORD}, which Debezium Server’s
Quarkus configuration resolves from the environment.
apiVersion: debezium.io/v1alpha1
kind: DebeziumServer
metadata:
name: bookshop-oracle-server
namespace: bookshop-cdc
spec:
image: quay.io/debezium/server:3.7.1.Final
quarkus:
config:
log.level: INFO
log.console.json: false
runtime:
environment:
from:
- secretRef:
name: bookshop-oracle-credentials
templates:
container:
resources:
requests:
cpu: "1"
memory: 3Gi
limits:
memory: 3Gi
metrics:
jmxExporter:
enabled: true
format:
key:
type: json
value:
type: json
sink:
type: kafka
config:
producer.bootstrap.servers: bookshop-kafka-kafka-bootstrap:9092
producer.key.serializer: org.apache.kafka.common.serialization.StringSerializer
producer.value.serializer: org.apache.kafka.common.serialization.StringSerializer
source:
class: io.debezium.connector.oracle.OracleConnector
offset:
kafka:
bootstrapServers: bookshop-kafka-kafka-bootstrap:9092
topic: bookshop-oracle-server-offsets
partitions: 1
replicationFactor: 3
schemaHistory:
kafka:
bootstrapServers: bookshop-kafka-kafka-bootstrap:9092
topic: legacy.schema-history
partitions: 1
replicationFactor: 3
config:
database.hostname: oracle
database.port: "1521"
database.user: ${ORACLE_USER}
database.password: ${ORACLE_PASSWORD}
database.dbname: FREE
database.pdb.name: FREEPDB1
topic.prefix: legacy
database.connection.adapter: logminer
log.mining.strategy: hybrid
log.mining.query.filter.mode: in
table.include.list: BOOKSHOP.BOOK,BOOKSHOP.AUTHOR,BOOKSHOP.CUSTOMER,BOOKSHOP.ORDERS,BOOKSHOP.ORDER_LINE,BOOKSHOP.SUPPLIER_CATALOGUE,BOOKSHOP.DEBEZIUM_HEARTBEAT
snapshot.mode: initial
decimal.handling.mode: string
provide.transaction.metadata: "true"
signal.enabled.channels: source
signal.data.collection: FREEPDB1.BOOKSHOP.DEBEZIUM_SIGNAL
heartbeat.interval.ms: "10000"
heartbeat.action.query: UPDATE BOOKSHOP.DEBEZIUM_HEARTBEAT SET LAST_BEAT = SYSTIMESTAMP WHERE ID = 1
Reference: Debezium Operator — DebeziumServer custom resource, Debezium Operator — Source schema reference and Debezium Operator — Offset schema reference
How the operator turns this resource into Debezium Server configuration, as implemented in the 3.7.1 operator source:
-
spec.source.classbecomesdebezium.source.connector.class, and every key underspec.source.configbecomesdebezium.source.<key>. The official schema table names the fieldsourceClass, but the Java model serialises it asclass(the name the examples use), so writeclass. -
spec.source.offset.kafkaconfigures the Kafka offset store (bootstrapServers,topic,partitions,replicationFactor, andpropsfor extra Kafka client properties), andspec.source.schemaHistory.kafkaconfigures the Kafka schema history in the same way. Each store is a nested object named after its type (file,memory,redis,kafka,jdbc,configMapor a customstore). The "complete example" on the official page writestype: kafkaplus aconfigmap instead, which does not match the schema tables, so follow the tables. -
spec.sink.typebecomesdebezium.sink.type, andspec.sink.configkeys becomedebezium.sink.<type>.<key>, henceproducer.bootstrap.serversfor the Kafka sink. -
Keys under
spec.quarkus.configare prefixed withquarkus., so writelog.level, notquarkus.log.level. The complete example on the official page uses the fullquarkus.log.level, which would end up asquarkus.quarkus.log.level. -
runtime.environment.fromis a list of standard KubernetesEnvFromSourceobjects, sosecretRefandconfigMapRefwork as in a pod spec. Each key of the secret becomes an environment variable of the same name. -
runtime.metrics.jmxExporter.enabledstarts the Prometheus JMX exporter in the server pod, andconfigFromcan point to a config map key with your own rules (see Monitoring, Logging & Tracing).
The schema history topic is legacy.schema-history, the same topic as the Kafka Connect deployment, because this
resource is an alternative to bookshop-oracle-source, not an addition. If you migrate an existing pipeline from Kafka
Connect to Debezium Server, the offsets do not move automatically: the server keeps them in
bookshop-oracle-server-offsets under its own key. Start the server with snapshot.mode set for the situation (a new
snapshot, or no_data plus an incremental snapshot) after stopping the Connect connector, as explained in
Offsets, Restarts & Exactly-Once.
kubectl apply -n bookshop-cdc -f bookshop-oracle-server.yaml
kubectl get debeziumserver bookshop-oracle-server -n bookshop-cdc -o jsonpath='{.status.conditions}{"\n"}'
kubectl logs -n bookshop-cdc deployment/bookshop-oracle-server -f
The Debezium Management Platform
The Debezium Management Platform is labelled incubating in the official documentation, so its options may change between
releases. It provides a data-centric view of Debezium: you define connections (how to reach a database or a sink),
sources, destinations and transforms once, and combine them into pipelines. Each pipeline is deployed as a
DebeziumServer resource through the Debezium Operator. Kubernetes is the only supported environment. The platform has
two components: the conductor (the back end, with an API server and a watcher that talks to the operator) and the
stage (the web UI).
Installing the platform with Helm
The chart needs a domain name for its ingress and a PostgreSQL database for its own state. For a trial,
database.enabled=true deploys a PostgreSQL pod with the chart. For a migration that runs for months, point it at a
managed or operator-run database instead, with the credentials in an existing secret that has the keys username and
password.
domain:
name: debezium.bookshop.example.com
ingress:
enabled: true
tls:
enabled: true
secretName: debezium-platform-tls
database:
enabled: false
name: debezium_platform
host: platform-postgres.bookshop-cdc.svc
auth:
existingSecret: debezium-platform-db
offset:
reusePlatformDatabase: true
schemaHistory:
reusePlatformDatabase: true
debezium-operator:
enabled: true
Reference: Debezium Management Platform — Installation
kubectl -n bookshop-cdc create secret generic debezium-platform-db \
--from-literal=username=debezium_platform --from-literal=password='change-me'
# From the chart repository ...
helm install debezium-platform debezium/debezium-platform --version 3.7.1 \
-n bookshop-cdc -f platform-values.yaml
# ... or from the OCI registry
helm install debezium-platform oci://quay.io/debezium-charts/debezium-platform --version 3.7.1 \
-n bookshop-cdc -f platform-values.yaml
Reference: Debezium Management Platform — Installation
The chart installs the Debezium Operator as a dependency (debezium-operator.enabled=true by default). If you already
installed the operator in the namespace as shown above, set it to false. With the default values, pipelines store their
offsets and schema history in the platform database (offset.reusePlatformDatabase and
schemaHistory.reusePlatformDatabase). Back that database up as carefully as the Kafka Connect offsets topic, because it
holds the position of every pipeline in its source.
Using the platform for the Bookshop source
In the UI, create an Oracle connection to oracle:1521, then a source. The source editor has a Smart Editor that
accepts the JSON you would POST to Kafka Connect: paste bookshop-oracle-source.json from the Oracle connector page and
use Auto Format to convert it into the platform’s format, then remove the clear-text password and use the connection’s
credentials. Create a Kafka destination for bookshop-kafka-kafka-bootstrap:9092, optional transforms, and a pipeline that
joins them. Enable signaling on the source with the signal table name and the DDL that the dialog shows, and the
Pipeline actions tab then sends signals such as an incremental snapshot without SQL access to Oracle. Pipeline logs and,
when the OpenTelemetry monitoring stack is enabled, built-in dashboards (source lag, time since the last event, queue
usage and snapshot progress) are available per pipeline.
Keep the limits in mind for a migration:
-
Editing a shared source, destination or transform restarts every pipeline that uses it.
-
Pipelines run on Debezium Server, so the Debezium JDBC sink and other Kafka Connect sinks are not available as destinations. The PostgreSQL mirror still needs a Kafka Connect cluster or an application consumer.
-
The platform is incubating. Pin the chart version, keep an export of each pipeline’s configuration outside the platform database, and test upgrades before applying them during the migration.
The Debezium CLI can manage platform objects from scripts (debezium source, destination, pipeline and so on). It is
described in Installing Debezium.
OpenShift notes
The Debezium OpenShift page follows the same steps with OpenShift tools, and the differences are small:
-
Install Strimzi (or the Red Hat build of Apache Kafka, Streams for Apache Kafka) from OperatorHub with a
Subscription, instead of Helm. The Debezium Operator is also listed in OperatorHub. -
Create the namespace with
oc new-project bookshop-cdc. -
In the
KafkaConnectbuild,output.type: imagestreampushes the image to an OpenShiftImageStream(image: bookshop-connect:3.7.1.Final), so no external registry and push secret are needed. Strimzi runs the build as an OpenShift build instead of Buildah. -
The restricted security context constraints run containers with an arbitrary user ID. The Strimzi and Debezium images support this. If you build your own images, make the plug-in and
libdirectories readable by the root group. -
Routes replace the ingress for the platform UI. Expose the Connect REST API only inside the cluster.
Reference: Debezium — Running on OpenShift and Strimzi — Build schema reference (DockerOutput and ImageStreamOutput)
Red Hat also ships a supported Debezium distribution. Its capabilities are summarised in Cloud Databases & Managed Kafka.
Operating the deployment during the migration
| Task | How on Kubernetes |
|---|---|
Stop capture for a legacy maintenance window |
|
Upgrade Debezium |
Change the plug-in URLs and checksums in the |
Upgrade Strimzi or Kafka |
Upgrade the Cluster Operator with Helm, then change |
Drain a node |
Two Connect replicas and a |
Rotate the Oracle password |
Update the secret, then restart the connector ( |
Inspect or change offsets |
|
Decommission after the cut-over |
Delete the |
What goes wrong
| Symptom | Cause and fix |
|---|---|
|
The manifest was copied from the Debezium page or written for Strimzi 0.x. Change to |
The |
Strimzi manages these options. Use |
The connector configuration shows |
The service account cannot read the secret (the |
Changes made with |
|
The build pod fails with a checksum mismatch |
The URL and the |
|
A custom image or a later archive lacks the driver. List the plug-in directory in a worker pod
( |
The connector fails to start with a schema history error after a namespace was recreated |
The |
A |
The key was written with the |
The Oracle connection times out from the cluster but works from a laptop |
Egress is blocked by a network policy or a firewall, or the |
Reference: Debezium — Running on Kubernetes and Strimzi — Loading configuration values from external sources
Debugging pods, events and probes in general is covered in Debugging and Troubleshooting.
References
The manifests on this page were derived from these sources and were not applied to a cluster. The checksums, the archive and image contents, the chart versions and the operator’s field mapping were checked on 2026-11-09.