Coder Social home page Coder Social logo

Helm chart about pod-reaper HOT 5 CLOSED

target avatar target commented on May 28, 2024
Helm chart

from pod-reaper.

Comments (5)

brianberzins avatar brianberzins commented on May 28, 2024

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.

Bryce-L avatar Bryce-L commented on May 28, 2024

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.

brianberzins avatar brianberzins commented on May 28, 2024

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/

  1. 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! 😊
  1. 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.

hlascelles avatar hlascelles commented on May 28, 2024

Done! #61

from pod-reaper.

hlascelles avatar hlascelles commented on May 28, 2024

That PR was merged some time ago...

from pod-reaper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.