k8s

package
v0.0.0-...-b2e581d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2023 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package k8s provides pod discovery for Kubernetes.

Index

Constants

View Source
const (
	// AnnotationKeyPort is the annotation name of the field that specifies
	// the port name or number to append to the address.
	AnnotationKeyPort = "olric/auto-join-port"
)

Variables

This section is empty.

Functions

func PodAddresses

func PodAddresses(pods *corev1.PodList, c *config.Config, l *log.Logger) ([]string, error)

PodAddresses extracts the addresses from a list of pods.

This is a separate method so that we can unit test this without having to set up complicated K8S cluster scenarios. It shouldn't generally be called externally.

Types

type K8S

type K8S struct{}

func (*K8S) Addresses

func (k *K8S) Addresses(c *config.Config, l *log.Logger) ([]string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL