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

vector

하는 일

이 스킬은 AI 에이전트가 Vector를 기반으로 한 WizTelemetry Data Pipeline을 설정하도록 돕습니다. 관측 데이터를 수집해 OpenSearch 같은 저장소로 보내야 하는 운영자를 위한 스킬입니다.

사용하는 경우

  • ✓KubeSphere의 로그, 감사 기록, 이벤트를 수집하는 데이터 파이프라인을 설치하고 싶을 때.
  • ✓파이프라인의 출력을 OpenSearch로 설정해야 하는 경우.
  • ✓다른 관측 확장 기능의 데이터가 빠져 있어서 파이프라인을 확인해야 할 때.

스킬 링크

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

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

사용 방법

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

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

Use this skill to help me: https://github.com/kubesphere/kubesphere/blob/master/skills/vector/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“호스트 클러스터에 Vector 데이터 파이프라인을 설치하고, 출력을 우리 OpenSearch 엔드포인트로 보내 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 먼저 사용할 수 있는 클러스터를 확인하고, 어느 클러스터를 쓸지 확정합니다. 그다음 OpenSearch 엔드포인트와 인증 정보를 찾아 파이프라인의 설치 계획을 만듭니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

WizTelemetry Data Pipeline (Vector)

Overview

WizTelemetry Data Pipeline is an extension based on vector (https://vector.dev/) that provides the ability to collect, transform, and route observability data. It is a core dependency for other WizTelemetry extensions like Logging, Auditing, Events, and Notification.

When to Use

  • Installing or configuring the WizTelemetry Data Pipeline extension
  • Setting up data collection for logs, auditing, events, and notifications
  • Configuring Vector sinks (OpenSearch)
  • Managing Vector agent components

Installation

Prerequisites

REQUIRED: Complete all steps in order before generating InstallPlan.

Step 1: Get Available Clusters and Confirm Target

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

Step 1.1: Get available clusters

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

Step 1.2: Determine target clusters

  • If user explicitly specified target clusters in the request → Use those clusters directly, proceed to Step 2
  • If user did NOT specify target clusters → Ask user to confirm which clusters to deploy to, then proceed to Step 2

Ask user (if not specified):

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

Step 2: Get OpenSearch Endpoint and Credentials (MUST DO)

  • If user already provided OpenSearch endpoint and credentials in the request → Use those directly, proceed to Step 3
  • If user did NOT provide → You MUST ask user for OpenSearch endpoint and credentials

Ask user for (if not provided):

  1. OpenSearch endpoint URL (required)

    • Example: http://<node-ip>:30920 or https://opensearch.example.com:9200
  2. OpenSearch credentials (required)

    • Username (default: admin)
    • Password

DO NOT proceed to Step 3 until user provides both endpoint and credentials.

Step 3: Get Latest Vector Version (if not provided by user)

MUST do this to get the latest version:

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

This outputs the latest version (e.g., 1.1.4). Note this down - you'll use it in the InstallPlan.

Install Vector Extension

⚠️ IMPORTANT: Complete prerequisite steps (1-3) BEFORE this step.

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

Based on your selections:

  • Target clusters: Use the user-confirmed cluster names
  • OpenSearch endpoint: User-provided endpoint
  • OpenSearch credentials: User-provided username and password

⚠️ CRITICAL: config field is YAML format. You MUST:

  • Use the config structure exactly as shown in the template
  • DO NOT add configuration fields that are not shown in the template
  • DO NOT modify the structure or hierarchy

⚠️ CRITICAL: All placeholders MUST be replaced with actual values. DO NOT leave them as placeholders.

Template

apiVersion: kubesphere.io/v1alpha1
kind: InstallPlan
metadata:
  name: vector
spec:
  extension:
    name: vector
    version: <VECTOR_VERSION>  # From Step 3
  enabled: true
  upgradeStrategy: Manual
  config: |
    agent:
      sinks:
        opensearch:
          auth:
            strategy: basic
            user: <OPENSEARCH_USER>
            password: <OPENSEARCH_PASSWORD>
          endpoints:
            - <OPENSEARCH_ENDPOINT>
  clusterScheduling:
    placement:
      clusters:
        - <TARGET_CLUSTERS>

Replace placeholders:

  • <VECTOR_VERSION>: From Step 2 (e.g., 1.1.4)
  • <OPENSEARCH_ENDPOINT>: User-provided endpoint (e.g., http://<node-ip>:30920)
  • <OPENSEARCH_USER>: User-provided username (default: admin)
  • <OPENSEARCH_PASSWORD>: User-provided password
  • <TARGET_CLUSTERS>: User-confirmed cluster names

⚠️ DO NOT generate InstallPlan until all placeholders have real values.

Wait for Deployment

After applying InstallPlan, you MUST wait for deployment to complete:

# Wait for Vector pods to be ready (on each cluster)
kubectl wait --for=condition=Ready pods -n kubesphere-logging-system -l app.kubernetes.io/instance=vector --timeout=300s

# Verify deployment status
kubectl get pods -n kubesphere-logging-system -l app.kubernetes.io/instance=vector

Show deployment summary to user:

  • Which clusters Vector was deployed to
  • OpenSearch endpoint used
  • Pod status (Ready/To
자주 묻는 질문

모든 클러스터에 설치하나요?

아니요. 클러스터 이름을 말하지 않으면 에이전트가 어느 클러스터를 쓸지 묻습니다.

출력은 어디로 가나요?

주된 싱크인 OpenSearch로 데이터를 보내는 것을 다룹니다.

다른 확장 기능에도 이 파이프라인이 필요한가요?

네. 스킬은 로깅, 감사, 이벤트, 알림에 필요한 핵심 의존성이라고 말합니다.

상세 정보

작성자의 원본 설명

Use when installing or configuring the WizTelemetry Data Pipeline (vector) extension for KubeSphere, which provides data collection, transformation, and routing for observability data including logs, auditing, events, and notifications

repo: kubesphere/kubesphere

인기도

GitHub 스타
17k
순위
#10785
라이선스
—
업데이트
2026. 7. 14.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬