Kubernetes resource analyzer for monitoring and storing cluster configuration data
110
A Kubernetes resource analyzer that collects and stores information about deployments, statefulsets, jobs, environment variables, configmaps, and secrets across specified namespaces.
š MEDIUM ā https://medium.com/@arconixforgeā š» Git ā https://github.com/ArconixForgeā š³ Docker ā https://hub.docker.com/u/arconixforgeā š¦ Artifact ā https://artifacthub.io/packages/search?user=ArconixForgeā š³ X ā https://x.com/ArconixForgeā
# Pull the Docker image
docker pull arconixforge/k8-analyzer:v5.0
# Deploy using Helm
helm repo add arconixforge https://artifacthub.io/packages/helm/k8-analyzer
helm install k8-analyzer arconixforge/k8-analyzer
| Variable | Description | Default | Required |
|---|---|---|---|
| NAMESPACES | Comma-separated list of namespaces to monitor | - | Yes |
| COLLECTION_INTERVAL | Data collection interval in seconds | 300 | Yes |
| DB_NAME | PostgreSQL database name | postgres | Yes |
| DB_USER | PostgreSQL username | postgres | Yes |
| DB_PASSWORD | PostgreSQL password | postgres | Yes |
| DB_HOST | PostgreSQL host | postgres-service | Yes |
| DB_PORT | PostgreSQL port | 5432 | Yes |
The service account used by k8-analyzer needs the following permissions:
rules:
- apiGroups: [""]
resources: ["configmaps", "secrets"]
verbs: ["get", "list"]
- apiGroups: ["apps"]
resources: ["deployments", "statefulsets"]
verbs: ["get", "list"]
- apiGroups: ["batch"]
resources: ["jobs"]
verbs: ["get", "list"]
# Add the Helm repository
helm repo add arconixforge https://artifacthub.io/packages/helm/k8-analyzer
# Install the chart
helm install k8-analyzer arconixforge/k8-analyzer \
--set namespaces="default,kube-system" \
--set postgresql.enabled=true
The collected data is stored in a table named gke_data with the following schema:
CREATE TABLE gke_data (
id SERIAL PRIMARY KEY,
image_details JSONB,
env_details JSONB,
config_details JSONB,
secret_details JSONB,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
Contributions are welcome! Please read our Contributing Guideā for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSEā file for details.
Content type
Image
Digest
sha256:cdf85e589ā¦
Size
58.8 MB
Last updated
over 1 year ago
docker pull arconixforge/k8-analyzer:v1.0