-
Notifications
You must be signed in to change notification settings - Fork 23
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
enable Use Offloading (plugins haproxy-declarative, haproxy-ingress-proxy) #19
Comments
I don't think I currently support that feature. It probably would not be too difficult to add and would likely need to be specified as an annotation on the ingress. |
What else do you need to set besides that checkbox? |
I've implemented something like this (annotation on per-ingress basis):
This is based off of structure that looks like this for the whole entry (note the important things are automatically filled in for you, ie: the acls, etc):
|
Released in |
Better late than never they say ;) |
I was trying to add a new ACL to one of the applications. This method did not work for me. I'm guessing only use_backend action is allowed?
|
Ah! Right now I actually overwrite the acls and actions entirely but I think I can support what you’ve shown. I’ll respond again when I have an updated build. |
If it helps, this is the end goal I'm trying to get at Example:
Currently I can apply this to a shared frontend but this is only for a specific app. Thanks again for working on this |
Those rules would need to also have host and prefix (from the ingress) to be effective right? Otherwise potentially across many ingresses you'll end up with a bunch of conflicting rules and it will be first one wins? |
Yes, currently I didn't had any conflicts so I kept it on my shared frontend. Ideally this needs to be only apply to a single host/frontend |
I've put a bit of thought into how the template could have placeholders in it and it seems pretty messy. Instead you'll just need to hard-code the rules in the template directly with host/path as appropriate. Using |
sorry for taking some time to get to this, have you seen this warning on 0.5.14?
We might need to add a safety check around your is_array check
|
For anyone stumbling across this post and if you want to add acls and actions. This is my working example:
|
How can I enable offloading on the frontend ?
The text was updated successfully, but these errors were encountered: