kube copilot
v0.5.2
Kubernetes Copilot은 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) 및 Apache 라이센스가있는 Feiskyer/Kube-Copilot-Python (Python)에서 OpenSource입니다.
프로젝트에 기여하려면 다음을 따르십시오.