本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)17k · #10765

kubeeye

できること

このスキルは、KubeSphereのクラスター点検ツールであるKubeEyeをAIエージェントが使えるよう支援します。ワークロード、ノード、設定を定期的に点検したいクラスター運用者向けです。

使う場面

  • ✓KubeSphereにKubeEye拡張機能をインストールまたは設定したいとき。
  • ✓クラスターの設定やワークロードの状態を確認するルールを書く必要があるとき。
  • ✓一回限りの点検または定期的な点検を行い、そのレポートがほしいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/kubesphere/kubesphere/blob/master/skills/kubeeye/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“夜間にノードを点検するKubeEyeの点検計画を設定し、最新のレポートを見せてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、拡張機能のインストールと、クラスター内の点検ルールおよび計画の作成を手伝います。その後、点検結果を取得し、確認のためにレポートを表示します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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

よくある質問

どのような点検ができますか?

ポリシーチェック、メトリクスの照会、ファイルの変更、カーネル設定、システムサービスなどを扱うとしています。

このスキルはインストールだけのものですか?

いいえ。ルールの作成、計画の設定、レポートの読み取りも扱います。

KubeEyeはどのようにインストールしますか?

クラスターに適用するインストール計画を通じてインストールする方法を説明しています。

詳細

作者による元の説明

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

人気

GitHubのスター
17k
ランキング
#10765
ライセンス
—
更新日
2026/7/14

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル