Closed Vido closed 2 years ago
I found out the problem:
2022/09/02 04:21:52 KRAKEND ERROR: [BACKEND: kafka://my_favorite_topic][PubSub]%!(EXTRA string=kafka: client has run out of available brokers to talk to: dial tcp [172.28.0.3:9093](http://172.28.0.3:9093/): connect: connection refused)
2022/08/30 16:02:44 KRAKEND ERROR: [ENDPOINT: /v1/data] Post "kafka:///": unsupported protocol scheme "kafka"
Solution: add some heathcheck to kafka service
kafka:
image: 'bitnami/kafka:latest'
healthcheck:
test: ["CMD-SHELL", "kafka-topics.sh --bootstrap-server 127.0.0.1:9092 --topic my_favorite_topic --describe"]
interval: 5s
timeout: 5s
retries: 5
krakend:
image: devopsfaith/krakend:2.0.6
- "8080:8080"
depends_on:
kafka:
condition: service_healthy
Environment info:
Describe the bug
For some reason, krakend can't post to kafka
Your configuration file:
Please checkout my environment: https://github.com/Vido/krakend-kafka-poc
This repo has all you need to reproduce this error
I used different backend version, but I always get the same:
Commands used Please, check the repo link above
Expected behavior A clear and concise description of what you expected to happen.
Logs