2.4 k8s

This discovery strategy relies on Kubernetes API server. It queries the Kubernetes API endpoint /api/v1/namespaces/{namespace}/endpoints/{app} 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: Atom, default: ip.

Determines the address extraction and node naming format. Supported values: ip, hostname, dns.

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.

JavaScript license information