8000 GitHub - k8s-school/kubesage: AI-powered CLI assistant for Kubernetes YAML audit and generation
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

k8s-school/kubesage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KubeSage

KubeSage is a smart CLI assistant for DevOps and Kubernetes practitioners. It uses a Large Language Model (LLM) to:

  • Audit and suggest improvements to Kubernetes YAML files
  • Explain line-by-line what a YAML file does
  • Generate new Kubernetes manifests from natural language prompts

📦 Features

  • audit: Analyze and improve YAML files
  • --explain: Output an explanation instead of an audit
  • --output: Save the improved YAML to a file
  • generate: Create YAML from natural language

🚀 Usage

Audit a file

kubesage audit -f ./deployment.yaml -k $OPENAI_API_KEY

Audit and save improved YAML

kubesage audit -f ./deployment.yaml -k $OPENAI_API_KEY -o improved.yaml

Explain a file

kubesage audit -f ./deployment.yaml -k $OPENAI_API_KEY --explain

Generate YAML from a prompt

kubesage generate -k $OPENAI_API_KEY "A deployment with 2 replicas of nginx exposing port 80"

🛠 Build

go mod init kubesage
go get github.com/spf13/cobra
go build -o kubesage

🧠 Powered by GPT-4 (or GPT-3.5)

You can use either model via OpenAI API.

📄 License

MIT

About

AI-powered CLI assistant for Kubernetes YAML audit and generation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0