neon-re-terminator

command module
v0.0.0-...-7e88508 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 13 Imported by: 0

README

neon-re-terminator

algorithm

  • get list of pods in a specific namespace (default by default) by label selector(neon/component=compute-node by default)
  • check if pod has DeletionTimestamp (meaning the pod in terminating state)
  • check if pod in terminating state longer than timeout (30s by default) or longer than .spec.terminationGracePeriodSeconds
  • check if the compute-node container is already terminated (container status terminated)
  • if all confitions passed - force delete pod

usage

build

go build

get help

./neon-re-terminator -help

run in kuberntes cluster

kubectl apply -f manifests

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