kubesphere-gateway
Qué hace
Esta skill ayuda a un agente de IA a instalar, revisar y solucionar problemas de las puertas de enlace de entrada en KubeSphere. Está pensada para operadores que usan la puerta de enlace basada en ingress-nginx para dirigir el tráfico externo a los servicios.
Cuándo usarla
- ✓Cuando quieres instalar o desinstalar la extensión de puerta de enlace en KubeSphere.
- ✓Cuando una puerta de enlace se queda en un estado como Creating o Faulted y necesitas la causa.
- ✓Cuando falla una instalación de Helm de la puerta de enlace o sus pods no están sanos.
Link de la skill
https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-gateway/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
“Nuestra puerta de enlace del proyecto se ha quedado en Creating. ¿Puedes revisar por qué y decirme el siguiente paso?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente lee el objeto de la puerta de enlace, su estado y sus condiciones. Después revisa la versión de Helm y los pods que hay detrás de la puerta de enlace, y sugiere la solución.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
KubeSphere Gateway
Overview
Provides external access management (ingress) for KubeSphere using ingress-nginx. Supports three-tier gateway management:
| Tier | Scope | Name Pattern | Namespace | Label |
|---|---|---|---|
| Cluster | Entire cluster | kubesphere-router-cluster | kubesphere-controls-system | kubesphere.io/gateway-type=cluster |
| Workspace | Single workspace | kubesphere-router-workspace-{workspace} | kubesphere-controls-system | kubesphere.io/gateway-type=workspace |
| Project | Single project/namespace | kubesphere-router-{namespace} | kubesphere-controls-system | kubesphere.io/gateway-type=project |
Each gateway is a standalone Helm release of ingress-nginx. The gateway-controller-manager manages the lifecycle (install/upgrade/uninstall) via Helm.
Core CRDs
Gateway(gateway.kubesphere.io/v2alpha2) — represents a single ingress-nginx deployment. Key fields:spec.appVersion— the Helm chart version (e.g.kubesphere-nginx-ingress-<version>)spec.values— Helm values for ingress-nginx (controller config, service type, resources, etc.)status.state—Creating,Updating,Running,Faulted,Stoppedstatus.conditions[].type=GatewayReady— True when fully operationalstatus.loadBalancer— LB ingress IPs/hostnamesstatus.service— Service type, ports, external IPs
UpgradePlan(gateway.kubesphere.io/v2alpha2) — batch gateway upgrade job. Key fields:spec.gatewayReferences— list of{name, namespace}to upgradespec.targetAppVersion— target versionstatus.state—Pending,Running,Succeeded,Failed
Monitoring Integration
Gateway exposes NGINX metrics (requests, 4xx/5xx, latency P50/P90/P99) via Prometheus. Requires the whizard-monitoring extension (optional dependency).
Before You Start
Check if Gateway extension is already installed:
kubectl get installplans.kubesphere.io gateway --ignore-not-found
If found, upgrading is supported — just select a newer version in Step 1.
Installation
Step 1: Detect and Select Version
ALL_VERSIONS=$(kubectl get extensionversions.kubesphere.io \
-l kubesphere.io/extension-ref=gateway \
-o jsonpath='{range .items[*]}{.spec.version}{"\n"}{end}' | sort -V)
LATEST_STABLE=$(echo "$ALL_VERSIONS" | grep -v -E 'alpha|beta|rc' | tail -1)
if [ -z "$LATEST_STABLE" ]; then
LATEST_STABLE=$(echo "$ALL_VERSIONS" | tail -1)
fi
echo "Available versions:"
echo "$ALL_VERSIONS"
echo ""
echo "Latest stable: $LATEST_STABLE"
This sets ALL_VERSIONS and LATEST_STABLE. Use SELECTED_VERSION for the version chosen.
Use the question tool:
$LATEST_STABLE (Recommended)— accept the auto-detected version- (custom) — type a specific version; validate it against the printed list
Step 2: Detect and Select Clusters
CLUSTER_DATA=$(kubectl get clusters.cluster.kubesphere.io \
-o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.conditions[?(@.type=="Ready")].status}{"\n"}{end}')
READY_CLUSTERS=$(echo "$CLUSTER_DATA" | awk -F'\t' '$2 == "True" {print $1}')
CLUSTER_COUNT=$(echo "$READY_CLUSTERS" | wc -l)
HOST_CLUSTER=$(kubectl get clusters.cluster.kubesphere.io \
-l 'cluster-role.kubesphere.io/host' \
-o jsonpath='{.items[0].metadata.name}' || echo "")
echo "Ready clusters:"
echo "$READY_CLUSTERS"
echo ""
echo "Cluster count: $CLUSTER_COUNT"
echo "Host cluster: $HOST_CLUSTER"
This sets READY_CLUSTERS, CLUSTER_COUNT, HOST_CLUSTER.
- 1 cluster → skip selection, auto-use it. Set
TARGET_CLUSTERS="$HOST_CLUSTER" - Multiple clusters → use
questionwithmultiple: true:- All clusters →
TARGET_CLUSTERS="$READY_CLUSTERS" - Host cluster only →
TARGET_CLUSTERS="$HOST_CLUSTER" - (custom) — validate each name against
$READY_CLUSTERS
- All clusters →
Step 3: Generate and Apply InstallPlan
./scripts/generate-installplan.sh "$SELECTED_VERSION" "$TARGET_CLUSTERS"
This generates the YAML to /tmp/gateway-installplan.yaml, runs --dry-run=server, then prints the apply command.
For configurable extension values (ingress-nginx default settings, image registry, upgrade tool config, etc.), see references/extension-values.md.
Apply it:
kubectl apply -f /tmp/gateway-installplan.yaml
Tell the user "Installing". Then ask if they want to check status. If yes:
./scripts/check-s
Preguntas frecuentes
¿Qué niveles de puerta de enlace existen?
Clúster, espacio de trabajo y proyecto, y cada uno se ejecuta como una versión propia de ingress-nginx.
¿Qué objeto lee el agente?
Lee el objeto de la puerta de enlace, incluidos su estado, sus condiciones y los detalles del balanceador de carga.
¿Es lo mismo que la skill de Gateway API?
No. Esta skill usa la puerta de enlace basada en ingress-nginx, mientras que la otra usa Gateway API.
Detalles
Descripción original del autor
KubeSphere Gateway extension management Skill (ingress-nginx based, uses Kubernetes Ingress API + Gateway CRD gateway.kubesphere.io/v2alpha2). For the newer Kubernetes Gateway API (Traefik + GatewayProxy CRD), see the kubesphere-gateway-api skill instead. Covers installation, uninstallation, status checks, gateway status inspection, and troubleshooting (gateway stuck states, Helm failures, pod issues).
repo: kubesphere/kubesphere
Popularidad
- Estrellas en GitHub
- 17 mil
- Posición en el ranking
- #10776
- 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.