kube copilot
v0.5.2
Kubernetes Openaiを搭載したCopilot。
特徴:
下のコマンドで副操縦士をインストールします。
go install github.com/feiskyer/kube-copilot/cmd/kube-copilot@latest次の環境変数をセットアップします。
kubectlがローカルマシンにインストールされていることを確認し、KubeconfigファイルがKubernetesクラスターアクセス用に構成されていることを確認します。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.同じプロジェクトのPython実装については、Feiskyer/Kube-Copilot-Pythonを参照してください。
このプロジェクトは、Github Feiskyer/Kube-Copilot(go)およびFeiskyer/Kube-Copilot-Python(Python)でApacheライセンスを使用しています。
プロジェクトに貢献したい場合は、次のガイドラインに従ってください。