kube copilot
v0.5.2
Kubernetes Copilot alimentado por OpenAI.
Características:
Instale el copiloto con los comandos a continuación:
go install github.com/feiskyer/kube-copilot/cmd/kube-copilot@latestConfigurar las siguientes variables de entorno:
kubectl esté instalado en la máquina local y el archivo KubeConfig esté configurado para el acceso al clúster Kubernetes.trivy para evaluar los problemas de seguridad de la imagen del contenedor (solo se requieren para el comando audit ).OPENAI_API_KEY para habilitar la funcionalidad de ChatGPT.OPENAI_API_TYPE=azure y OPENAI_API_BASE=https://<replace-this>.openai.azure.com/ .GOOGLE_API_KEY y GOOGLE_CSE_ID (obtenga de aquí y aquí).Luego ejecute los siguientes comandos directamente en el 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 Feiskyer/Kube-Copilot-Python para la implementación de Python del mismo proyecto.
El proyecto se abre en Github Feiskyer/Kube-Copilot (GO) y Feiskyer/Kube-Copilot-Python (Python) con la licencia Apache.
Si desea contribuir al proyecto, siga estas pautas: