Skip to content
Skillpedia
Deploy & cloud (DevOps)17k · #10784

opensearch

What it does

This skill helps an AI agent set up OpenSearch, the search and storage engine behind KubeSphere observability. It is for operators who want logs and events kept and searched in one place.

When to use it

  • ✓When you want to install the OpenSearch extension for KubeSphere logging or auditing.
  • ✓When you need to change OpenSearch storage settings for logs, events or notifications.
  • ✓When you want to check whether OpenSearch is installed, enabled and running on the right clusters.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/kubesphere/kubesphere/blob/master/skills/opensearch/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you check whether OpenSearch is installed and enabled on our host cluster, and show which clusters it runs on?”

5 new skills a week. 1 minute to read.

How it works

The agent reads the install plan and extension status with kubectl to see if OpenSearch is enabled and where it runs. It then helps with the install settings for its master, data and optional dashboard parts.

Technical content (original SKILL.md)

Original text by the author, straight from 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
FAQ

What does OpenSearch store?

It stores observability data such as logs, auditing events, Kubernetes events and notification history.

Which parts can be turned on?

The skill lists a master node, data nodes, an optional dashboard and a curator that removes old indexes.

How many data nodes are used by default?

The skill lists three data node replicas by default.

Details

Original description by the author

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

Popularity

GitHub stars
17k
Ranking position
#10784
License
—
Updated
7/14/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills