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

Voyager unable to update haproxy.cfg - must have at most 1048576 characters #1553

Open
ronald opened this issue Oct 22, 2020 · 1 comment
Open

Comments

@ronald
Copy link

ronald commented Oct 22, 2020

We're currently use appscode/voyager:v11.0.1.

When updating ConfigMap with haproxy.cfg Voyager Operator reports

Failed to process key default/ingress. Reason: ConfigMap "voyager-ingress" is invalid: []: Too long: must have at most 1048576 characters

I'll check if Custom Templates can help reduce haproxy.cfg size.

Is there any other workaround?

Thank you

@ronald
Copy link
Author

ronald commented Oct 22, 2020

We have 1.460 configured backends in ingress - 99% look like this:

  - host: example.com
    http:
      paths:
      - backend:
          headerRules:
          - X-Forwarded-Host %[req.hdr(Host)]
          - X-Forwarded-Port %[dst_port]
          - X-Forwarded-Proto https if { ssl_fc }
          serviceName: our-service
          servicePort: 80
        path: /

Voyager generated haproxy.cfg with 2.917 backends - 99 % like this:

backend our-service.default:80-3108123b8583519de78f980b53f3d5c9                                                                                                                                                    
        http-request set-header X-Forwarded-Host %[req.hdr(Host)]                                                                                                                                                  
        http-request set-header X-Forwarded-Port %[dst_port]                                                                                                                                                       
        http-request set-header X-Forwarded-Proto https if { ssl_fc }                                                                                                                                              
        server pod-our-service-deployment-7d8b65d887-kfrpw 10.12.22.52:80     

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

1 participant