1
- # podreaper
1
+ # podbouncer
2
2
3
- Podreaper is a [ Kubernetes operator] ( https://kubernetes.io/docs/concepts/extend-kubernetes/operator/ )
3
+ Podbouncer is a [ Kubernetes operator] ( https://kubernetes.io/docs/concepts/extend-kubernetes/operator/ )
4
4
responsible for deleting non-running pods after a configurable grace period.
5
5
6
6
## Description
7
7
8
- Using podreaper in your cluster will result in the deletion of all pods in one of
8
+ Using podbouncer in your cluster will result in the deletion of all pods in one of
9
9
these states: ` Pending ` , ` Completed ` , ` Failed `
10
10
11
11
This operator acts on pods of all namespaces, except the ` kube-system ` namespace.
@@ -24,7 +24,7 @@ This operator acts on pods of all namespaces, except the `kube-system` namespace
24
24
** Build and push your image to the location specified by ` IMG ` :**
25
25
26
26
``` sh
27
- make docker-build docker-push IMG=< some-registry> /podreaper :tag
27
+ make docker-build docker-push IMG=< some-registry> /podbouncer :tag
28
28
```
29
29
30
30
** NOTE:** This image ought to be published in the personal registry you specified.
@@ -40,7 +40,7 @@ make install
40
40
** Deploy the Manager to the cluster with the image specified by ` IMG ` :**
41
41
42
42
``` sh
43
- make deploy IMG=< some-registry> /podreaper :tag
43
+ make deploy IMG=< some-registry> /podbouncer :tag
44
44
```
45
45
46
46
> ** NOTE** : If you encounter RBAC errors, you may need to grant yourself cluster-admin
@@ -81,7 +81,7 @@ Following are the steps to build the installer and distribute this project to us
81
81
1 . Build the installer for the image built and published in the registry:
82
82
83
83
``` sh
84
- make build-installer IMG=< some-registry> /podreaper :tag
84
+ make build-installer IMG=< some-registry> /podbouncer :tag
85
85
```
86
86
87
87
NOTE: The makefile target mentioned above generates an 'install.yaml'
@@ -94,15 +94,26 @@ its dependencies.
94
94
Users can just run kubectl apply -f <URL for YAML BUNDLE > to install the project, i.e.:
95
95
96
96
``` sh
97
- kubectl apply -f https://raw.githubusercontent.com/< org> /podreaper/< tag or branch> /dist/install.yaml
97
+ kubectl apply -f https://raw.githubusercontent.com/< org> /podbouncer/< tag or branch> /dist/install.yaml
98
+ ```
99
+
100
+ ## Testing
101
+
102
+ ### Create Test Pods
103
+
104
+ To test podbouncer, you must have some non-running pods in your cluster:
105
+
106
+ ``` shell
107
+ kubectl run --restart=Never --image busybox some-pod
108
+ kubectl run --restart=Never --image busybox some-other-pod
98
109
```
99
110
100
111
## Contributing
101
- // TODO(user): Add detailed information on how you would like others to contribute to this project
102
112
103
- ** NOTE: ** Run ` make help ` for more information on all potential ` make ` targets
113
+ This project is a personal learning project.
104
114
105
- More information can be found via the [ Kubebuilder Documentation] ( https://book.kubebuilder.io/introduction.html )
115
+ You are welcome to use it, learn from it. You are welcome to submit pull requests,
116
+ but I do not guarantee any level of activity on this project.
106
117
107
118
## License
108
119
0 commit comments