spring-cloud-kubernetes-discovery-ext

Library for Spring Cloud Kubernetes external registration

License

License

Categories

Categories

Kubernetes Container Virtualization Tools Net
GroupId

GroupId

com.github.piomin
ArtifactId

ArtifactId

spring-cloud-kubernetes-discovery-ext-starter
Last Version

Last Version

1.0.0.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

spring-cloud-kubernetes-discovery-ext
Library for Spring Cloud Kubernetes external registration
Project URL

Project URL

https://github.com/piomin/spring-cloud-kubernetes-discovery-ext
Source Code Management

Source Code Management

https://github.com/piomin/spring-cloud-kubernetes-discovery-ext

Download spring-cloud-kubernetes-discovery-ext-starter

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.piomin/spring-cloud-kubernetes-discovery-ext-starter/ -->
<dependency>
    <groupId>com.github.piomin</groupId>
    <artifactId>spring-cloud-kubernetes-discovery-ext-starter</artifactId>
    <version>1.0.0.RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.piomin/spring-cloud-kubernetes-discovery-ext-starter/
implementation 'com.github.piomin:spring-cloud-kubernetes-discovery-ext-starter:1.0.0.RELEASE'
// https://jarcasting.com/artifacts/com.github.piomin/spring-cloud-kubernetes-discovery-ext-starter/
implementation ("com.github.piomin:spring-cloud-kubernetes-discovery-ext-starter:1.0.0.RELEASE")
'com.github.piomin:spring-cloud-kubernetes-discovery-ext-starter:jar:1.0.0.RELEASE'
<dependency org="com.github.piomin" name="spring-cloud-kubernetes-discovery-ext-starter" rev="1.0.0.RELEASE">
  <artifact name="spring-cloud-kubernetes-discovery-ext-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.piomin', module='spring-cloud-kubernetes-discovery-ext-starter', version='1.0.0.RELEASE')
)
libraryDependencies += "com.github.piomin" % "spring-cloud-kubernetes-discovery-ext-starter" % "1.0.0.RELEASE"
[com.github.piomin/spring-cloud-kubernetes-discovery-ext-starter "1.0.0.RELEASE"]

Dependencies

compile (1)

Group / Artifact Type Version
org.springframework.cloud : spring-cloud-starter-kubernetes jar

Project Modules

There are no modules declared in this project.

Spring Cloud Library for External Kubernetes Discovery Twitter

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

Versions

Version
1.0.0.RELEASE