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

154
Views
Multiple environment on single K8s cluster and Nginx controller

We want to have 1 k8s cluster and to enable each developer to deploy their environment by separating developer's env by URI "/developerName", and an NS where every deployment of the app will be deployed on different NS.

The application is a legacy tomcat based web app.

I'm looking for a good approach where I can route the traffic of every developer based on URL to different deployments.

There is 1 restriction, where the application is expecting only the app name in the URL. i.e example.com/username/appname isn't working since the app is expecting only example.com/appname

I have deployed successfully Nginx ingress controller and checked it's working whenever I'm not using the "/developername" in the path

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can use an ingress resource. Configure each environment with different hostname:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ingress
  namespace: developer1
spec:
  rules:
    - host: developer1.mytestdomain.com
      http:
        paths:
          - backend:
              serviceName: my-tomcat-service
              servicePort: 8080
            path: /
  tls:
    - hosts:
        - developer1.mytestdomain.com
      secretName: mysslsecret

Then setup a wildcard domain on *.mytestdomai.com. So you don't have to add a subdomain each time and environment is built. Skip the tls part if you don't need https.

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!