kube copilot
v0.5.2
由Openai提供动力的Kubernetes Copilot。
特征:
以下面的命令安装副驾驶:
go install github.com/feiskyer/kube-copilot/cmd/kube-copilot@latest设置以下环境变量:
kubectl ,并为kubernetes群集访问配置了kubeconfig文件。trivy评估容器图像安全问题(仅适用于audit命令)。OPENAI_API_KEY环境变量,以启用ChatGpt功能。OPENAI_API_TYPE=azure和OPENAI_API_BASE=https://<replace-this>.openai.azure.com/ 。GOOGLE_API_KEY和GOOGLE_CSE_ID (从此处和此处获取)。然后直接在终端运行以下命令:
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.请参阅Feiskyer/Kube-Copilot-Python,以进行同一项目的Python实施。
该项目是在Github Feiskyer/Kube-Copilot(GO)和Apache许可证的Github Feiskyer/Kube-Copilot(GO)和Feiskyer/Kube-Copilot-Python(Python)。
如果您想为该项目做出贡献,请遵循以下准则: