diff options
| author | Павел Жуков <33721692+LeaveMyYard@users.noreply.github.com> | 2023-03-27 12:39:02 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-27 12:39:02 +0300 |
| commit | 81645dbd3ba146973ca03e86783abfe1486a4275 (patch) | |
| tree | b5e608ca4fff2504009dfc4eb7f4d03638ce2ce5 | |
| parent | 61d73922087bb23d665962aba97c87b9cd9c9189 (diff) | |
| parent | a7e137633e895c0f167262c20fa409fccc4202e5 (diff) | |
Merge pull request #1 from robusta-dev/readme-changing
Readme changing
| -rw-r--r-- | README.md | 201 | ||||
| -rw-r--r-- | images/logo.png | bin | 0 -> 1674317 bytes | |||
| -rw-r--r-- | images/screenshot.png | bin | 0 -> 429610 bytes | |||
| -rw-r--r-- | robusta_krr/main.py | 2 | ||||
| -rw-r--r-- | robusta_krr/utils/logo.py | 12 |
5 files changed, 206 insertions, 9 deletions
@@ -1,2 +1,199 @@ -# robusta-krr -Robusta's Resource Recommendation Engine for Kubernetes +<a name="readme-top"></a> + +[![Contributors][contributors-shield]][contributors-url] +[![Forks][forks-shield]][forks-url] +[![Stargazers][stars-shield]][stars-url] +[![Issues][issues-shield]][issues-url] +[![MIT License][license-shield]][license-url] +[![LinkedIn][linkedin-shield]][linkedin-url] + +<!-- PROJECT LOGO --> +<br /> +<div align="center"> + <a href="https://github.com/robusta/robusta-krr"> + <img src="images/logo.png" alt="Logo" width="320" height="320"> + </a> + <h3 align="center">Robusta's KubeKraken</h3> + <p align="center"> + Prometheus-based Kubernetes Resource Recommendations + <br /> + <a href="https://github.com/robusta/robusta-krr"><strong>Explore the docs »</strong></a> + <br /> + <br /> + <a href="https://github.com/robusta/robusta-krr">View Demo</a> + · + <a href="https://github.com/robusta/robusta-krr/issues">Report Bug</a> + · + <a href="https://github.com/robusta/robusta-krr/issues">Request Feature</a> + </p> +</div> +<!-- TABLE OF CONTENTS --> +<details> + <summary>Table of Contents</summary> + <ol> + <li> + <a href="#about-the-project">About The Project</a> + <ul> + <li><a href="#built-with">Built With</a></li> + </ul> + </li> + <li> + <a href="#getting-started">Getting Started</a> + <ul> + <li><a href="#prerequisites">Prerequisites</a></li> + <li><a href="#installation">Installation</a></li> + </ul> + </li> + <li><a href="#usage">Usage</a></li> + <li><a href="#roadmap">Roadmap</a></li> + <li><a href="#contributing">Contributing</a></li> + <li><a href="#license">License</a></li> + <li><a href="#contact">Contact</a></li> + <li><a href="#acknowledgments">Acknowledgments</a></li> + </ol> +</details> +<!-- ABOUT THE PROJECT --> + +## About The Project + +[![Product Name Screen Shot][product-screenshot]](https://example.com) + +Robusta's Kubernetes Resource Recommender (KRR) is a tool that helps users to optimize the resource usage of their Kubernetes clusters. It is based on the Prometheus monitoring system and the Kubernetes API. It is designed to be used both as a CLI tool or as a Kubernetes operator. It is also designed to be easily integrated into Robusta UI, so if you are already using it you can easily start using KRR. + +This tool is also designed to be easily extensible. It is possible to add additional calculation strategies yourself, if you want to use a different strategy than the ones provided by default. + +<p align="right">(<a href="#readme-top">back to top</a>)</p> + +<!-- GETTING STARTED --> + +## Getting Started + +This is an example of how you may give instructions on setting up your project locally. +To get a local copy up and running follow these simple example steps. + +### Installation + +_Depending on your operating system, select the appropriate installation method._ + +#### Linux + +```sh +sudo apt install robusta-krr +``` + +#### MacOS + +```sh +brew install robusta-krr +``` + +#### Windows + +```sh +choco install robusta-krr +``` + +#### Debian + +```sh +sudo apt install robusta-krr +``` + +#### Docker + +```sh +docker pull robusta/krr +``` + +#### Manual + +1. Make sure you have [Python 3.11](https://www.python.org/downloads/) installed. +2. + +```sh +git clone https://github.com/robusta-dev/robusta-krr +``` + +3. Install poetry (the package manager): + +```sh +pip install poetry +``` + +4. Install the dependencies: + +```sh +poetry install +``` + +5. Run the tool: + +```sh +poetry run krr +``` + +<p align="right">(<a href="#readme-top">back to top</a>)</p> + +<!-- USAGE EXAMPLES --> + +## Usage + +A simple exaple of how to run the "Simple" strategy: + +```sh +krr simple +``` + +<p align="right">(<a href="#readme-top">back to top</a>)</p> + +<!-- CONTRIBUTING --> + +## Contributing + +Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**. + +If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". +Don't forget to give the project a star! Thanks again! + +1. Fork the Project +2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`) +3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`) +4. Push to the Branch (`git push origin feature/AmazingFeature`) +5. Open a Pull Request + +<p align="right">(<a href="#readme-top">back to top</a>)</p> + +<!-- LICENSE --> + +## License + +Distributed under the MIT License. See `LICENSE.txt` for more information. + +<p align="right">(<a href="#readme-top">back to top</a>)</p> + +<!-- CONTACT --> + +## Contact + +If you have any questions, feel free to contact support@robusta.dev + +Project Link: [https://github.com/robusta-dev/robusta-krr](https://github.com/robusta-dev/robusta-krr) + +<p align="right">(<a href="#readme-top">back to top</a>)</p> + +<!-- MARKDOWN LINKS & IMAGES --> +<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --> + +[contributors-shield]: https://img.shields.io/github/contributors/othneildrew/Best-README-Template.svg?style=for-the-badge +[contributors-url]: https://github.com/othneildrew/Best-README-Template/graphs/contributors +[forks-shield]: https://img.shields.io/github/forks/othneildrew/Best-README-Template.svg?style=for-the-badge +[forks-url]: https://github.com/othneildrew/Best-README-Template/network/members +[stars-shield]: https://img.shields.io/github/stars/othneildrew/Best-README-Template.svg?style=for-the-badge +[stars-url]: https://github.com/othneildrew/Best-README-Template/stargazers +[issues-shield]: https://img.shields.io/github/issues/othneildrew/Best-README-Template.svg?style=for-the-badge +[issues-url]: https://github.com/othneildrew/Best-README-Template/issues +[license-shield]: https://img.shields.io/github/license/othneildrew/Best-README-Template.svg?style=for-the-badge +[license-url]: https://github.com/othneildrew/Best-README-Template/blob/master/LICENSE.txt +[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555 +[linkedin-url]: https://linkedin.com/in/othneildrew +[product-screenshot]: images/screenshot.png diff --git a/images/logo.png b/images/logo.png Binary files differnew file mode 100644 index 0000000..8e6d51d --- /dev/null +++ b/images/logo.png diff --git a/images/screenshot.png b/images/screenshot.png Binary files differnew file mode 100644 index 0000000..1ad5461 --- /dev/null +++ b/images/screenshot.png diff --git a/robusta_krr/main.py b/robusta_krr/main.py index 2c5d0b1..9f7f321 100644 --- a/robusta_krr/main.py +++ b/robusta_krr/main.py @@ -79,7 +79,7 @@ for strategy_name, strategy_type in BaseStrategy.get_all().items(): # type: ign quiet: bool = typer.Option(False, "--quiet", "-q", help="Enable quiet mode", rich_help_panel="Logging Settings"), {strategy_settings}, ) -> None: - '''Run KRR using the `{func_name}` strategy''' + '''Run KubeKraken using the `{func_name}` strategy''' config = Config( clusters=clusters, diff --git a/robusta_krr/utils/logo.py b/robusta_krr/utils/logo.py index a6b9641..a35f05c 100644 --- a/robusta_krr/utils/logo.py +++ b/robusta_krr/utils/logo.py @@ -1,11 +1,11 @@ ASCII_LOGO = r""" [bold magenta] - _____ _ _ _ _______ _____ - | __ \ | | | | | |/ / __ \| __ \ - | |__) |___ | |__ _ _ ___| |_ __ _ | ' /| |__) | |__) | - | _ // _ \| '_ \| | | / __| __/ _` | | < | _ /| _ / - | | \ \ (_) | |_) | |_| \__ \ || (_| | | . \| | \ \| | \ \ - |_| \_\___/|_.__/ \__,_|___/\__\__,_| |_|\_\_| \_\_| \_\ + _ __ _ _ __ _ +| | / / | | | | / / | | +| |/ / _ _| |__ ___| |/ / _ __ __ _| | _____ _ __ +| \| | | | '_ \ / _ \ \| '__/ _` | |/ / _ \ '_ \ +| |\ \ |_| | |_) | __/ |\ \ | | (_| | < __/ | | | +\_| \_/\__,_|_.__/ \___\_| \_/_| \__,_|_|\_\___|_| |_| [/bold magenta] """ |
