quotaCompare

command module
v0.0.0-...-94f75e8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: GPL-2.0 Imports: 15 Imported by: 0

README

quotaCompare

quotaCompare is a tool designed to compare requested resource quotas against the actual resource usage in Kubernetes namespaces. This can help ensure that your Kubernetes clusters are properly configured and that resources are being utilized as expected.

Overview

The project is structured as an example Git repository where each directory represents a Kubernetes namespace. Within each namespace directory, there is a resourceQuota.yaml or resourceQuota.json file that specifies the requested resource quotas for that namespace.

Features

  • Namespace-based Quota Comparison: Each directory corresponds to a namespace, allowing for organized and straightforward quota management.
  • Support for YAML and JSON: Resource quotas can be defined in either YAML or JSON format.
  • Kubernetes Integration: The tool checks the requested quotas against the actual usage in Kubernetes.

Getting Started

Prerequisites
  • Go programming language installed on your machine.
  • Access to a Kubernetes cluster where you have permissions to view resource quotas.
Installation
  1. Clone the repository:
   git clone [https://github.com/jmainguy/quotaCompare.git](https://github.com/jmainguy/quotaCompare.git)
   cd quotaCompare
  1. Build the project:
go build

Usage

Run the tool by specifying the path to the directory containing your namespace directories:

./quotaCompare /path/to/namespaces

The tool will read each resourceQuota.yaml or resourceQuota.json file and compare the requested quotas with the actual usage in the Kubernetes cluster.

Example

An example directory structure might look like this:

exampleQuotaGitRepo/
├── namespace1/
│   └── resourceQuota.yaml
├── namespace2/
│   └── resourceQuota.json

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL