clusters

package
v0.9.16 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PingRetryCount is the number of times the ping will be retried
	// to determine if the node is healthy of not.
	PingRetryCount = 5
)

Variables

View Source
var ErrEchoTimeout = errors.New("icmp request timeout")

ErrEchoTimeout is returned when the reply is not received within the requested timeout.

Functions

func DetermineLBApiEndpointChange added in v0.9.3

func DetermineLBApiEndpointChange(currentLbs, desiredLbs []*spec.LBcluster) (string, string, spec.ApiEndpointChangeState)

func FindAssignedLbApiEndpoint added in v0.9.3

func FindAssignedLbApiEndpoint(clusters []*spec.LBcluster) *spec.LBcluster

func IndexLoadbalancerById added in v0.9.3

func IndexLoadbalancerById(target string, clusters []*spec.LBcluster) int

func NodePublic added in v0.9.7

func NodePublic(name string, cluster *spec.K8Scluster) string

func Ping added in v0.9.7

func Ping(logger zerolog.Logger, count int, dst string) error

Ping pings a single IPv4 address with the requested amount of retries. An error is returned when more then count/2 packets are lost.

func PingNodes added in v0.9.7

func PingNodes(logger zerolog.Logger, state *spec.Clusters) (map[string][]string, map[string]map[string][]string, error)

PingNodes pings nodes of the cluster, including loadbalancer nodes, using the public IPv4 Address of the nodes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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