Skip to content

listeners doesn't work in an ipv6 disabled cluster #11175

Closed
@LNJAD

Description

@LNJAD

kgateway version

v2.0.0

Kubernetes Version

v1.29.8+rke2r1

Describe the bug

I'm working in an rke2 cluster where we disabled completly ipv6
When trying to install kgateway and perform the simplest test by following the instructions with the sample-app, I encountered an error. After deploying a gateway, there is an issue related to the listeners.

Here is the log generated by the container:

[external/envoy/source/extensions/config_subscription/grpc/grpc_subscription_impl.cc:138] gRPC config for type.googleapis.com/envoy.config.listener.v3.Listener rejected: Error adding/updating listener(s) http: malformed IP address: ::

Additionally, here is an extract of the Envoy configuration dump:

"dynamic_listeners": [
    {
     "name": "http",
     "error_state": {
      "failed_configuration": {
       "@type": "type.googleapis.com/envoy.config.listener.v3.Listener",
       "name": "http",
       "address": {
        "socket_address": {
         "address": "::",
         "port_value": 8080,
         "ipv4_compat": true
        }
       },
       "filter_chains": [
        {
         "filters": [
          {
           "name": "envoy.filters.network.http_connection_manager",
           "typed_config": {
            "@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager",
            "stat_prefix": "http",
            "rds": {
             "config_source": {
              "ads": {},
              "resource_api_version": "V3"
             },
             "route_config_name": "http"
            },
            "http_filters": [
             {
              "name": "envoy.filters.http.router",
              "typed_config": {
               "@type": "type.googleapis.com/envoy.extensions.filters.http.router.v3.Router"
              }
             }
            ],
            "use_remote_address": true,
            "normalize_path": true,
            "merge_slashes": true
           }
          }
         ],
         "name": "http"
        }
       ]
      },
      "last_update_attempt": "2025-05-07T08:12:46.922Z",
      "details": "malformed IP address: ::"
     }
    }
]

Expected Behavior

I expected the gateway to be deployed successfully, with the listener properly configured and without any errors. The sample-app should work seamlessly when following the provided instructions.

Steps to reproduce the bug

  1. disable ipv6 on the kubernetes cluster on the kernel level
  2. install kgateway
  3. test kgateway with the sample-app

Additional Environment Detail

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions