-
Notifications
You must be signed in to change notification settings - Fork 335
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
help request: How To Set Custom Headers with k8s Ingress .yaml (syntax) #1860
Comments
If you are using APISIX Ingress controller, please refer to:
|
@illflavored Currently there is no annotation support on Ingress resource for overriding headers. Though you can use ApisixPluginConfig We can also implement this in Ingress resource. I will create a PR for this. |
This issue has been marked as stale due to 90 days of inactivity. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions. |
Fixed by #1861 |
Description
I'm trying to use the response-rewrite headers.set functionality found here:
https://apisix.apache.org/zh/docs/apisix/plugins/response-rewrite/
I'm on kubernetes, so I need to be able to utilize this in .yaml form, but the documentation doesn't give an example. I've tried a few variations as a best guess. My ingress:
My kubectl apply is consistently giving me output message as such:
Specifically what I'm trying to do is port over these header rules from another API manager we're using on the inbound requests. Are there working examples of these annotations and their syntax in .yaml form?
Environment
The text was updated successfully, but these errors were encountered: