loadbalancer

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package loadbalancer contains external loadbalancer related constants and configuration

Index

Constants

View Source
const ConfigPath = "/etc/nginx/nginx.conf"

ConfigPath defines the path to the config file in the image

View Source
const ControlPlanePort = 6443

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

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

DefaultConfigTemplate is the loadbalancer config template

View Source
const Image = "nginx:1.15.12-alpine"

Image defines the loadbalancer image:tag

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
}

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