kube copilot
v0.5.2
Kubernetes Copilot Powered by Openai.
Características:
Instale o copiloto com os comandos abaixo:
go install github.com/feiskyer/kube-copilot/cmd/kube-copilot@latestConfigure as seguintes variáveis de ambiente:
kubectl está instalado na máquina local e o arquivo Kubeconfig está configurado para acesso ao cluster Kubernetes.trivy para avaliar os problemas de segurança da imagem do contêiner (apenas necessário para o comando audit ).OPENAI_API_KEY para ativar a funcionalidade ChatGPT.OPENAI_API_TYPE=azure e OPENAI_API_BASE=https://<replace-this>.openai.azure.com/ .GOOGLE_API_KEY e GOOGLE_CSE_ID (obtenha daqui e aqui).Em seguida, execute os seguintes comandos diretamente no 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.Consulte o Feiskyer/Kube-Copilot-Python para a implementação do Python do mesmo projeto.
O projeto é OpenSource no Github Feiskyer/Kube-Copilot (GO) e Feiskyer/Kube-Copilot-Python (Python) com licença Apache.
Se você deseja contribuir para o projeto, siga estas diretrizes: