Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)17k · #10765

kubeeye

Skill này làm gì

Skill này giúp agent AI sử dụng KubeEye, một công cụ kiểm tra cụm cho KubeSphere. Skill dành cho người vận hành cụm muốn kiểm tra thường xuyên các workload, node và cấu hình.

Khi nào nên dùng

  • ✓Khi bạn muốn cài đặt hoặc cấu hình mở rộng KubeEye trong KubeSphere.
  • ✓Khi bạn cần viết một quy tắc kiểm tra một cài đặt cụm hoặc một điều kiện của workload.
  • ✓Khi bạn muốn một lần kiểm tra hoặc kiểm tra theo lịch và cần báo cáo của nó.

Liên kết skill

https://github.com/kubesphere/kubesphere/blob/master/skills/kubeeye/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/kubesphere/kubesphere/blob/master/skills/kubeeye/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể thiết lập một kế hoạch kiểm tra KubeEye để kiểm tra các node của chúng tôi mỗi đêm và cho tôi xem báo cáo mới nhất không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent giúp cài đặt mở rộng và tạo các quy tắc kiểm tra cùng kế hoạch trong cụm. Sau đó nó lấy kết quả kiểm tra và hiển thị báo cáo để bạn xem xét.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

KubeEye

Overview

KubeEye is a Kubernetes cluster inspection tool for KubeSphere. It detects issues in workloads, nodes, configurations, and components through OPA/Rego policies, PromQL queries, file integrity checks, kernel parameter validation, and systemd health checks. It is installed as a KubeSphere extension.

When to Use

  • Installing or configuring the KubeEye cluster inspection extension in KubeSphere
  • Writing cluster inspection rules (OPA, PromQL, file checks, etc.)
  • Configuring periodic or one-shot inspection tasks
  • Viewing or downloading cluster inspection reports

Architecture

Extension Installation Flow

kspublish (push extension to KubeSphere)
    |
    v
Extension available in KubeSphere marketplace
    |
    v
kubectl apply -f installplan.yaml
    |
    v
KubeEye deployed (3 components)

Runtime Architecture

┌─────────────────────────────────────────────────────────────┐
│                     KubeSphere Extension                    │
│                                                             │
│  ┌─────────────────────┐   ┌─────────────────────────────┐  │
│  │   kubeeye-apiserver │   │  kubeeye-controller-manager │  │
│  │   (Gin REST API)    │   │  (4 CRD Controllers)        │  │
│  │   Port 9090         │   │                             │  │
│  └──────────┬──────────┘   └──────────────┬──────────────┘  │
│             │                              │                 │
│             ▼                              ▼                 │
│  ┌──────────────────────────────────────────────────────┐   │
│  │                    CRDs                              │   │
│  │  ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌────────┐ │   │
│  │  │InspectRule│ │InspectPlan│ │InspectTask│ │Inspect │ │   │
│  │  │          │ │          │ │          │ │Result  │ │   │
│  │  └──────────┘ └──────────┘ └──────────┘ └────────┘ │   │
│  └──────────────────────────────────────────────────────┘   │
│                              │                              │
│                              ▼                              │
│  ┌──────────────────────────────────────────────────────┐   │
│  │              kubeeye-job (K8s Jobs)                  │   │
│  │  OPA ├─ PromQL ├─ FileChange ├─ Sysctl ├─ Systemd   │   │
│  │  NodeInfo ├─ FileFilter ├─ ServiceConnect ├─ Cmd    │   │
│  └──────────────────────────────────────────────────────┘   │
└─────────────────────────────────────────────────────────────┘

Note: Cmd in the diagram refers to the customCommand rule type.

CRD Overview

CRD API Version Scope Purpose
InspectRule kubeeye.kubesphere.io/v1alpha2 Cluster Defines inspection rules (OPA, PromQL, file checks, etc.)
InspectPlan kubeeye.kubesphere.io/v1alpha2 Cluster Schedules inspection execution (cron or one-shot)
InspectTask kubeeye.kubesphere.io/v1alpha2 Cluster Tracks a single inspection execution (created by InspectPlan)
InspectResult kubeeye.kubesphere.io/v1alpha2 Cluster Stores inspection results (populated by InspectTask)

CRD Data Flow

User creates InspectRule ──────┐
                               ├──> InspectPlan references InspectRules
User creates InspectPlan ──────┘         |
                                         | (cron trigger or manual)
                                         v
                               InspectTask created by InspectPlanReconciler
                                         |
                                    InspectTaskReconciler:
                                    1. Fetches referenced InspectRules
                                    2. Merges rules per type
                                    3. Creates K8s Jobs (kubeeye-job)
                                    4. Jobs execute rule checks
                                    5. Results accumulated
                                         |
                                         v
                               InspectResult populated with findings
                                         |
                                         v
                               User views results via:
                               - kubectl get inspectresult
                               - API: HTML report / XLSX download

Before You Start

Check if the KubeEye extension is available:

kubectl get extensionversions | grep kubeeye

Expected output: `kubee

Câu hỏi thường gặp

Có những loại kiểm tra nào?

Skill bao gồm kiểm tra chính sách, truy vấn số liệu, thay đổi file, cài đặt kernel, dịch vụ hệ thống và nhiều loại khác.

Skill này có chỉ dùng để cài đặt không?

Không. Nó cũng bao gồm việc viết quy tắc, thiết lập kế hoạch và đọc báo cáo.

KubeEye được cài đặt như thế nào?

Skill mô tả việc cài đặt qua một kế hoạch cài đặt được áp dụng lên cụm.

Chi tiết

Mô tả gốc của tác giả

Use when deploying KubeEye for cluster inspection, creating InspectRule/InspectPlan resources, or retrieving inspection results. Covers InstallPlan-based deployment, OPA/PromQL/FileChange/Sysctl/Systemd/NodeInfo/FileFilter/ServiceConnect/CustomCommand rule types, and report retrieval. Always consult this skill when the user mentions KubeEye, cluster inspection, InspectRule, InspectPlan, or inspection reports.

repo: kubesphere/kubesphere

Độ phổ biến

Sao GitHub
17k
Vị trí xếp hạng
#10765
Giấy phép
—
Cập nhật
14/7/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự