Skip to content
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

admin API by default listening also on IPv6 not working in IPv4 only GKE cluster #1073

Open
dandynaufaldi opened this issue May 28, 2024 · 2 comments

Comments

@dandynaufaldi
Copy link

Per the changes done on #986 admin API now by default will listen on both 0.0.0.0 (IPv4) and [::] (IPv6)

This default settings doesn't work well with cluster running IPv4 only stack. We got following error from the kong proxy container

proxy nginx: [emerg] bind() to [::1]:8444 failed (99: Cannot assign requested address)

helm values

admin:
  enabled: false

*basically the same with the default values

cluster and kong

Cluster

  • k8s: 1.29.1
  • network stack type: IPv4

Kong

  • chart version: 2.38.0
@dandynaufaldi
Copy link
Author

btw if anyone stumbled upon similar error (proxy nginx: [emerg] bind() to [::1]:8444 failed (99: Cannot assign requested address))

you can add following env variable in the Helm values to override the Kong Admin listen config so that it won't try to bind on IPv6 address and use the IPv4 only

env:
  ADMIN_LISTEN: 0.0.0.0:8444 http2 ssl

@mpdafa
Copy link

mpdafa commented Aug 19, 2024

Finally, thanks mas! several hours looking for the solution, even gpt wont help haha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants