monitor

package
v0.0.0-...-145ef72 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorednsWatch

func CorednsWatch(kubeconfigPath, clusterConfigPath, templatePath, cfgPath string, apiVips, ingressVips []net.IP, interval time.Duration, apiLBIPs, apiIntLBIPs, ingressLBIPs []net.IP, platformType string) error

func CorednsWatchWithNodeIPDiscovery

func CorednsWatchWithNodeIPDiscovery(ctx context.Context, kubeconfigPath, clusterConfigPath, templatePath, cfgPath, resolvConfPath string, interval time.Duration) error

CorednsWatchWithNodeIPDiscovery refreshes a local CoreDNS Corefile without contacting the Kubernetes API. Each attempt rebuilds every local input so a transient bad resolver or node-IP file leaves the last working Corefile in place and is retried on the next interval.

func DnsmasqWatch

func DnsmasqWatch(kubeconfigPath, templatePath, cfgPath string, apiVips []net.IP, interval time.Duration, platformType string) error

func KeepalivedWatch

func KeepalivedWatch(kubeconfigPath, clusterConfigPath, templatePath, cfgPath string, apiVips, ingressVips []net.IP, apiPort, lbPort uint16, interval time.Duration, platformType string, controlPlaneTopology string) error

func Monitor

func Monitor(kubeconfigPath, clusterName, clusterDomain, templatePath, cfgPath string, apiVips []string, apiPort, lbPort, statPort uint16, interval time.Duration) error

func ReloadDnsmasq

func ReloadDnsmasq() error

Types

type APIState

type APIState uint8

type RuntimeConfig

type RuntimeConfig struct {
	LBConfig *config.ApiLBConfig
}

Jump to

Keyboard shortcuts

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