본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)17k · #10784

opensearch

하는 일

이 스킬은 AI 에이전트가 KubeSphere 관측성 뒤에서 검색과 저장을 맡는 엔진인 OpenSearch를 설정하도록 돕습니다. 로그와 이벤트를 한곳에 보관하고 검색하려는 운영자를 위한 스킬입니다.

사용하는 경우

  • ✓KubeSphere 로깅이나 감사를 위해 OpenSearch 확장 기능을 설치하고 싶을 때.
  • ✓로그, 이벤트, 알림의 OpenSearch 저장 설정을 바꿔야 할 때.
  • ✓OpenSearch가 설치되어 있고 켜져 있으며 올바른 클러스터에서 실행 중인지 확인하고 싶은 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

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.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 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 이벤트, 알림 이력 같은 관측 데이터를 저장합니다.

어떤 부분을 켤 수 있나요?

마스터 노드, 데이터 노드, 선택 사항인 대시보드, 오래된 인덱스를 지우는 큐레이터(curator)를 나열합니다.

기본으로 데이터 노드는 몇 개인가요?

기본값으로 데이터 노드 복제본 세 개를 나열합니다.

상세 정보

작성자의 원본 설명

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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬