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
audit: Analyze and improve YAML files--explain: Output an explanation instead of an audit--output: Save the improved YAML to a filegenerate: Create YAML from natural language
kubesage audit -f ./deployment.yaml -k $OPENAI_API_KEYkubesage audit -f ./deployment.yaml -k $OPENAI_API_KEY -o improved.yamlkubesage audit -f ./deployment.yaml -k $OPENAI_API_KEY --explainkubesage generate -k $OPENAI_API_KEY "A deployment with 2 replicas of nginx exposing port 80"go mod init kubesage
go get github.com/spf13/cobra
go build -o kubesageYou can use either model via OpenAI API.
MIT