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

298
Visualizações
Disable Spring Cloud Kubernetes in local

Small question on how to disable Spring Cloud Kubernetes in local mode please.

The project is a simple SpringBoot + SpringCloud project deployed in Kubernetes. Hence, there is this dependency in the class path:

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-kubernetes-fabric8</artifactId>
        </dependency>

And when we deployed the app in a Kubernetes environment, everything is fine. However, the same app run in local mode will yield this warning, but most of all, a 20 seconds increased start time.

o.s.c.k.f.Fabric8AutoConfiguration       : No namespace has been detected. Please specify KUBERNETES_NAMESPACE env var, or use a later kubernetes version (1.3 or later)

In local, while removing the dependency entirely, things are "back to normal". The message disappears, and the start up time comes back down.

However, commenting and uncommenting the dependency based on the local environment might not be the best solution.

Is there a property to disable Spring Cloud Kubernetes entirely that I can configure in local please?

Thank you

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

As the documentation says, you can do that by adding:

spring.cloud.kubernetes.enabled=false

that, in turn, could be an environment property that you can enable/disable per environment.

over 4 years ago · Santiago Trujillo Relatório

0

What worked for me was adding the spring.cloud.kubernetes.enabled=false property in the boostrap.properties/yaml file and not in the application.properties/yaml file.

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