monitor

package
v0.0.0-...-4dac0e7 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

View Source
const MonitorConfFileName = "unsupported-monitor.conf"

Variables

This section is empty.

Functions

func CheckLastLease

func CheckLastLease(log logrus.FieldLogger, fileName, expectedIface, expectedIp string) error

func CorednsWatch

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

func DnsmasqWatch

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

func GetLastLeaseFromFile

func GetLastLeaseFromFile(log logrus.FieldLogger, fileName string) (string, string, error)

func GetLeaseFile

func GetLeaseFile(cfgPath, name string) string

func KeepalivedWatch

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

func LeaseInterface

func LeaseInterface(log logrus.FieldLogger, masterDevice string, name string, mac net.HardwareAddr) (*net.Interface, error)

func LeaseVIP

func LeaseVIP(log logrus.FieldLogger, cfgPath, masterDevice, name string, mac net.HardwareAddr, ip string) error

func LeaseVIPs

func LeaseVIPs(log logrus.FieldLogger, cfgPath string, vipMasterIface string, vips []vip) 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

func RunFiniteWatcher

func RunFiniteWatcher(log logrus.FieldLogger, watcher *fsnotify.Watcher, fileName, expectedIface, expectedIp string, write chan<- error)

func RunInfiniteWatcher

func RunInfiniteWatcher(log logrus.FieldLogger, watcher *fsnotify.Watcher, fileName, expectedIface, expectedIp string)

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