Skip to content

help request: how set ingress apisix support proxy_protocol #12793

@scoot1128

Description

@scoot1128

Description

Using an openstack loadbalancer attempting to capture client_ip. I am unsuccessful enabling the proxy_protocol section in the values file. Cannot find a key in the default values to get this accomplished.

I found previous help requests on the same topic but the solution was for 3.7 version of apisix the keys listed in that version's value file no longer exists. I have attempted the following as an override but the the config_map still have the proxy_protocol commented out.

  apisix:
    fullCustomConfig:
      enabled: true
      config:
        apisix:
          node_listen:
            - 9080
          enable_heartbeat: true
          enable_admin: true
          enable_admin_cors: true
          enable_debug: false
          enable_control: true
          control:
            ip: 127.0.0.1
            port: 9090
          enable_dev_mode: false
          enable_reuseport: true
          enable_ipv6: true
          enable_http2: true
          enable_server_tokens: true

          # PROXY PROTOCOL ENABLED - This is the key section
          proxy_protocol:
            listen_http_port: 9181
            listen_https_port: 9182
            enable_tcp_pp: true
            enable_tcp_pp_to_upstream: false

Environment

  • APISIX version (run apisix version):
    NAME CHART VERSION APP VERSION DESCRIPTION
    apisix/apisix 2.12.4 3.14.1 A Helm chart for Apache APISIX v3
  • Operating system (run uname -a):
    openshift 4.17 cluster
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionlabel for questions asked by users

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions