konmari

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2020 License: MIT Imports: 11 Imported by: 0

README

konmari

konmari is a garbage collector to delete ConfigMaps and Secrets that are no longer referenced by Pods.

Running as a CronJob

konmari can be run as a job or cronjob inside of a pod. When it runs, it deletes ConfigMaps or Secrets that are created before the period of time specified by deletePeriod, and are not referenced by any pod.

Setup RBAC
$ kuectl create -f kubernetes/rbac.yaml
Create a CronJob
$ kuectl create -f kubernetes/cronjob.yaml

Command line flags

Flag Description Default
namespace Namespace in which konmari run. default
deletePeriod Period to judge as old Object. 24*time.Hour*30
kubeconfig Path to kubeconfig file with authorization and master location information. ""
dryrun Whether or not to actually delete Objects. false
disableSecrets Whether or not to ignore Secrets. false
disableConfigMaps Whether or not to ignore ConfigMaps. false

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL