kubesphere-gateway
하는 일
이 스킬은 AI 에이전트가 KubeSphere의 인그레스 게이트웨이를 설치하고, 점검하고, 문제를 해결하도록 돕습니다. 외부 트래픽을 서비스로 보내는 ingress-nginx 기반 게이트웨이를 쓰는 운영자를 위한 스킬입니다.
사용하는 경우
- ✓KubeSphere에 게이트웨이 확장 기능을 설치하거나 제거하고 싶을 때.
- ✓게이트웨이가 Creating이나 Faulted 같은 상태에 멈춰서 원인을 찾아야 하는 경우.
- ✓게이트웨이의 Helm 설치가 실패하거나 그 파드가 정상이 아닐 때.
스킬 링크
https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-gateway/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“프로젝트 게이트웨이가 Creating 상태에서 멈춰 있습니다. 원인을 확인하고 다음 단계를 알려 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 게이트웨이 객체, 상태, 조건을 읽습니다. 그다음 Helm 릴리스와 게이트웨이 뒤의 파드를 확인하고 해결 방법을 제안합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
게이트웨이 수준은 무엇이 있나요?
클러스터, 워크스페이스, 프로젝트가 있으며, 각 수준은 자체 ingress-nginx 릴리스로 실행됩니다.
에이전트가 읽는 객체는 무엇인가요?
상태, 조건, 로드 밸런서 정보를 포함한 게이트웨이 객체를 읽습니다.
Gateway API 스킬과 같은가요?
아니요. 이 스킬은 ingress-nginx 기반 게이트웨이를 쓰고, 다른 스킬은 Gateway API를 씁니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 17k
- 순위
- #10776
- 라이선스
- —
- 업데이트
- 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에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.