Skip to main content

Kait - Kubernetes AI Tool

Project description

Python Version

Kait (Kubernetes AI Tool)

kait is an AI assisted kubernetes debugging tool which automatically troubleshoots, diagnoses, and fixes issues related to kubernetes.

kait uses autonomous AI agents built using Microsoft's AutoGen

Installation and setup

You can install kait directly using pip:

pip install kait

kait requires an OpenAI API key which is read via the environment variable KAIT_OPENAI_KEY. You can provide a list of models to use and kait will use the available model. It is recommended to use models with the capabilities of gpt-4. Larger contexts work better too e.g. 'gpt-4-1106-preview'. Your environment variable needs to point to a list of models in the following format:

[
    {
        "model": "gpt-4",
        "api_key": "YOUR_OPENAI_API_KEY"
    }
]

Usage

kait requires kubectl to be installed and authenticated against the cluster you want to use.

To run kait simply run:

kait debug <DESCRIPTION OF THE ISSUE TO DEBUG>

For a full list of options, run:

kait debug --help

Examples

A number of examples/ are provided so you can see how kait performs.

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

kait-0.2.0.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

kait-0.2.0-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

Supported by

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