all repos — janny @ c12f502f68fd091311412b452e92d746f026934c

clean up Kubernetes resources after a set TTL

Add usage info to readme
Anirudh Oppiliappan x@icyphox.sh
Tue, 09 Mar 2021 18:30:54 +0530
commit

c12f502f68fd091311412b452e92d746f026934c

parent

029611c5fc8222d5cf5da4f2d96c9cd13f9f3759

1 files changed, 29 insertions(+), 6 deletions(-)

jump to
M readmereadme

@@ -7,10 +7,38 @@

ROADMAP [x] Implement basic resource cleaning -[ ] Black/whitelist resources +[x] Black/whitelist resources (--included-resources flag) [ ] Expiry timestamp [ ] Helm chart +USAGE + +Two ways to deploy janny: plain Kubernetes manifests or via a Helm +chart. + +Kubernetes manifests +-------------------- + +1. Modify deploy/deployment.yaml: specify included resources, and +namespaces for janny to operate on. + +2. Create a service account + + $ kubectl create sa janny + +3. Modify deploy/clusterrole.yaml to limit janny's access to resources. + Ensure that janny has access to the resources you specified in the + deployment.yaml! + +4. Deploy janny: + + $ kubectl apply -f deploy/ + +Helm chart +---------- + +TODO + DEVELOPING

@@ -29,11 +57,6 @@ Finally, deploy to your cluster:

$ kubectl create sa janny $ kubectl apply -f deploy/ - -This will create a ServiceAccount, ClusterRole, ClusterRoleBinding and a -Deployment. Edit to suit your needs. - -Note: Absolutely nothing works at the moment, so don't even bother. PRIOR ART