The ingress yaml:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
nginx.ingress.kubernetes.io/configuration-snippet: |
rewrite ^/$ https://$host/_dashboards redirect;
name: demo
namespace: test
spec:
ingressClassName: nginx
rules:
- host: log.test.com
http:
paths:
- backend:
service:
name: demo
port:
number: 443
path: /
pathType: ImplementationSpecific
I don't want to use annotation nginx.ingress.kubernetes.io/configuration-snippet, how could I convert it to other annotation, such as nginx.ingress.kubernetes.io/rewrite-target?