AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Kgateway

skill-totallygreg-claude-mp-kgateway · by totallyGreg

This skill should be used when configuring kgateway (Kubernetes Gateway API implementation) for HTTP routing, Gateway resources, HTTPRoutes, and GatewayClass configuration. Use when the user asks to "create a Gateway resource", "configure HTTPRoute", "set up path-based routing", "check kgateway installation", "install kgateway", "upgrade kgateway helm chart", or "troubleshoot route attachment". C…

No reviews yet
0 installs
30 views
0.0% view→install

Install

$ agentstack add skill-totallygreg-claude-mp-kgateway

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-totallygreg-claude-mp-kgateway)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Kgateway? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

kgateway

Expert guidance for kgateway — the Kubernetes Gateway API implementation powered by Envoy.

Overview

kgateway is a CNCF sandbox project that implements the Kubernetes Gateway API. It provides:

  • Gateway API compliance: Gateway, HTTPRoute, GatewayClass resources
  • Envoy-based data plane: Production-grade proxy
  • Backend CRD: Backend (gateway.kgateway.dev/v1alpha1) for generic backends (AWS Lambda, Static, DFP)
  • agentgateway integration: Enable AI/MCP routing via --set controller.enableAgentgateway=true

Note: Starting v2.3.0, kgateway and agentgateway diverge into separate projects. kgateway focuses on Envoy-based Gateway API; agentgateway moves to its own repo and namespace. See references/helm-lifecycle.md.

Quick Commands

This plugin includes slash commands for gateway operations:

| Command | Purpose | |---------|---------| | /gw-status | Show all gateway resources status | | /gw-logs [count\|controller] | Tail controller logs for debugging | | /gw-debug | Full diagnostic with events and recommendations | | /gw-route | Generate HTTPRoute YAML with path rewriting | | /gw-versions | Compare installed vs latest helm chart versions | | /gw-upgrade [component] | Guide helm chart upgrades with pre/post validation |

The gateway-manager agent handles multi-step workflows involving both kgateway and agentgateway.

Key Resources

Gateway

Creates the data plane proxy deployment with a LoadBalancer service:

kind: Gateway
apiVersion: gateway.networking.k8s.io/v1
metadata:
  name: ai-gateway              # Must NOT conflict with controller deployment names
  namespace: kgateway-system
spec:
  gatewayClassName: agentgateway # or "kgateway" for generic backends
  listeners:
  - protocol: HTTP
    port: 8080
    name: http
    allowedRoutes:
      namespaces:
        from: All

HTTPRoute

Gateway API routes with path-based matching and URL rewriting:

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: ollama-route
  namespace: kgateway-system
spec:
  parentRefs:
  - name: ai-gateway
    namespace: kgateway-system
  rules:
  - matches:
    - path:
        type: PathPrefix
        value: /ollama
    filters:
    - type: URLRewrite
      urlRewrite:
        path:
          type: ReplacePrefixMatch
          replacePrefixMatch: /        # Strip prefix!
    backendRefs:
    - name: ollama-backend
      group: agentgateway.dev
      kind: AgentgatewayBackend

Backend CRD (kgateway-native)

For generic backends using kgateway's own CRD:

apiVersion: gateway.kgateway.dev/v1alpha1
kind: Backend
metadata:
  name: my-backend
  namespace: kgateway-system
spec:
  type: Static
  # Backend-specific configuration

GatewayClass

Two GatewayClasses are available — match your CRD to the class:

| GatewayClass | Backend CRD | API Group | Purpose | |---|---|---|---| | kgateway | Backend | gateway.kgateway.dev/v1alpha1 | Generic backends | | agentgateway | AgentgatewayBackend | agentgateway.dev/v1alpha1 | AI/MCP backends |

Installation

# 1. Gateway API CRDs (upstream)
kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.4.1/standard-install.yaml

# 2. kgateway CRDs
helm upgrade -i kgateway-crds oci://cr.kgateway.dev/kgateway-dev/charts/kgateway-crds \
  --version v2.2.1 --namespace kgateway-system --create-namespace

# 3. kgateway controller (with agentgateway enabled)
helm upgrade -i kgateway oci://cr.kgateway.dev/kgateway-dev/charts/kgateway \
  --version v2.2.1 --namespace kgateway-system \
  --set controller.enableAgentgateway=true

Troubleshooting

| Error | Cause | Solution | |-------|-------|----------| | spec.selector: Invalid value... field is immutable | Deployment exists with different labels | Delete existing deployment first | | route not found | HTTPRoute not attached to Gateway | Check parentRefs in HTTPRoute | | 404 errors on backend | Path prefix not stripped | Add URLRewrite filter with ReplacePrefixMatch: / |

Debug Commands

# Check controller logs
kubectl -n kgateway-system logs -l app.kubernetes.io/name=kgateway --tail=50

# Check gateway and routes
kubectl get gateway,httproute -n kgateway-system

# Verify GatewayClass
kubectl get gatewayclass

Reference Files

When you need more detail, load these reference files:

  • references/gateway-api-patterns.md: Gateway, HTTPRoute, GatewayClass patterns, Backend CRD disambiguation
  • references/helm-lifecycle.md: kgateway installation, upgrade, rollback, version checking
  • references/lessons-learned.md: Naming conflicts, OrbStack networking, deployment selector issues

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.