Pular para o conteúdo
Skillpedia
Deploy e nuvem (DevOps)17 mil · #10775

kubesphere-gateway-api

O que ela faz

Esta skill ajuda um agente de IA a configurar e verificar gateways que permitem que o tráfego externo chegue aos serviços do KubeSphere. É para operadores que usam o padrão mais novo, a Gateway API.

Quando usar

  • ✓Quando você quer instalar ou desinstalar a extensão Gateway API no KubeSphere.
  • ✓Quando você precisa de um gateway para um cluster inteiro, um workspace ou um único projeto.
  • ✓Quando um gateway não está funcionando e você quer verificar o status dele e o proxy.

Link da skill

https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-gateway-api/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-gateway-api/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Você pode configurar um gateway da Gateway API para nosso projeto de homologação e verificar se ele está pronto?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente verifica o estado da extensão, cria o proxy do gateway no nível que você escolher e depois verifica a classe de gateway e os objetos de gateway correspondentes. Ele informa os problemas de status que encontrar.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

KubeSphere Gateway API

Overview

Provides external access management using Kubernetes Gateway API with Traefik as the underlying proxy implementation. Supports three-tier gatewayproxy management:

Tier Scope Name Pattern Namespace Description
Cluster Entire cluster gatewayproxy-cluster kubesphere-controls-system Cluster-scoped GatewayProxy
Workspace Single workspace gatewayproxy-workspace-{workspace} kubesphere-controls-system Workspace-scoped GatewayProxy
Project Single project/namespace gatewayproxy-namespace-{namespace} kubesphere-controls-system Namespace-scoped GatewayProxy

Each GatewayProxy (gatewayproxies.gatewayapi.kubesphere.io) deploys a Traefik instance (the proxy implementation). It auto-creates a GatewayClass, and users can then create standard Gateway (gateways.gateway.networking.k8s.io) resources that reference that GatewayClass. The extension consists of three components:

  • backend-extension — API server on the host cluster
  • backend-agent — API server + controller-manager on every cluster (including the host cluster if selected)
  • frontend — React SPA served via Nginx

Key Differentiator from kubesphere-gateway

Aspect kubesphere-gateway kubesphere-gateway-api
Underlying proxy ingress-nginx Traefik
API standard Custom Gateway CRD (gateway.kubesphere.io/v2alpha2) Kubernetes Gateway API (gateway.networking.k8s.io) + GatewayProxy CRD
Core resource Gateway + standard IngressClass/Ingress GatewayProxy + standard Gateway/GatewayClass/HTTPRoute
Lifecycle management Helm release per gateway Helm release per GatewayProxy

Core CRDs

  • GatewayProxy (gatewayapi.kubesphere.io/v1alpha1) — the proxy implementation (e.g. Traefik). When created, the controller deploys Traefik via Helm SDK and auto-creates a GatewayClass. Key fields:

    • spec.type — proxy type (currently only Traefik)
    • spec.traefik.rawValues — raw Helm values passed to the Traefik chart
    • spec.traefik.deployment.replicas — replica count
    • spec.traefik.service.type — Service type (ClusterIP, NodePort, LoadBalancer)
    • spec.traefik.createDefaultGateway — whether to auto-create a default Gateway
    • spec.paused — pause reconciliation
    • status.conditions — condition types: Ready, Progressing, NewVersionDetected
    • status.service — Service type, ports, external IPs, load balancer status
    • status.entrypoints — exposed entrypoints with ports and protocols
    • status.gatewayClass.name — auto-created GatewayClass name
    • status.helmRelease.name — Helm release name
  • GatewayClass (gateway.networking.k8s.io/v1) — standard Kubernetes Gateway API class, auto-created by the GatewayProxy controller

  • Gateway (gateway.networking.k8s.io/v1) — standard Kubernetes Gateway API gateway, associated with a GatewayClass

  • HTTPRoute / GRPCRoute / TLSRoute / TCPRoute / UDPRoute — standard Kubernetes Gateway API route resources

Multi-Tenant Scoping

GatewayProxy and Gateway are scoped via labels:

  • gatewayapi.kubesphere.io/scope-type — cluster, workspace, or namespace
  • gatewayapi.kubesphere.io/scope-workspace — workspace name (for workspace scope)
  • gatewayapi.kubesphere.io/scope-namespace — namespace name (for namespace scope)

Monitoring Integration

GatewayProxy exposes Traefik metrics via Prometheus. Requires the whizard-monitoring extension (optional dependency). Log search requires the whizard-logging extension.


Before You Start

Check if Gateway API extension is already installed:

kubectl get insta
Perguntas frequentes

Quais são os três níveis de gateway?

Cluster, workspace e projeto. Cada nível tem seu próprio proxy de gateway.

Qual proxy esta skill usa?

Ela usa o Traefik como proxy por trás da Gateway API do Kubernetes.

Em que ela difere da skill de gateway mais antiga?

A mais antiga usa o gateway baseado em ingress-nginx. Esta usa o padrão mais novo, a Gateway API.

Detalhes

Descrição original do autor

KubeSphere Gateway API extension management Skill (Traefik based, uses Kubernetes Gateway API + GatewayProxy CRD gatewayapi.kubesphere.io/v1alpha1). This is the newer Kubernetes Gateway API standard. For the older Ingress API based gateway (ingress-nginx + Gateway CRD gateway.kubesphere.io/v2alpha2), see the kubesphere-gateway skill instead. Covers installation, uninstallation, status checks, GatewayProxy status inspection, and troubleshooting.

repo: kubesphere/kubesphere

Popularidade

Estrelas no GitHub
17 mil
Posição no ranking
#10775
Licença
—
Atualizada em
14/07/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas