kubesphere-gateway
What it does
This skill helps an AI agent install, check and troubleshoot ingress gateways in KubeSphere. It is for operators who use the ingress-nginx based gateway to route outside traffic to services.
When to use it
- βWhen you want to install or uninstall the gateway extension in KubeSphere.
- βWhen a gateway is stuck in a state such as Creating or Faulted and you need the cause.
- βWhen a Helm install of the gateway fails or its pods are unhealthy.
Skill link
https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-gateway/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
βOur project gateway is stuck in Creating. Can you check why and tell me the next step?β
5 new skills a week. 1 minute to read.
How it works
The agent reads the gateway object, its state and its conditions. It then checks the Helm release and the pods behind the gateway and suggests the fix.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
What gateway levels exist?
Cluster, workspace and project, and each one runs as its own ingress-nginx release.
Which object does the agent read?
It reads the gateway object, including its state, conditions and load balancer details.
Is this the same as the Gateway API skill?
No. This skill uses the ingress-nginx based gateway, while the other uses the Gateway API.
Details
Original description by the author
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
Popularity
- GitHub stars
- 17k
- Ranking position
- #10776
- 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.