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

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

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 Denunciar

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