Skip to content

stenic/k8srestart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

K8sRestart

Last release Artifact Hub

k8srestart restarts pods and deployments after a set amount of time.

Behaviour

pods will be deleted once the time has past. deployments will be triggered as a rollout and will restart following the deployment specifications.

Installation

helm repo add k8srestart https://stenic.github.io/k8srestart/
helm install k8srestart --namespace mynamespace k8srestart/k8srestart

Annotations

You can add these Kubernetes annotations to specific service objects to customize k8srestart's behaviour.

k8srestart.stenic.io/restartAfter (string) Amount of seconds after which the pod/deployment will restart.

Build & run

docker build -t k8srestart .
docker run -ti -p 8080:8080 -v ~/.kube:/home/nonroot/.kube k8srestart --interval=5 -v=2

About

Restart pods after a set amount of time

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •