kubesphere-openkruise
하는 일
이 스킬은 AI 에이전트가 고급 워크로드 관리를 위한 확장 기능인 OpenKruise를 다루도록 돕습니다. 더 안전한 롤링 업데이트를 하거나 많은 파드에 사이드카 컨테이너를 추가하려는 운영자를 위한 스킬입니다.
사용하는 경우
- ✓KubeSphere에서 OpenKruise 확장 기능을 설치하거나 업그레이드하고 싶을 때.
- ✓사이드카 셋을 통해 여러 파드에 사이드카를 추가해야 하는 경우.
- ✓상태 비저장 워크로드에 제자리 업데이트나 배치 롤아웃을 하고 싶을 때.
스킬 링크
https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-openkruise/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“app 레이블이 붙은 모든 파드에 로깅 사이드카를 추가하는 SidecarSet을 설정하고, 롤아웃을 확인해 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 확장 기능과 그 파드를 확인한 뒤 SidecarSet이나 CloneSet 매니페스트를 작성해 줍니다. 문제가 생기면 롤아웃과 웹훅, CRD 상태를 확인할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Skill: kubesphere-openkruise
KubeSphere OpenKruise Management
Use this skill for the full OpenKruise lifecycle in KubeSphere:
- Install or upgrade the OpenKruise extension through
InstallPlan - Query extension status, CRDs, Pods, and logs
- Generate
SidecarSetmanifests for sidecar injection and rolling updates - Generate
CloneSetmanifests for advanced stateless workloads, in-place updates, and batch rollout - Uninstall the OpenKruise extension
- Troubleshoot failed Pods, missing CRDs, and webhook problems
Out of scope by default:
- Advanced OpenKruise CRDs not requested by the user, such as
BroadcastJob,NodeImage,UnitedDeployment, orAdvancedPodAutoscaler - Deep chart-value design without cluster evidence
If the user explicitly asks for those CRDs, acknowledge that they are OpenKruise capabilities but treat them as a follow-up task instead of assuming they belong in the default workflow.
Response Rules
- Prefer executable output:
InstallPlanYAML,SidecarSetYAML,CloneSetYAML,kubectlcommands, or a short ordered procedure. - Verify the extension name and exact version before generating a final
InstallPlan. - Default the extension name to
openkruiseonly if the user context or cluster output does not expose a different resource name. - In this KubeSphere environment, the observed mapping is:
- KubeSphere extension version
1.0.3 - OpenKruise runtime version
1.4.0
- KubeSphere extension version
- Distinguish two version concepts before generating
InstallPlan:- KubeSphere extension version: used by
spec.extension.version - OpenKruise runtime version: the controller or component version seen in Pods or docs
- KubeSphere extension version: used by
- For this environment, if the user asks to install the current OpenKruise plugin and does not provide another extension version, prefer
spec.extension.version: 1.0.3. - If the user only provides the OpenKruise runtime version, first ask them to confirm the matching KubeSphere extension version.
- Never invent a version. If the version is missing, first show how to list versions and ask the user to confirm one.
InstallPlan.metadata.nameMUST equalInstallPlan.spec.extension.name.InstallPlanis cluster-scoped in KubeSphere. Do not add a namespace tokubectl get|describe|delete installplan.- Use
upgradeStrategy: Manualunless the user explicitly asks for something else. - Omit optional fields instead of guessing values.
- Before generating
SidecarSetorCloneSet, prefer checking the installed API versions:
kubectl api-resources --api-group apps.kruise.io
- If the cluster version is unknown and the user only wants an example, prefer:
SidecarSet:apps.kruise.io/v1alpha1CloneSet:apps.kruise.io/v1alpha1
- For uninstall requests, warn that deleting CRDs or CR instances can remove application configuration. Do not suggest deleting CRDs unless the user explicitly asks for full cleanup.
Version Mapping Discovery
Treat the 1.0.3 -> 1.4.0 mapping as environment evidence, not a universal rule. When the user asks for precision, prove it first:
# Discover KubeSphere extension version
kubectl get extensionversions.kubesphere.io -l kubesphere.io/extension-ref=openkruise
kubectl get extensionversion openkruise-1.0.3 -o yaml
# Discover deployed runtime image or controller version
kubectl get pods -n kruise-system -o wide
kubectl get deploy -n kruise-system kruise-manager -o jsonpath='{.spec.template.spec.containers[*].image}'
kubectl describe pod -n kruise-system <kruise-manager-pod>
If these commands disagree with the assumed mapping, prefer cluster output over the baked-in default.
Discovery Commands
This section provides two approaches for querying OpenKruise status:
- KubeSphere API (curl) - for extension management and multi-cluster queries
- kubectl - for direct Kubernetes resource operations
Option 1: Using KubeSphere API (curl)
Use curl with environment variables for querying KubeSphere extension status and multi-cluster resources.
Environment Variables:
export KS_HOST="http://<kubesphere-host>" # KubeSphere console URL (required)
export KS_USERNAME="admin" # Username (default: admin)
export KS_PASSWORD="<password>" # Password (required)
Helper Functions (add to ~/.bashrc or use directly):
# Get OAuth token
ks_token() {
curl -s -X POST "$KS_HOST/oauth/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant
자주 묻는 질문
어떤 워크로드 유형을 다루나요?
사이드카 주입용 SidecarSet과 고급 상태 비저장 워크로드용 CloneSet을 다룹니다.
에이전트가 차트 값을 추측하나요?
클러스터 근거 없이는 추측하지 않습니다. 고급 차트 설계는 별도 작업으로 다룹니다.
OpenKruise를 제거할 수 있나요?
네. 확장 기능 제거도 다룹니다.
상세 정보
작성자의 원본 설명
KubeSphere OpenKruise management Skill. Use when user asks to install or enable OpenKruise, check OpenKruise status, view kruise pods/logs/CRDs, create or update SidecarSet, manage sidecar injection, create or update CloneSet, perform in-place update or batch rollout, uninstall or remove OpenKruise, or troubleshoot Kruise Pod, CRD, and webhook issues in KubeSphere.
repo: kubesphere/kubesphere
인기도
- GitHub 스타
- 17k
- 순위
- #10779
- 라이선스
- —
- 업데이트
- 2026. 7. 14.
댓글
- …
이 저장소의 다른 스킬
frontend-forge-fe-operations
17k에이전트가 KubeSphere에서 FrontendExtension 리소스를 관리하도록 돕습니다. 빌드, 게시, 문제 해결까지 포함됩니다.
frontend-forge-fi-operations
17k에이전트가 KubeSphere의 FrontendIntegration 리소스와 frontend-forge 확장 기능을 만들고 관리하도록 돕습니다.
frontend-integration-yaml
17k에이전트가 메뉴 하나와 하나 이상의 페이지로 구성된, 바로 제출할 수 있는 FrontendIntegration YAML을 만들도록 돕습니다.
kubeeye
17k에이전트가 KubeEye를 설치하고, 클러스터 점검 규칙과 계획을 설정한 뒤 점검 보고서를 읽도록 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.