Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

156
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda