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.يرجى الرجوع إلى Feiskyer/Kube-Copilot-Python لتنفيذ Python لنفس المشروع.
المشروع هو OpenSource في Github Feiskyer/Kube-Copilot (GO) و Feiskyer/Kube-Copilot-Python (Python) مع ترخيص Apache.
إذا كنت ترغب في المساهمة في المشروع ، فيرجى اتباع هذه الإرشادات: