debezium / debezium/dbz

Configuring the REST_HOST_NAME and ADVERTISED_HOST_NAME environment variables does not take effect [DBZ-9350]

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
migrated-from-jira type/bug
Dominant language
HTML
Stars
6
Forks
8
Avg merge
2d 19h
Merged PRs (30d)
1

Description

Migrated from [DBZ-9350](https://issues.redhat.com/browse/DBZ-9350)

In order to make your issue reports as actionable as possible, please provide the following information, depending on the issue type.
h1. Bug report

 I deployed Debezium according to this link:
[https://debezium.io/documentation/reference/3.0/operations/kubernetes.html]

I'm having a problem. I need to be in the debezium-connect-cluster-connect pod to get the connector status. I created a service of type NodePort, but I'm failing to get the connector status.

I checked the Debezium configuration and found that the following settings might be limiting:
[rest.advertised.host.name|http://rest.advertised.host.name/] = 10.233.111.78
rest.advertised.port = 8083

 

I want to change [rest.advertised.host.name|http://rest.advertised.host.name/] to 10.168.2.187 (the IP address of the k8s node) and rest.advertised.port to 32003 (the node port). 

I tried changing the configuration in the image, but it didn't work.

!image-2025-08-12-19-00-55-404.png!

!image-2025-08-12-19-01-31-180.png!

!image-2025-08-12-19-02-12-797.png!
h2. What Debezium connector do you use and what version?

3.0.8.Final
h2. What is the connector configuration?

apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaConnect
metadata:
  name: debezium-connect-cluster
  namespace: qifu-develop
  annotations:
    strimzi.io/use-connector-resources: "true"
spec:
  version: 3.2.0
  image: harbor.qifu.com/qifu-develop/debezium-connect:3.0.8.Final_bug_fix
  replicas: 1
  bootstrapServers: debezium-cluster-kafka-bootstrap:9092
  config:
    config.providers: secrets
    config.providers.secrets.class: io.strimzi.kafka.KubernetesSecretConfigProvider
    group.id: connect-cluster
    offset.storage.topic: connect-offsets
    config.storage.topic: connect-configs
    status.storage.topic: connect-status
    config.storage.replication.factor: -1
    offset.storage.replication.factor: -1
    status.storage.replication.factor: -1
    REST_HOST_NAME: 10.168.2.187
    ADVERTISED_HOST_NAME: 10.168.2.187
    ADVERTISED_HOST_PORT: 32003
h2. What behavior do you expect?

Debezium connector configuration file:

rest.advertised.host.name = 10.168.2.187
rest.advertised.port = 32003
h2. What behavior do you see?

Debezium connector configuration file:

rest.advertised.host.name=10.233.111.78
rest.advertised.port=8083
h2. Do you see the same behaviour using the latest released Debezium version?

(Ideally, also verify with latest Alpha/Beta/CR version)

yes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.