loadbalancer

package
v0.0.0-...-72b5bd8 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package loadbalancer contains external loadbalancer related constants and configuration.

Having a direct control on loadbalancer config is a specific necessity for kinder, because in kinder all the actions for setting up a working cluster can happen at different time while in kind everything - from create to a working K8s cluster - happens within an atomic operation, create.

The current implementation is a fork from "sigs.k8s.io/kind/pkg/cluster/internal/loadbalancer".

Index

Constants

View Source
const DefaultConfigTemplate = `` /* 608-byte string literal not displayed */

DefaultConfigTemplate is the loadbalancer config template

Variables

This section is empty.

Functions

func Config

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

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

Types

type ConfigData

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

ConfigData is supplied to the loadbalancer config template

Jump to

Keyboard shortcuts

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