------------------------------------------------------------------------------------------------------------------------------------------------------------
An automated Cloud Governance & Cost Optimization platform built inside a localized Kubernetes (KinD) environment. It tracks real-time cluster spend, flags resource inefficiencies, and triggers self-healing Ansible playbooks to optimize node allocation.
- Infrastructure: KinD (Kubernetes in Docker)
- Cost Tracking: Kubecost (Simulated Cloud Pricing)
- Observability: Prometheus & Grafana
- Automation Engine: Ansible Core (Kubernetes Collections)
- KinD Cluster runs simulated cloud workloads.
- Kubecost & Prometheus scrape resource usage and calculate real-time dollar waste.
- Prometheus Alertmanager flags when efficiency falls below 50%.
- A webhook triggers the Ansible Playbook which safely cordons and drains underutilized nodes.
kind create cluster --config kind-config.yaml --name pennywise-cluster
# Install Prometheus & Grafana
helm install monitoring prometheus-community/kube-prometheus-stack -n monitoring --create-namespace
# Install Kubecost
helm install kubecost kubecost/cost-analyzer -n kubecost --create-namespace
# Run Playbook
cd ansible/
ansible-playbook scale_down_inefficient.yml