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

155
Visualizações
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 Respostas
Responde à pergunta

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 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