Skip to main content

Your AI Powered Kubernetes Assistant from Thiago Alves with fix text-davinci-003

Project description

KoPylot: Your AI-Powered Kubernetes Assistant ๐Ÿค–

Release Build status codecov Commit activity License

KoPylot is an open-source AI-powered Kubernetes assistant. Its goal is to help developers and DevOps engineers to easily manage and monitor their Kubernetes clusters.

You can read more about the project in the blog post.

๐Ÿค Note:

This repo from https://github.com/avsthiago/kopylot with fixed text-davinci-003 has been deprecated. Origin author is Thiago Alves.

๐Ÿ’ซ Features:

  • ๐Ÿ” Audit: Audit a resource, such as pods, deployments, or services using an LLM model. Audit

  • ๐Ÿฉบ Diagnose: Diagnose resources, such as pods, deployments, or services using an LLM model. Diagnose

  • ๐Ÿ’ฌ Chat: Start a chat with KoPylot to generate kubectl commands based on your prompts. Chat

  • โ˜ธ๏ธ Ctl: A wrapper around kubectl. The arguments passed to the ctl subcommand are interpreted by kubectl. Ctl

๐Ÿš€ Quick Start:

  1. Requests an API key from OpenAI.
  2. Export the key using the following command:
export KOPYLOT_AUTH_TOKEN=your_api_key

NOTE: If you want to avoid having the key in your .bashrc, .oh-my-zsh/custom dir, or your .bash_history or .zsh_history, a possible trick is to do something like this:

export KOPYLOT_AUTH_TOKEN=$(cat ../../../keys/openai)
  1. Install KoPylot using pip:
pip install kopylot-gpt
  1. Run KoPylot:
kopylot-gpt --help

๐Ÿ“– Usage:

Usage: kopylot-gpt [OPTIONS] COMMAND [ARGS]...                                           
                                                                                      
โ•ญโ”€ Options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ --version                                                                          โ”‚
โ”‚ --install-completion        [bash|zsh|fish|powershell  Install completion for the  โ”‚
โ”‚                             |pwsh]                     specified shell.            โ”‚
โ”‚                                                        [default: None]             โ”‚
โ”‚ --show-completion           [bash|zsh|fish|powershell  Show completion for the     โ”‚
โ”‚                             |pwsh]                     specified shell, to copy it โ”‚
โ”‚                                                        or customize the            โ”‚
โ”‚                                                        installation.               โ”‚
โ”‚                                                        [default: None]             โ”‚
โ”‚ --help                                                 Show this message and exit. โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
โ•ญโ”€ Commands โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ audit     Audit a pod, deployment, or service using an LLM model.                  โ”‚
โ”‚ chat      Start a chat with kopylot-gpt to generate kubectl commands based your        โ”‚
โ”‚           inputs.                                                                  โ”‚
โ”‚ ctl       A wrapper around kubectl. The arguments passed to the ctl subcommand are โ”‚
โ”‚           interpreted by kubectl.                                                  โ”‚
โ”‚ diagnose  Diagnose a resource e.g. pod, deployment, or service using an LLM model. โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kopylot_gpt-0.0.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kopylot_gpt-0.0.2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file kopylot_gpt-0.0.2.tar.gz.

File metadata

  • Download URL: kopylot_gpt-0.0.2.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/22.6.0

File hashes

Hashes for kopylot_gpt-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6186ddfa4b695332e0d0dd858786ff8124ff95ef55053eb1d0e6ed86dd529744
MD5 3e0de4901a6ec69acdde2c2168a9bd6b
BLAKE2b-256 2453d4858938031f29c5100fb378698c35d054a9d4773ed5d4ac491371acb8fe

See more details on using hashes here.

File details

Details for the file kopylot_gpt-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: kopylot_gpt-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/22.6.0

File hashes

Hashes for kopylot_gpt-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0f722a35e1b4611878a21d01026c32113d1c60089edc67db214822f638ff4131
MD5 0f8dbf44b79474bcc682be3345e0a393
BLAKE2b-256 1c53ed0338a9d4e954a40aaaa24c2e7880b0c0382c523950f4eb3d6d8b9fe7de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page