2.4 K8s

This discovery strategy relies on the Kubernetes API server. It queries the Kubernetes API endpoint /api/v1/namespaces/{namespace}/endpoints/{service_name} to retrieve the IP addresses or hostnames of all pods associated with that service, which are then converted into Erlang node names.

Configuration parameters:

apiserver

Type: string() (Required).

The URL of the Kubernetes API server.

service_name

Type: string() (Required).

The name of the Kubernetes Service used for discovery.

app_name

Type: string(), default: classy_autocluster:app_name/0.

The application name used as a prefix for the generated node names.

address_type

Type: ip | hostname | dns, default: ip.

Determines the address extraction and node naming format.

namespace

Type: string(), default: "default".

The Kubernetes namespace where the service is located.

suffix

Type: string(), default: "".

An optional DNS suffix appended to the node name. Only used with the hostname and dns address types.

JavaScript license information