Describe the bug
The kafka-provisioning Job hangs indefinitely after successfully applying topic changes.
The logs show that the apply process completes, but then the container enters an infinite loop waiting for user input that never comes in a non-interactive Kubernetes environment.
Logs:
sentry-kafka-provisioning-x94lb topicctl-provisioning time="2026-05-07 03:39:46" level=info msg="Checking leaders..."
sentry-kafka-provisioning-x94lb topicctl-provisioning time="2026-05-07 03:39:46" level=info msg="Apply completed successfully!"
sentry-kafka-provisioning-x94lb topicctl-provisioning OK to continue? (yes/no) OK to continue? (yes/no) ...
Root cause
The segmentio/topicctl binary (specifically v2.0.2) contains interactive prompts (e.g., OK to continue?) that wait for user input on stdin. Even with the --skip-confirm flag, some internal validation checks (like leader validation) still pause and wait for input. Since the Kubernetes Job runs non-interactively, the process blocks forever.
Current command in job-kafka-provisioning.yaml:
command:
- /bin/topicctl
- apply
- --skip-confirm
- --expand-env
- --cluster-config=/configs/cluster.yaml
- /configs/topics.yaml
Describe the bug
The
kafka-provisioningJob hangs indefinitely after successfully applying topic changes.The logs show that the apply process completes, but then the container enters an infinite loop waiting for user input that never comes in a non-interactive Kubernetes environment.
Logs:
Root cause
The
segmentio/topicctlbinary (specificallyv2.0.2) contains interactive prompts (e.g.,OK to continue?) that wait for user input onstdin. Even with the--skip-confirmflag, some internal validation checks (like leader validation) still pause and wait for input. Since the Kubernetes Job runs non-interactively, the process blocks forever.Current command in
job-kafka-provisioning.yaml: