Expand description
Kubernetes node discovery for the dactor distributed actor framework.
Provides two discovery mechanisms:
KubernetesDiscovery: Uses the Kubernetes API to list pods by label selector.HeadlessServiceDiscovery: Uses DNS resolution of a headless Kubernetes service.
Structs§
- Headless
Service Discovery - Discovers peer pods via DNS resolution of a Kubernetes headless service.
- K8sDiscovery
Builder - Builder for
KubernetesDiscovery. - K8sDiscovery
Config - Configuration for Kubernetes pod discovery.
- Kubernetes
Discovery - Discovers peer pods using the Kubernetes API.
Enums§
- K8sDiscovery
Error - Errors returned by Kubernetes discovery operations.
Functions§
- current_
namespace - Read the current namespace from the pod’s mounted service account.
- pod_ip
- Read the pod’s own IP from the
DACTOR_POD_IPorPOD_IPenvironment variable.