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.
- Host: GitHub
- URL: https://github.com/matinz626/configmap-inspector
- Owner: MatinZ626
- Created: 2025-05-28T06:58:01.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-28T08:11:36.000Z (about 1 year ago)
- Last Synced: 2025-10-12T07:44:56.790Z (9 months ago)
- Topics: bash, k8s, k8s-configmap, k8s-deployment, k8s-management, kubernetes
- Language: Shell
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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