host

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cordon

func Cordon(client *kubernetes.Clientset, corev1Node *corev1.Node) error

Cordon executes `kubectl cordon <node-name>` on the host system

func Drain

func Drain(client *kubernetes.Clientset, corev1Node *corev1.Node) error

Drain executes `kubectl drain --ignore-daemonsets --delete-local-data --force <node-name>` on the host system

func NewCommand

func NewCommand(name string, arg ...string) *exec.Cmd

NewCommand creates a new Command with stdout/stderr wired to our standard logger

func NewCommandWithStdout

func NewCommandWithStdout(name string, arg ...string) *exec.Cmd

NewCommand creates a new Command with stderr wired to our standard logger

func RestartKubelet

func RestartKubelet(nodeName string) error

RestartKubelet executes `systemctl restart kubelet` on the host system

func Uncordon

func Uncordon(client *kubernetes.Clientset, corev1Node *corev1.Node) error

Uncordon executes `kubectl uncordon <node-name>` on the host system

Types

This section is empty.

Jump to

Keyboard shortcuts

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