kube copilot
v0.5.2
Kubernetes Copilot powered by OpenAI.
Features:
Install the copilot with the commands below:
go install github.com/feiskyer/kube-copilot/cmd/kube-copilot@latestSetup the following environment variables:
kubectl is installed on the local machine and the kubeconfig file is configured for Kubernetes cluster access.trivy to assess container image security issues (only required for the audit command).OPENAI_API_KEY environment variable to enable ChatGPT functionality.
OPENAI_API_TYPE=azure and OPENAI_API_BASE=https://<replace-this>.openai.azure.com/.GOOGLE_API_KEY and GOOGLE_CSE_ID (obtain from here and here).Then run the following commands directly in the terminal:
Kubernetes Copilot powered by OpenAI
Usage:
kube-copilot [command]
Available Commands:
analyze Analyze issues for a given resource
audit Audit security issues for a Pod
completion Generate the autocompletion script for the specified shell
diagnose Diagnose problems for a Pod
execute Execute operations based on prompt instructions
generate Generate Kubernetes manifests
help Help about any command
Flags:
-c, --count-tokens Print tokens count
-h, --help help for kube-copilot
-t, --max-tokens int Max tokens for the GPT model (default 1024)
-m, --model string OpenAI model to use (default "gpt-4")
-v, --verbose Enable verbose output (default true)
Use "kube-copilot [command] --help" for more information about a command.Please refer feiskyer/kube-copilot-python for the Python implementation of the same project.
The project is opensource at github feiskyer/kube-copilot (Go) and feiskyer/kube-copilot-python (Python) with Apache License.
If you would like to contribute to the project, please follow these guidelines: