k8sKillAllPodsOnSingleNode

command module
v0.0.0-...-0fbceab Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

README

k8sKillAllPodsOnSingleNode

Force kill all pods on a single k8s node.

Build

export GO111MODULE=on
go mod init
go get k8s.io/client-go@v12.0.0
go build

Usage

Login to your kubernetes cluster, then run

./k8sKillAllPodsOnSingleNode --nodeName ocp-app-01a.example.com
OC equivalent

You can bypass this tool and just use an oc command like

oc adm drain ocp-app-01a.example.com --force --grace-period=0 --delete-local-data --ignore-daemonsets

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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