Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)17k Β· #10775

kubesphere-gateway-api

Fungsinya

Skill ini membantu agent AI menyiapkan dan memeriksa gateway yang memungkinkan lalu lintas dari luar mencapai layanan di KubeSphere. Skill ini untuk operator yang memakai standar Gateway API yang lebih baru.

Kapan dipakai

  • βœ“Saat Anda ingin memasang atau menghapus ekstensi Gateway API di KubeSphere.
  • βœ“Saat Anda memerlukan gateway untuk seluruh klaster, sebuah workspace, atau satu proyek.
  • βœ“Saat sebuah gateway tidak berfungsi dan Anda ingin statusnya serta proxy-nya diperiksa.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-gateway-api/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBisakah Anda menyiapkan gateway Gateway API untuk proyek staging kami dan memeriksa bahwa gateway itu siap?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent memeriksa status ekstensi, membuat proxy gateway di tingkat yang Anda pilih, lalu memeriksa gateway class dan objek gateway yang sesuai. Agent melaporkan masalah status yang ditemukan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum

Apa saja tiga tingkat gateway?

Klaster, workspace, dan proyek. Setiap tingkat memiliki proxy gateway sendiri.

Proxy apa yang dipakai skill ini?

Skill ini memakai Traefik sebagai proxy di balik Kubernetes Gateway API.

Apa bedanya dengan skill gateway yang lama?

Yang lama memakai gateway berbasis ingress-nginx. Skill ini memakai standar Gateway API yang lebih baru.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
17k
Peringkat
#10775
Lisensi
β€”
Diperbarui
14/7/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa