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)。
如果您想為該項目做出貢獻,請遵循以下準則: