@Shreyas Arani , thanks for the reply.
Azure Application Gateway Ingress Controller annotations keep getting added/updated. Please check here for updated list of supported annotations. You can also stay up-to-date with release updates from Azure Application Gateway Ingress Controller here.
In this particular case,
Rewrite Rule Set
This annotation allows to assign an existing rewrite rule set to the corresponding request routing rule.
Usage
appgw.ingress.kubernetes.io/rewrite-rule-set: <rewrite rule set>
Example
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: go-server-ingress-bkprefix
namespace: test-ag
annotations:
kubernetes.io/ingress.class: azure/application-gateway
appgw.ingress.kubernetes.io/rewrite-rule-set: add-custom-response-header
spec:
rules:
- http:
paths:
- path: /
backend:
serviceName: go-server-service
servicePort: 8080
Using this will ensure that the Ingress Controller takes the existing static rewrite rules on the Application Gateway into account and does not override this in the process of updates.
References:
----
Hope this helps.
Please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.