Comments (5)
I can't speak for everyone, but I've generally just deployed direct kubernetes manifest files in the past. I don't know if anyone has ever created a helm chart it. I'm certainly not against it, but also haven't played with helm since the much anticipated release of Helm 3!
Would love to hear from others on this!
from pod-reaper.
I'd love a helm chart. Maybe it's because I'm new to Kubernetes, but after reading the ReadMe I still don't understand how to install this. I'm sure I just need to learn more, but I do know how to use a helm chart. I think a helm chart would lower the barrier of entry for an awesome tool like this.
from pod-reaper.
I think that's valid critism of the readme! Looking back over it I think it's making a number of assumptions regarding familiarity with specific parts of kubernetes.
Here's what I've been doing for testing locally, which hopefully will at least help you feel like you've got a way to play around.
I've been using a tool called KinD (kubernetes in docker): https://kind.sigs.k8s.io/
kind create cluster
makes a cluster running locally on docker (I like starting locally because pod-reaper configurations can be "dramatic"
murasaki:~/code/src/github.com/target/pod-reaper(master)$ kind create cluster
Creating cluster "kind" ...
â Ensuring node image (kindest/node:v1.17.0) đŧ
â Preparing nodes đĻ
â Writing configuration đ
â Starting control-plane đšī¸
â Installing CNI đ
â Installing StorageClass đž
Set kubectl context to "kind-kind"
You can now use your cluster with:
kubectl cluster-info --context kind-kind
Thanks for using kind! đ
kubectl apply -f examples/cluster-permissions.yml
deploys the example in it's entirety into the cluster kubectl is pointed at. Double check to make sure it's the local cluster to be extra safe!
murasaki:~/code/src/github.com/target/pod-reaper(master)$ kubectl apply -f examples/cluster-permissions.yml
namespace/reaper created
serviceaccount/pod-reaper-service-account created
clusterrole.rbac.authorization.k8s.io/pod-reaper-cluster-role created
clusterrolebinding.rbac.authorization.k8s.io/pod-reaper-role-binding created
deployment.apps/pod-reaper created
That's it. It's deployed. I then usually do a couple to watch it work. You can check the logs of the pod-reaper containers to see what actions it's taking, but I also usually do a watch kubectl get pods -A
to see pods being deleted and recovering. In that example, pod-reaper will be looking at pods every 15 seconds and will kill about 5% of them (technically each pod has a 5% chance of being killed every 15 seconds).
murasaki:~/code/src/github.com/target/pod-reaper(master)$ kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-6955765f44-cgf2v 1/1 Running 0 11m
kube-system coredns-6955765f44-f8wbc 0/1 Running 0 3s
kube-system coredns-6955765f44-vvz7s 1/1 Terminating 0 11m
kube-system etcd-kind-control-plane 1/1 Running 0 11m
kube-system kindnet-2fjsg 1/1 Running 0 11m
kube-system kube-apiserver-kind-control-plane 1/1 Running 0 11m
kube-system kube-controller-manager-kind-control-plane 1/1 Running 0 11m
kube-system kube-proxy-gm8bk 1/1 Running 0 11m
kube-system kube-scheduler-kind-control-plane 1/1 Running 0 11m
local-path-storage local-path-provisioner-7745554f7f-rj5lr 1/1 Running 0 11m
reaper pod-reaper-66d5c85584-tg9kg 1/1 Running 0 2m36s
^ here the kind cluster was up for 11 minutes or so, with the reaper being deployed only a couple minutes ago. Here it's showing it knocked out one of the coredns pods that KinD had (and shows that it's spinning up another to recover!)
If nothing else, I hope this can help you play around with this locally. I'm certainly no helm expect, but maybe it'd be cool to have :-)
from pod-reaper.
Done! #61
from pod-reaper.
That PR was merged some time ago...
from pod-reaper.
Related Issues (20)
- Easier local development HOT 4
- Allow default configuration override with annotations HOT 14
- Log messages not parsed by Stackdriver HOT 4
- Explicit rule enable
- Setup CI/CD outside of docker
- Deployment bug HOT 2
- Schedule doesn't seem to work correctly HOT 7
- Dry run mode HOT 2
- Update Dependencies to use Go Modules HOT 3
- Does pod-reaper act on 1 pod at a time? or all pods simultaneously HOT 10
- Pod status rule is misleading HOT 2
- Upgrade docker base image to use golang 1.15 HOT 3
- In nonprod, reduce resouces: Reap pod/apps so they don't consume resources on weekend HOT 1
- Docker builds no longer happening automatically HOT 5
- v1beta1 ClusterRole is deprecated in v1.17+, unavailable in v1.22+; Use v1 ClusterRole
- MAX_DURATION option does not count the Pod Status Start time HOT 3
- Split the helm chart into a new repo or Equate the the Helm chart version with the pod-reaper version HOT 19
- Pod reaping strategy HOT 5
- Improve dry run log accuracy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ī¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pod-reaper.