Watch and record changes to ConfigMaps and Secrets in Kubernetes for later reporting by kubevol
176
Kubevol allows you to audit all your Kubernetes pods for an attached volume or see all the volumes attached to each pod by a specific type (eg: ConfigMap, Secret).
Features:
You can download the latest release from Releases.
Since Kubernetes doesn't keep track of when a Secret or Configmap was updated, kubevol has a Kubernetes controller that will watch for all changes and will record the last modified date. This then gives kubevol the ability to detect if an attached Secret or Configmap is outdated.
To install the watch controller, run:
$ kubectl apply -f https://raw.githubusercontent.com/bmaynard/kubevol/master/deployment/manifest.yaml
If your kubeconfig is not in the default location in your home directory, you can specify a custom kubeconfig file by creating the following file:
~/.kubevol.yaml
---
kubeconfig: /path/to/kube/config
$ kubevol secret
There are 12 pods in the cluster
Searching for pods that have a Secret attached
+------------------+----------+-----------------------+-----------------------+-------------+
| NAMESPACE | POD NAME | SECRET NAME | VOLUME NAME | OUT OF DATE |
+------------------+----------+-----------------------+-----------------------+-------------+
| kubevol-test-run | redis | redis-secret | redis-secret | No |
| kubevol-test-run | redis | redis-secret-outdated | redis-secret-outdated | Yes |
+------------------+----------+-----------------------+-----------------------+-------------+
Content type
Image
Digest
Size
18.6 MB
Last updated
about 6 years ago
docker pull bmaynard/kubevol-watch:v0.6.1