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 = "consul.hashicorp.com/auto-join-port"
)
Variables ¶
This section is empty.
Functions ¶
func PodAddrs ¶
func PodAddrs(pods *corev1.PodList, args map[string]string, l *log.Logger) ([]string, error)
PodAddrs extracts the addresses from a list of pods.
This is a separate method so that we can unit test this without having to setup complicated K8S cluster scenarios. It shouldn't generally be called externally.
Types ¶
Click to show internal directories.
Click to hide internal directories.