github networknt/light-4j 1.5.9

latest releases: 2.1.33, 2.1.32, 1.6.47...
6 years ago

1.5.9 (2018-02-21)

Full Changelog

Closed issues:

  • Support dynamic port binding for Kubernetes hostNetwork #162
  • switch light-config-server connection to HTTP 2.0 #159

Merged pull requests:

Upgrade Guide:

  • To support Kubernetes cluster deployment and client side service discovery, the server cannot be started with both http and https. If both are enabled, then https will be used.

  • The server module has been enhanced to support dynamic port allocation and self registration on Kubernetes cluster. The following section has been added to the server.yml config file. If you are not using the feature, you don't need to include the block. This change is backward compatible. Example can be found at https://github.com/networknt/light-example-4j/blob/master/discovery/api_a/kubernetes/src/main/resources/config/server.yml

There is Kubernetes tutorial on how to use it as part of the service registry and discovery.

# Dynamic port is used in situation that multiple services will be deployed on the same host and normally
# you will have enableRegistry set to true so that other services can find the dynamic port service. When
# deployed to Kubernetes cluster, the Pod must be annotated as hostNetwork: true
dynamicPort: false

# Minimum port range. This define a range for the dynamic allocated ports so that it is easier to setup
# firewall rule to enable this range. Default 2400 to 2500 block has 100 port numbers and should be
# enough for most cases unless you are using a big bare metal box as Kubernetes node that can run 1000s pods
minPort: 2400

# Maximum port rang. The range can be customized to adopt your network security policy and can be increased or
# reduced to ease firewall rules.
maxPort: 2500

Don't miss a new light-4j release

NewReleases is sending notifications on new releases.