Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

367
Visualizações
How I can change the URI with ingress. app-root and rewrite-target not wok

I have a problem with nginx Ingress. We have rules in different namespaces and test apps work fine.

Now we want to access a new application over the ingress, but for this one we need another URL rule:

f.e. Rule path: /app/app-function

Fortunately the app shows me the URI it gets. The App gets the Path from the ingress, I need to change it to something. I try app-root and rewrite-target but I can not see any changes in the URI.

Pasting my yaml file below. Do you have any idea? I tried it in the master rule too, but nothing happend. But the master rule is in the ingress namespace...

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: rule-app
  namespace: pilot
  annotations:
    nginx.org/mergeable-ingress-type: "minion"
    nginx.ingress.kubernetes.io/rewrite-target: "/test"
    #nginx.ingress.kubernetes.io/enable-rewrite-log: "true"

spec:
  ingressClassName: "nginx"
  rules:
  - host: "Host"
    http:
      paths:
      - path: /app/app-function
        pathType: Prefix
        backend:
          service:
            name: new-app
            port:
              number: 8080
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Thank you Vit, I found a solution with your tipp.

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: rule-app
  namespace: pilot
  annotations:
    nginx.org/mergeable-ingress-type: "minion"
    nginx.org/rewrites: "serviceName=new-app rewrite=/test"
spec:
  ingressClassName: "nginx"
  rules:
  - host: "Host"
    http:
      paths:
      - path: /app/app-function
        pathType: Prefix
        backend:
          service:
            name: new-app
            port:
              number: 8080
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda