k8s

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8s

type K8s struct {
	ClientSet *kubernetes.Clientset
	Config    config.Config
}

K8s client wrapper

func NewInstance

func NewInstance(applicationConfig config.Config) (instance K8s, err error)

NewInstance create new instance of K8s

func (*K8s) AddRouteForFloatIp

func (k8s *K8s) AddRouteForFloatIp(node *v1.Node, ip string)

AddRouteForFloatIp execute job to create routing rules on node

func (K8s) SetEgressReadyLabel

func (k8s K8s) SetEgressReadyLabel(node *v1.Node, ready bool)

SetEgressReadyLabel set label "egress-ready" = false or true

Jump to

Keyboard shortcuts

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