internallb

package
v0.28.6 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultFileversion = 0

DefaultFileversion should be incremented When making changes to the manifest file that need to be synchronized.

View Source
const HAProxyFileversionAnnotation = "kurl.sh/haproxy-fileversion"
View Source
const HAProxyImage = "haproxy:lts-alpine"

Variables

This section is empty.

Functions

func GenerateHAProxyConfig

func GenerateHAProxyConfig(primaries ...string) ([]byte, error)

func GenerateHAProxyManifest

func GenerateHAProxyManifest(filename, image string, fileversion int) (bool, error)

GenerateHAProxyManifest writes the generated manifest to the file only if it does not exist or the fileversion has changed. This avoids a few seconds of downtime when the pod is restarted unnecessarily.

Types

This section is empty.

Jump to

Keyboard shortcuts

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