Documentation ¶
Index ¶
- Constants
- func Hosts(cidr string) ([]string, error)
- func NewKeepalivedLoadBalancer(kubeClient *kubernetes.Clientset, ns, name, serviceCidr string, ...) cloudprovider.LoadBalancer
- type KeepalivedCloudProvider
- func (k *KeepalivedCloudProvider) Clusters() (cloudprovider.Clusters, bool)
- func (k *KeepalivedCloudProvider) Instances() (cloudprovider.Instances, bool)
- func (k *KeepalivedCloudProvider) LoadBalancer() (cloudprovider.LoadBalancer, bool)
- func (k *KeepalivedCloudProvider) ProviderName() string
- func (k *KeepalivedCloudProvider) Routes() (cloudprovider.Routes, bool)
- func (k *KeepalivedCloudProvider) ScrubDNS(nameservers, searches []string) (nsOut, srchOut []string)
- func (k *KeepalivedCloudProvider) Zones() (cloudprovider.Zones, bool)
- type KeepalivedLoadBalancer
- func (k *KeepalivedLoadBalancer) EnsureLoadBalancer(clusterName string, service *v1.Service, nodes []*v1.Node) (*v1.LoadBalancerStatus, error)
- func (k *KeepalivedLoadBalancer) EnsureLoadBalancerDeleted(clusterName string, service *v1.Service) error
- func (k *KeepalivedLoadBalancer) GetLoadBalancer(clusterName string, service *v1.Service) (status *v1.LoadBalancerStatus, exists bool, err error)
- func (k *KeepalivedLoadBalancer) UpdateLoadBalancer(clusterName string, service *v1.Service, nodes []*v1.Node) error
Constants ¶
View Source
const (
ProviderName = "keepalived"
)
Variables ¶
This section is empty.
Functions ¶
func NewKeepalivedLoadBalancer ¶
func NewKeepalivedLoadBalancer(kubeClient *kubernetes.Clientset, ns, name, serviceCidr string, forwardMethod string) cloudprovider.LoadBalancer
Types ¶
type KeepalivedCloudProvider ¶
type KeepalivedCloudProvider struct {
// contains filtered or unexported fields
}
func (*KeepalivedCloudProvider) Clusters ¶
func (k *KeepalivedCloudProvider) Clusters() (cloudprovider.Clusters, bool)
Clusters returns a clusters interface. Also returns true if the interface is supported, false otherwise.
func (*KeepalivedCloudProvider) Instances ¶
func (k *KeepalivedCloudProvider) Instances() (cloudprovider.Instances, bool)
Instances returns an instances interface. Also returns true if the interface is supported, false otherwise.
func (*KeepalivedCloudProvider) LoadBalancer ¶
func (k *KeepalivedCloudProvider) LoadBalancer() (cloudprovider.LoadBalancer, bool)
LoadBalancer returns a loadbalancer interface. Also returns true if the interface is supported, false otherwise.
func (*KeepalivedCloudProvider) ProviderName ¶
func (k *KeepalivedCloudProvider) ProviderName() string
ProviderName returns the cloud provider ID.
func (*KeepalivedCloudProvider) Routes ¶
func (k *KeepalivedCloudProvider) Routes() (cloudprovider.Routes, bool)
Routes returns a routes interface along with whether the interface is supported.
func (*KeepalivedCloudProvider) ScrubDNS ¶
func (k *KeepalivedCloudProvider) ScrubDNS(nameservers, searches []string) (nsOut, srchOut []string)
ScrubDNS provides an opportunity for cloud-provider-specific code to process DNS settings for pods.
func (*KeepalivedCloudProvider) Zones ¶
func (k *KeepalivedCloudProvider) Zones() (cloudprovider.Zones, bool)
Zones returns a zones interface. Also returns true if the interface is supported, false otherwise.
type KeepalivedLoadBalancer ¶
type KeepalivedLoadBalancer struct {
// contains filtered or unexported fields
}
func (*KeepalivedLoadBalancer) EnsureLoadBalancer ¶
func (k *KeepalivedLoadBalancer) EnsureLoadBalancer(clusterName string, service *v1.Service, nodes []*v1.Node) (*v1.LoadBalancerStatus, error)
func (*KeepalivedLoadBalancer) EnsureLoadBalancerDeleted ¶
func (k *KeepalivedLoadBalancer) EnsureLoadBalancerDeleted(clusterName string, service *v1.Service) error
func (*KeepalivedLoadBalancer) GetLoadBalancer ¶
func (k *KeepalivedLoadBalancer) GetLoadBalancer(clusterName string, service *v1.Service) (status *v1.LoadBalancerStatus, exists bool, err error)
func (*KeepalivedLoadBalancer) UpdateLoadBalancer ¶
Click to show internal directories.
Click to hide internal directories.