- Had I not seen the sun, I could have borne the shade.
-- Siegfried Loraine Sassoon
- An application that makes kubernetes clusters shine
- After the pod restarts for the specified number of times, it will find its deployment and shut down
- If there is a running instance corresponding to the deployment, it will give up processing the deployment
- Reduce useless resource consumption, alarm information, and kube-scheduler scheduling pressure
- Suitable for multi-tenant messy kubernetes cluster
Supported kubernetes versions
kubectl apply -f https://raw.githubusercontent.com/huangjc7/sunshine/master/manifests/sunshine.yaml
Environment Variable |
Description |
Default |
POD_RESTART_NUMBER |
When the pod restart threshold is met, the deployment will be closed |
50 |
- Close restart the abnormal pod
![asciicast](https://camo.githubusercontent.com/3f40afe0e80006e1010ebb4c032ca21abdeff5c42913df6788f3121770c6a688/68747470733a2f2f61736369696e656d612e6f72672f612f574c6b3362504a656162754a464869776b335561654f4b71482e737667)
- If there is a running instance in the version controlled by the deployment, it will not be scaled down.
![asciicast](https://camo.githubusercontent.com/482a5258e8a0107e2916fac16fdfb03055856246b9a24ce31d756849c9fcddf2/68747470733a2f2f61736369696e656d612e6f72672f612f7665764d6d4b5177773065705947444e65567243346e36316b2e737667)