kind: sigs.k8s.io/kind/pkg/internal/cluster/loadbalancer Index | Files

package loadbalancer

import "sigs.k8s.io/kind/pkg/internal/cluster/loadbalancer"

Package loadbalancer contains external loadbalancer related constants and configuration

Index

Package Files

config.go const.go doc.go

Constants

const ConfigPath = "/usr/local/etc/haproxy/haproxy.cfg"

ConfigPath defines the path to the config file in the image

const ControlPlanePort = 6443

ControlPlanePort defines the port where the control plane is listening on the load balancer node

const DefaultConfigTemplate = "" /* 610 byte string literal not displayed */

DefaultConfigTemplate is the loadbalancer config template

const Image = "kindest/haproxy:2.0.0-alpine"

Image defines the loadbalancer image:tag

func Config Uses

func Config(data *ConfigData) (config string, err error)

Config returns a kubeadm config generated from config data, in particular the kubernetes version

type ConfigData Uses

type ConfigData struct {
    ControlPlanePort int
    BackendServers   map[string]string
    IPv6             bool
}

ConfigData is supplied to the loadbalancer config template

Package loadbalancer imports 3 packages (graph) and is imported by 2 packages. Updated 2019-09-21. Refresh now. Tools for package owners.