Skip to content

Instantly share code, notes, and snippets.

View pgressa's full-sized avatar

Pavol Gressa pgressa

View GitHub Profile
@pgressa
pgressa / gist:e95a9a81f8de8d9fca91515654222208
Last active March 23, 2021 15:59
Micronaut Kubernetes + Dekorate scenario

Intro

In this scenario we will demonstrate the Micronaut Kubernetes Discovery module.

Prerequisites:

  • kubernetes cluster
  • docker
  • java
  • dockerhub account
@pgressa
pgressa / gist:5c920510e048916875752d72e7bd5016
Last active July 27, 2020 20:24
Consul watches support for micronaut

Consul watches support for Micronaut Service Discovery

Currently supported watches by Consul [1]:

  • key - Watch a specific KV pair
  • keyprefix - Watch a prefix in the KV store
  • services - Watch the list of available services
  • nodes - Watch the list of nodes
  • service- Watch the instances of a service
  • checks - Watch the value of health checks
  • event - Watch for custom user events
# using symbolic link which are pointing to maven modules with real source code
# pros:
# - maven standard structure
# cons:
# - symbolic link there
<root>
|- resources -> /libs/src/main/resources
|- vars -> /libs/src/main/groovy/vars
|- src -> /libs/src/main/groovy/src