Skip to content

piomin/spring-cloud-kubernetes-discovery-ext

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages