Spring Cloud Library for External Kubernetes Discovery ![Twitter](https://camo.githubusercontent.com/803487f110c66302a10da54edd4896336de5b027dfca0fd032b27917becd0dd3/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f70696f74725f6d696e6b6f77736b692e7376673f7374796c653d736f6369616c266c6f676f3d74776974746572266c6162656c3d466f6c6c6f772532304d65)
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