Score:0

How could I replace ingress nginx snippet with other annotation?

ve flag

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?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.