kubesphere-openkruise
What it does
This skill helps an AI agent work with OpenKruise, an extension for advanced workload management in KubeSphere. It is for operators who want safer rolling updates or sidecar containers added to many pods.
When to use it
- ✓When you want to install or upgrade the OpenKruise extension in KubeSphere.
- ✓When you need a sidecar added to many pods through a sidecar set.
- ✓When you want an in-place update or a batch rollout for a stateless workload.
Skill link
https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-openkruise/SKILL.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you set up a SidecarSet that adds our logging sidecar to all pods with the app label, and check the rollout?”
5 new skills a week. 1 minute to read.
How it works
The agent checks the extension and its pods, then writes the SidecarSet or CloneSet manifest for you. It can check the rollout and the webhook or CRD status if something goes wrong.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
What workload types does it cover?
It covers SidecarSet for sidecar injection and CloneSet for advanced stateless workloads.
Does the agent guess the chart values?
Not without cluster evidence. It treats advanced chart design as a separate task.
Can it remove OpenKruise?
Yes. The skill covers uninstalling the extension.
Details
Original description by the author
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
Popularity
- GitHub stars
- 17k
- Ranking position
- #10779
- License
- —
- Updated
- 7/14/2026
Comments
- …
More skills from this repository
frontend-forge-fe-operations
17kHelps your agent manage FrontendExtension resources in KubeSphere, including building, publishing and debugging them.
frontend-forge-fi-operations
17kHelps your agent create, update, enable, disable and inspect FrontendIntegration resources and the frontend-forge extension in KubeSphere.
frontend-integration-yaml
17kHelps your agent create ready-to-submit FrontendIntegration YAML for a single menu with one or more pages.
kubeeye
17kHelps your agent install KubeEye and set up cluster inspection rules and plans, then read the inspection reports.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.