Skip to content

HP04Harsh/KubeScale-Ops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

------------------------------------------------------------------------------------------------------------------------------------------------------------

kubecost

🪙 PennyWise-K8s

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.

🚀 Tech Stack

  • Infrastructure: KinD (Kubernetes in Docker)
  • Cost Tracking: Kubecost (Simulated Cloud Pricing)
  • Observability: Prometheus & Grafana
  • Automation Engine: Ansible Core (Kubernetes Collections)

🏗️ Architecture Flow

  1. KinD Cluster runs simulated cloud workloads.
  2. Kubecost & Prometheus scrape resource usage and calculate real-time dollar waste.
  3. Prometheus Alertmanager flags when efficiency falls below 50%.
  4. A webhook triggers the Ansible Playbook which safely cordons and drains underutilized nodes.

🛠️ How to Setup Locally

1. Spin up the KinD Cluster

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

Author: Harsh Pardhi, Platform and DevOps Engineer, Nagpur, India

About

An automated cloud governance and cost optimization platform for Kubernetes, utilizing KinD, Kubecost, Prometheus, and Ansible for resource monitoring and automated self-healing.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors