kubesphere-openkruise
Qué hace
Esta skill ayuda a un agente de IA a trabajar con OpenKruise, una extensión para la gestión avanzada de cargas de trabajo en KubeSphere. Está pensada para operadores que quieren actualizaciones graduales más seguras o contenedores sidecar añadidos a muchos pods.
Cuándo usarla
- ✓Cuando quieres instalar o actualizar la extensión OpenKruise en KubeSphere.
- ✓Cuando necesitas añadir un sidecar a muchos pods mediante un SidecarSet.
- ✓Cuando quieres una actualización in situ o un despliegue por lotes para una carga de trabajo sin estado.
Link de la skill
https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-openkruise/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes configurar un SidecarSet que añada nuestro sidecar de registros a todos los pods con la etiqueta app y comprobar el despliegue?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente comprueba la extensión y sus pods, y después escribe el manifiesto de SidecarSet o CloneSet por ti. Puede revisar el despliegue y el estado del webhook o de los CRD si algo sale mal.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Qué tipos de cargas de trabajo cubre?
Cubre SidecarSet para la inyección de sidecars y CloneSet para cargas de trabajo avanzadas sin estado.
¿El agente adivina los valores del chart?
No, sin pruebas del clúster. Trata el diseño avanzado del chart como una tarea aparte.
¿Puede eliminar OpenKruise?
Sí. La skill cubre la desinstalación de la extensión.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 17 mil
- Posición en el ranking
- #10779
- Licencia
- —
- Actualizada
- 14/7/2026
Comentarios
- …
Más skills de este repositorio
frontend-forge-fe-operations
17 milAyuda a tu agente a gestionar recursos FrontendExtension en KubeSphere, incluidos su compilación, su publicación y su depuración.
frontend-forge-fi-operations
17 milAyuda a tu agente a crear, actualizar, activar, desactivar e inspeccionar recursos FrontendIntegration y la extensión frontend-forge en KubeSphere.
frontend-integration-yaml
17 milAyuda a tu agente a crear un YAML de FrontendIntegration listo para enviar, para un menú con una o más páginas.
kubeeye
17 milAyuda a tu agente a instalar KubeEye, configurar reglas y planes de inspección del clúster, y después leer los informes de inspección.
Skills parecidas
openclaw-update
394 milAyuda a tu agente a actualizar una Gateway de OpenClaw que ya existe, eligiendo el método de actualización que encaja con cómo se instaló y manteniendo tu sesión activa.
diagnose-gateway
394 milAyuda a tu agente a averiguar por qué falla tu Gateway de OpenClaw, revisando ajustes, canales y puertos sin cambiar nada.
crabbox-apps
394 milAyuda a tu agente a abrir y ejecutar una app en una máquina temporal en la nube y mostrar su vista en el panel lateral de tu chat.