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

opensearch

できること

このスキルは、KubeSphereのオブザーバビリティの裏側で動く検索とストレージのエンジン、OpenSearchを設定するよう、AIエージェントを支援します。ログとイベントを一か所に保存し、検索したい運用者向けです。

使う場面

  • ✓KubeSphereのログ記録や監査のために、OpenSearch拡張機能をインストールしたいとき。
  • ✓ログ、イベント、通知のストレージ設定を変更する必要があるとき。
  • ✓OpenSearchが正しいクラスターにインストールされ、有効で、動いているか確認したいとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“ホストクラスターにOpenSearchがインストールされて有効になっているか確認し、どのクラスターで動いているかを示してください。”

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

仕組み

エージェントは、kubectlでインストール計画と拡張機能の状態を読み、OpenSearchが有効で、どこで動いているかを確認します。そのうえで、マスター、データ、任意のダッシュボードの各部分のインストール設定を手伝います。

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

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

OpenSearch Extension

Overview

OpenSearch is a distributed search and analytics engine built into the KubeSphere WizTelemetry Observability Platform. It is used to store, search, and analyze observability data including logs, auditing events, K8s events, and notification history.

When to Use

  • Installing OpenSearch cluster for KubeSphere observability extensions
  • Configuring OpenSearch storage for logging, events, auditing, and notifications
  • Managing OpenSearch Dashboard and Curator components

Components

Component Description Default
opensearch-master Master node for cluster coordination 1 replica
opensearch-data Data nodes for storing indices 3 replicas
opensearch-dashboards Web UI for visualizing data disabled
opensearch-curator Scheduled task to clean old indices enabled

Prerequisites

Check Installation Status

# Check if OpenSearch is installed
kubectl get installplan opensearch -o jsonpath='{.spec.enabled}'

# Get installed version
kubectl get extension opensearch -o jsonpath='{.status.installedVersion}'

# Get target clusters
kubectl get installplan opensearch -o jsonpath='{.spec.clusterScheduling.placement.clusters}'

Returns:

  • "true" - installed and enabled
  • "false" - installed but disabled
  • Empty/Error - not installed

Get Available Clusters

kubectl get clusters -o jsonpath='{.items[*].metadata.name}'

Confirm Target Clusters (MUST DO)

⚠️ CRITICAL: Do Not guess.

⚠️ CRITICAL: DO NOT proceed until target clusters are determined.

  • If user explicitly specified target clusters in the request → Use those clusters directly
  • If user did NOT specify target clusters → You MUST ask user to confirm which clusters to deploy to

Ask user (if not specified):

Available clusters: host, dev
Which clusters do you want to deploy OpenSearch to?

Get Latest Version

MUST do this to get the latest version:

kubectl get extensionversions -l kubesphere.io/extension-ref=opensearch -o jsonpath='{range .items[*]}{.spec.version}{"\n"}{end}' | sort -V | tail -1

Installation

⚠️ CRITICAL: InstallPlan metadata.name MUST be opensearch. DO NOT use any other name.

Use the latest version obtained from "Get Latest Version" step.

Minimal Installation

apiVersion: kubesphere.io/v1alpha1
kind: InstallPlan
metadata:
  name: opensearch
spec:
  extension:
    name: opensearch
    version: <VERSION>  # From Get Latest Version step
  enabled: true
  upgradeStrategy: Manual
  clusterScheduling:
    placement:
      clusters:
        - host

With OpenSearch Dashboard

apiVersion: kubesphere.io/v1alpha1
kind: InstallPlan
metadata:
  name: opensearch
spec:
  extension:
    name: opensearch
    version: <VERSION>  # From Get Latest Version step
  enabled: true
  upgradeStrategy: Manual
  config: |
    opensearch-dashboards:
      enabled: true
  clusterScheduling:
    placement:
      clusters:
        - host

Disable Curator

apiVersion: kubesphere.io/v1alpha1
kind: InstallPlan
metadata:
  name: opensearch
spec:
  extension:
    name: opensearch
    version: <VERSION>  # From Get Latest Version step
  enabled: true
  upgradeStrategy: Manual
  config: |
    opensearch-curator:
      enabled: false
  clusterScheduling:
    placement:
      clusters:
        - host

Configuration

Parameters

Parameter Type Default Description
opensearch-master.replicas int 1 Number of master nodes
opensearch-master.opensearchJavaOpts string "-Xmx512M -Xms512M" JVM options
opensearch-master.resources object - Resource limits/requests
opensearch-data.replicas int 3 Number of data nodes
opensearch-data.opensearchJavaOpts string "-Xmx1536M -Xms1536M" JVM options
opensearch-data.resources object - Resource limits/requests
opensearch-data.service.type string NodePort Service type
opensearch-data.service.nodePort int 30920 NodePort for external access
opensearch-dashboards.enabled bool false Enable OpenSearch Dashboards
opensearch-curator.enabled bool true Enable index cleanup job

Resource Configuration

opensearch-master:
  replicas: 1
  opensearchJavaOpts: "-Xmx512M -Xms512M"
  resources:
    requests:
      cpu: "100m"
      memory
よくある質問

OpenSearchは何を保存しますか?

ログ、監査イベント、Kubernetesのイベント、通知履歴などの、オブザーバビリティのデータを保存します。

どの部分をオンにできますか?

マスターノード、データノード、任意のダッシュボード、古いインデックスを削除するキュレーターを挙げています。

既定ではデータノードは何台使われますか?

既定のデータノードのレプリカは3台だと挙げています。

詳細

作者による元の説明

Use when installing or configuring the OpenSearch extension for KubeSphere, which provides distributed search and analytics engine for storing logs, events, auditing, and notification history

repo: kubesphere/kubesphere

人気

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

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

0

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

コメント

  • …

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

似ているスキル