service

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchServiceAddress added in v0.5.12

func FetchServiceAddress(s *v1.Service) string

it will first fetch from annotations kube-vip.io/loadbalancerIPs, then from spec.loadbalancerIP

Types

type Instance

type Instance struct {

	// Kubernetes service mapping
	Vip  string
	Port int32
	UID  string
	Type string

	ServiceName string
	// contains filtered or unexported fields
}

Instance defines an instance of everything needed to manage a vip

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager defines the manager of the load-balancing services

func NewManager

func NewManager(configMap string, config *kubevip.Config, clientset *kubernetes.Clientset) (*Manager, error)

NewManager will create a new managing object

func (*Manager) PrometheusCollector

func (sm *Manager) PrometheusCollector() []prometheus.Collector

PrometheusCollector - required for statistics // TODO - improve monitoring

func (*Manager) Start

func (sm *Manager) Start() error

Start will begin the Manager, which will start services and watch the configmap

Jump to

Keyboard shortcuts

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