An open API service indexing awesome lists of open source software.

https://github.com/matinz626/configmap-inspector

A shell script for auditing ConfigMap usage across Kubernetes Deployments.
https://github.com/matinz626/configmap-inspector

bash k8s k8s-configmap k8s-deployment k8s-management kubernetes

Last synced: 3 months ago
JSON representation

A shell script for auditing ConfigMap usage across Kubernetes Deployments.

Awesome Lists containing this project

README

          

# Description

A shell script for auditing ConfigMap usage across Kubernetes Deployments. It scans all namespaces (excluding kube-system, kube-public, and kube-node-lease) and identifies which ConfigMaps are referenced in each Deployment—either as volume mounts or environment variables.
The script outputs a readable report to output.txt listing each namespace along with its relevant ConfigMap → Deployment mappings.

# Let's Run it

Install yq:
```bash
snap install yq
```
Clone the project:
```bash
git clone https://github.com/MatinZ626/configmap-inspector.git
```
Dont forget permission:
```bash
chmod +x configmaptodeplo.sh
```
Now run it and see the result in output.txt