kube copilot
v0.5.2
Kubernetes Copilot ขับเคลื่อนโดย Openai
คุณสมบัติ:
ติดตั้ง Copilot ด้วยคำสั่งด้านล่าง:
go install github.com/feiskyer/kube-copilot/cmd/kube-copilot@latestตั้งค่าตัวแปรสภาพแวดล้อมต่อไปนี้:
kubectl ติดตั้งบนเครื่องท้องถิ่นและไฟล์ kubeconfig ได้รับการกำหนดค่าสำหรับการเข้าถึงคลัสเตอร์ Kubernetestrivy เพื่อประเมินปัญหาความปลอดภัยของภาพคอนเทนเนอร์ (จำเป็นสำหรับคำสั่ง audit เท่านั้น)OPENAI_API_KEY เพื่อเปิดใช้งานฟังก์ชั่น CHATGPTOPENAI_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) และ Feiskyer/Kube-Copilot-Python (Python) พร้อมใบอนุญาต Apache
หากคุณต้องการมีส่วนร่วมในโครงการโปรดปฏิบัติตามแนวทางเหล่านี้: