Giter Site home page Giter Site logo

kupilot's Introduction

Kupilot

Kupilot is a command-line tool that provides Kubernetes support using OpenAI's GPT models. It's designed to offer instant help with Kubernetes questions and operations through an interactive terminal interface.

Kupilot Demo

Getting Started

Prior Requirements

OpenAI API Key: You can obtain this key by creating an account on the OpenAI website. After signing up, navigate to the API section to generate your key.

Please keep in mind, Kupilot may have write-access to your Kubernetes
cluster. It is advisable to validate and execute any command prudently

Running Kupilot Locally with Docker

export OPENAI_API_KEY=<your-openai-api-key>
docker run --rm -it -e OPENAI_API_KEY=$OPENAI_API_KEY -e KUBECONFIG=/.kube/config -v ~/.kube:/.kube ghcr.io/r2k1/kupilot:latest kupilot

Running Kupilot Locally with Go

export OPENAI_API_KEY=<your-openai-api-key>
go run github.com/r2k1/kupilot

Alternatively, you may choose to install the tool:

export OPENAI_API_KEY=<your-openai-api-key>
go install github.com/r2k1/kupilot
kupilot

Running Kupilot Locally with Binary

Download binary from the latest release

export OPENAI_API_KEY=<your-openai-api-key>
kupilot

Running Kupilot within Kubernetes

This method permits the use of RBAC and narrows down the permission scope to read-only within the cluster:

export OPENAI_API_KEY=<your-openai-api-key>
curl https://raw.githubusercontent.com/r2k1/kupilot/main/kube.yaml | envsubst '$OPENAI_API_KEY' | kubectl apply -f -
kubectl -n kupilot exec -it $(kubectl get pods -n kupilot -l app=kupilot -o jsonpath='{.items[0].metadata.name}') -- kupilot

kupilot's People

Contributors

r2k1 avatar

Stargazers

 avatar Ben Brady avatar Dave Fellows avatar

Watchers

Dave Fellows avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.