Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

366
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!