Skip to content

Commit 44fdcce

Browse files
committed
📝 docs
modified: README.md; new file: assets/example.png
1 parent 3d3aee9 commit 44fdcce

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

README.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
11
# kube-reqsizer
2-
// TODO(user): Add simple overview of use/purpose
2+
![alt text](/assets/example.png)
3+
4+
**kube-reqsizer** is a kubernetes controller that will measure the usage of pods over time and reduce their requests based on the average usage.
35

46
## Description
5-
// TODO(user): An in-depth paragraph about your project and overview of use
67

8+
Kube-reqsizer has two primary custom flags:
9+
10+
```
11+
-annotation-filter bool
12+
13+
Enable a annotation filter for pod scraping. Enabling this will ensure that the controller only sets requests of controllers of which pods have the annotation. (auto.request.operator/optimize=true)
14+
15+
-sample-size int
16+
17+
The sample size to create an average from when reconciling. (default 1)
18+
```
19+
20+
Sample size is the amount of data-points the controller will store in cache before constructing an average for the pod. After a requests resizing, the cache will clean itself and a new average will be calculated based on the sample size.
21+
22+
# Deploy
23+
24+
// todo
25+
26+
# Development
727
## Getting Started
828
You’ll need a Kubernetes cluster to run against. You can use [KIND](https://sigs.k8s.io/kind) to get a local cluster for testing, or run against a remote cluster.
929
**Note:** Your controller will automatically use the current context in your kubeconfig file (i.e. whatever cluster `kubectl cluster-info` shows).
@@ -41,17 +61,14 @@ UnDeploy the controller to the cluster:
4161
make undeploy
4262
```
4363

44-
## Contributing
45-
// TODO(user): Add detailed information on how you would like others to contribute to this project
46-
4764
### How it works
4865
This project aims to follow the Kubernetes [Operator pattern](https://kubernetes.io/docs/concepts/extend-kubernetes/operator/)
4966

5067
It uses [Controllers](https://kubernetes.io/docs/concepts/architecture/controller/)
5168
which provides a reconcile function responsible for synchronizing resources untile the desired state is reached on the cluster
5269

5370
### Test It Out
54-
1. Install the CRDs into the cluster:
71+
1. Install the controller into the cluster:
5572

5673
```sh
5774
make install

assets/example.png

11.2 KB
Loading

0 commit comments

Comments
 (0)