Skip to content

oneoneonepig/pod-restarter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pod-restarter

Restarts some Pods in Kubernetes, selected by labels

Usage

-grace-period int
      the duration in seconds before the object should be deleted. (default 30)
-namespace string
      specify the namespace of the pods (default "default")
-selector string
      label selector

Example

Delete all Pods in default Namespace

pod-restarter -namespace=default

Delete all Pods with label "app=nginx" in default Namespace

pod-restarter -namespace=default -selector="app=nginx"

Library and reference

TODO

  • Check if the Pod is created by a controller. If yes, check delete the pod, if no, check whether the flag "-ignore-naked-pods" is set.

About

Restarts a specific Pod in Kubernetes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published