My Kafka bootstrap server in Kubernetes is at hm-kafka-kafka-bootstrap.hm-kafka.svc:9092.
I am trying to deploy AKHQ in my Kubernetes cluster. Here are my steps:
helm upgrade \
akhq \
akhq \
--install \
--repo=https://akhq.io \
--namespace=hm-akhq \
--create-namespace \
--values=my-values.yaml
my-values.yaml
akhq:
connections:
hm-kafka:
properties:
bootstrap.servers: hm-kafka-kafka-bootstrap.hm-kafka.svc:9092
I created this my-values.yaml is based on this. However, I am sure I use it correctly.
Then I port forwarded by kubectl port-forward service/akhq --namespace=hm-akhq 8080:80
However, when I open localhost:8080, the page shows
{
"message": "Couldn't find any clusters on your configuration file, please ensure that the configuration file is loaded correctly",
"_links": {
"self": {
"href": "/",
"templated": false
}
}
}
I have read these tickets with same error
- https://github.com/tchiotludo/akhq/issues/63
- https://github.com/tchiotludo/akhq/issues/106
- https://github.com/tchiotludo/akhq/issues/604
But I didn't find any solution inside to solve my issue. Any guide would be appreciate. Thanks!
Thanks @OneCrckerteer help! The comments inside this section of values.yaml and
akhq.connectionsundersecretsoriginally confused me:akhq.connectionsshould be underconfigurationinstead ofsecrets. And here is the final working version:my-values.yaml