Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad Gateway Error using nginx Ingress Controller #3847

Closed
4 tasks done
exaucae opened this issue May 19, 2023 · 2 comments
Closed
4 tasks done

Bad Gateway Error using nginx Ingress Controller #3847

exaucae opened this issue May 19, 2023 · 2 comments

Comments

@exaucae
Copy link

exaucae commented May 19, 2023

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running master-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

Kafka UI is not rendered. Host responds with 502 Error code.

Expected behavior

Kafka UI is rendered

Your installation details

  1. Kafka-UI version 0.7.0

# values.yaml
yamlApplicationConfig:
  kafka:
    clusters:
      - name: bazz
        bootstrapServers: kafka-headless:9092
ingress:
  enabled: true
  annotations:
    external-dns.alpha.kubernetes.io/hostname: kafka-ui.foo.bar
    nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
  host: kafka-ui.foo.bar
  ingressClassName: nginx
nodeSelector:
  role: runners

Steps to reproduce

  1. helm install your-release-name charts/kafka-ui -f values.yml --namespace kafka

  2. curl kafka-ui.foo.bar

<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>

Screenshots

No response

Logs

>kubectl get svc --namespace kafka
NAME             TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                      
kafka            ClusterIP   xxxxxx           <none>        9092/TCP                     
kafka-headless   ClusterIP   None             <none>        9092/TCP,9094/TCP,9093/TCP  
kafka-kafka-ui   ClusterIP   xxxxxx           <none>        80/TCP                      
>kubectl get ingress --namespace kafka
NAME             CLASS   HOSTS             ADDRESS  PORTS                                                      
kafka-kafka-ui   nginx   kafka-ui.foo.bar  xxx      80      
>kubectl get pods --namespace kafka
NAME                              READY   STATUS    RESTARTS   
kafka-0                           1/1     Running   0          
kafka-kafka-ui-86d9dfc595-vggzp   1/1     Running   0          
>kubectl logs kafka-kafka-ui-86d9dfc595-vggzp --namespace kafka | tail
Kubeconfig user entry is using deprecated API version client.authentication.k8s.io/v1alpha1. Run 'aws eks update-kubeconfig' to update.
2023-05-19 15:14:44,704 DEBUG [parallel-2] c.p.k.u.s.ClustersStatisticsScheduler: Start getting metrics for kafkaCluster: bazz
2023-05-19 15:14:44,710 DEBUG [parallel-1] c.p.k.u.s.ClustersStatisticsScheduler: Metrics updated for cluster: bazz
2023-05-19 15:15:14,704 DEBUG [parallel-2] c.p.k.u.s.ClustersStatisticsScheduler: Start getting metrics for kafkaCluster: bazz
2023-05-19 15:15:14,711 DEBUG [parallel-1] c.p.k.u.s.ClustersStatisticsScheduler: Metrics updated for cluster: bazz
2023-05-19 15:15:44,704 DEBUG [parallel-2] c.p.k.u.s.ClustersStatisticsScheduler: Start getting metrics for kafkaCluster: bazz
2023-05-19 15:15:44,710 DEBUG [parallel-1] c.p.k.u.s.ClustersStatisticsScheduler: Metrics updated for cluster: gamma-events
2023-05-19 15:16:14,704 DEBUG [parallel-2] c.p.k.u.s.ClustersStatisticsScheduler: Start getting metrics for kafkaCluster: bazz
2023-05-19 15:16:14,711 DEBUG [parallel-1] c.p.k.u.s.ClustersStatisticsScheduler: Metrics updated for cluster: bazz
2023-05-19 15:16:44,704 DEBUG [parallel-2] c.p.k.u.s.ClustersStatisticsScheduler: Start getting metrics for kafkaCluster: bazz
2023-05-19 15:16:44,710 DEBUG [parallel-1] c.p.k.u.s.ClustersStatisticsScheduler: Metrics updated for cluster: bazz

Additional context

All cluster resources are up and running fine. From pod to ingress. And Bootstrap servers were successfully reached.

No port mapping was overridden, all defaults are in use. I postulate it shouldn't be the issue root cause. a forwarding from ingress -> service -> pod look on point.

No error logged by the container when hitting the endpoint kafka-ui.foo.bar .

@exaucae exaucae added scope/k8s K8s or helm stuff (really annoying) status/triage Issues pending maintainers triage labels May 19, 2023
@github-actions
Copy link

Hello there exaucae! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

@Haarolean
Copy link
Contributor

Not an issue, converting to dicussion

@provectus provectus locked and limited conversation to collaborators May 19, 2023
@Haarolean Haarolean converted this issue into discussion #3848 May 19, 2023
@Haarolean Haarolean removed status/triage Issues pending maintainers triage scope/k8s K8s or helm stuff (really annoying) labels May 19, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants