Documentation ¶
Index ¶
- func Cordon(client *kubernetes.Clientset, corev1Node *corev1.Node) error
- func Drain(client *kubernetes.Clientset, corev1Node *corev1.Node) error
- func NewCommand(name string, arg ...string) *exec.Cmd
- func NewCommandWithStdout(name string, arg ...string) *exec.Cmd
- func RestartKubelet(nodeName string) error
- func Uncordon(client *kubernetes.Clientset, corev1Node *corev1.Node) error
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 ¶
NewCommand creates a new Command with stdout/stderr wired to our standard logger
func NewCommandWithStdout ¶
NewCommand creates a new Command with stderr wired to our standard logger
func RestartKubelet ¶
RestartKubelet executes `systemctl restart kubelet` on the host system
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.