Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 2.11 KB

File metadata and controls

41 lines (34 loc) · 2.11 KB

Spring Cloud Library for External Kubernetes Discovery Twitter

CircleCI

SonarCloud Bugs Coverage Lines of Code

Motivation

The article which describes motivation for creating library and showing use case for it with source code example: Spring Cloud Kubernetes For Hybrid Microservices Architecture

Usage

The library is published on Maven Central. Current version is 1.0.0.RELEASE

<dependency>
  <groupId>com.github.piomin</groupId>
  <artifactId>spring-cloud-kubernetes-discovery-ext</artifactId>
  <version>1.0.0.RELEASE</version>
</dependency>

The registration is still disabled, since we won't set property spring.cloud.kubernetes.discovery.register to true.

spring:
  cloud:
    kubernetes:
      discovery:
        register: true

It might be usable to set static IP address in configuration, in case you would have multiple network interfaces.

spring:
  cloud:
    kubernetes:
      discovery:
        ipAddress: 192.168.99.1