Logo: K8s Envoy Gateway Troubleshooting

K8s Envoy Gateway Troubleshooting

Organisatioun
k8s-servant
k8s-envoy-gateway-troubleshooting

Benotzt dës Skill, wann Envoy Gateway (d'Gateway-API-Implementatioun vum Envoy-Projet) Traffic a Kubernetes net weiderleet: e Gateway ass net Programmed („AddressNotAssigned“), eng HTTPRoute ass net Accepted („NoMatchingListenerHostname“, „NotAllowedByListeners“) oder hir ResolvedRefs steet op False („BackendNotFound“, „RefNotPermitted“ ouni ReferenceGrant), Clientë kréien 404, 500 oder 503 „no healthy upstream“ vum Gateway, e GatewayClass ass net Accepted, oder d'Ressourcen BackendTrafficPolicy, ClientTrafficPolicy, SecurityPolicy an EnvoyProxy ginn net applizéiert. Ënnersicht de Problem mat kubectl get, describe, events a Logs a proposéiert Léisungen. Liest fir d'éischt a freet, éier eppes geännert gëtt.

Iwwersiicht

Editeurk8s-servant
Repositoryk8s-skills
Skill-Nummk8s-envoy-gateway-troubleshooting
Stären
36
Forks
7
Matgeliwwert Dateien
2
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    k8s-servant huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill K8s Envoy Gateway Troubleshooting an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-envoy-gateway-troubleshooting
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/k8s-servant/k8s-skills.git /tmp/k8s-skills
mkdir -p .claude/skills
cp -r /tmp/k8s-skills/skills/k8s-envoy-gateway-troubleshooting .claude/skills/k8s-envoy-gateway-troubleshooting
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert K8s Envoy Gateway Troubleshooting an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet K8s Envoy Gateway Troubleshooting automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass K8s Envoy Gateway Troubleshooting net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Envoy Gateway troubleshooting

Find out why Envoy Gateway does not route a request, and propose a fix. Read first, ask before changing. Run the investigation commands freely. Run a command under an "Ask first" line only after the user approves that exact command; if your credentials do not allow it, give it to the user to run. Never run a "Proposed fix"; hand it to the user.

A GatewayClass with controller gateway.envoyproxy.io/gatewayclass-controller belongs to Envoy Gateway. For each Gateway of that class, Envoy Gateway runs an Envoy Deployment and Service (by default in envoy-gateway-system, labelled gateway.envoyproxy.io/owning-gateway-name). HTTPRoutes (and GRPC, TLS, TCP and UDP routes) attach to a Gateway's listeners and send traffic to backends. Every object reports what Envoy Gateway made of it in its status conditions, so the status usually names the cause. Envoy Gateway's own policies (BackendTrafficPolicy, ClientTrafficPolicy, SecurityPolicy, EnvoyProxy, EnvoyPatchPolicy) attach to Gateways or routes.

The commands use placeholders: my-namespace, my-gateway, my-app (the route and its Service) and my-app.example.com. Replace them with the real names. The built-in view role cannot read Gateway API or Envoy Gateway objects (neither ships a read role); if they are forbidden, say so and ask the user for them. Never read Secrets: not TLS certificates referenced by listeners, not SecurityPolicy credentials, not the envoy Secret the proxies mount. The Envoy image has no shell, and its admin interface listens only on localhost, so there is no kubectl path to it; egctl config envoy-proxy needs a port-forward and is left to the user.

When to use

  • Requests through a Gateway get 404, 500 or 503, or time out.
  • kubectl get gateways shows PROGRAMMED False, or a route does not take effect.
  • A policy (rate limit, timeout, auth, CORS) has no effect.

Hand-offs, by skill name. When the evidence points elsewhere, continue with that skill; if it is not installed, keep going with the steps here and tell the user which skill would help:

  • The backend Service has no ready endpoints, or its pods fail: k8s-network-troubleshooting, k8s-workload-troubleshooting.
  • The listener's certificate comes from cert-manager and is not issued: k8s-cert-manager-troubleshooting.
  • Another Gateway API implementation (Istio, Cilium, a cloud controller) owns the GatewayClass, or no controller claims it (Waiting for controller): k8s-gateway-api-troubleshooting and that implementation's skill.
  • A listener, ListenerSet or Gateway API CRD problem that is not specific to Envoy Gateway: k8s-gateway-api-troubleshooting.
  • What an Envoy response flag, reset reason or cluster statistic means in general: k8s-envoy-troubleshooting (the proxy itself; Envoy Gateway writes its config).

Investigate

Work through the steps in order. Stop when you have the cause and its evidence.

1. See the GatewayClass and the Gateway: Accepted and Programmed, the listeners and the address.

bash
kubectl get gatewayclasses
kubectl get gateways -A
kubectl get gateway my-gateway -n my-namespace -o jsonpath='{range .status.conditions[*]}{.type}={.status} {.reason}: {.message}{"\n"}{end}{range .status.listeners[*]}{.name}{" routes="}{.attachedRoutes}{" "}{.conditions}{"\n"}{end}'

2. Read the route's status for each parent: Accepted (did it attach to the listener?) and ResolvedRefs (are its backends usable?).

bash
kubectl get httproutes -A
kubectl get httproute my-app -n my-namespace -o jsonpath='{range .status.parents[*]}{.parentRef}{"\n"}{range .conditions[*]}{"  "}{.type}={.status} {.reason}: {.message}{"\n"}{end}{end}'
kubectl get httproute my-app -n my-namespace -o yaml

3. Compare the route with the Gateway and the backends: hostnames, parentRefs (name, namespace, sectionName), the listener's allowedRoutes, and the backend Services and ReferenceGrants.

bash
kubectl get gateway my-gateway -n my-namespace -o jsonpath='{range .spec.listeners[*]}{.name}{" "}{.protocol}{" "}{.port}{" "}{.hostname}{" "}{.allowedRoutes}{"\n"}{end}'
kubectl get services,endpointslices -n my-namespace
kubectl get referencegrants -A

4. Check Envoy Gateway and the proxy for the Gateway.

bash
kubectl get deployments,pods,services -n envoy-gateway-system -l gateway.envoyproxy.io/owning-gateway-name=my-gateway
kubectl logs -n envoy-gateway-system deployment/envoy-gateway --tail=100
kubectl get backendtrafficpolicies,clienttrafficpolicies,securitypolicies,envoyproxies,envoypatchpolicies -A

5. Open the matching reference and follow its steps:

What you seeReference
A route not Accepted, ResolvedRefs False, 404 or 500 responses, ReferenceGrantsreferences/routes.md
GatewayClass or Gateway not Accepted or Programmed, no address, listener conflicts, policies without effect, the proxyreferences/gateways-and-policies.md

Read the results

What the common findings mean (Envoy Gateway 1.9, Gateway API 1.6):

  • Route Accepted False, reason NoMatchingListenerHostname (There were no hostname intersections between the HTTPRoute and this parent ref's Listener(s)): the route's hostnames and the listener's hostname share no name; the route is not attached and requests for that host get 404.
  • Accepted False, NotAllowedByListeners: the listener's allowedRoutes does not admit routes from the route's namespace or of its kind.
  • ResolvedRefs False, BackendNotFound (... service <ns>/<name> not found): the backend Service does not exist. Envoy Gateway answers that rule with 500.
  • ResolvedRefs False, RefNotPermitted (Backend ref to Service <ns>/<name> not permitted by any ReferenceGrant): the backend is in another namespace and no ReferenceGrant there allows it. Also 500.
  • Accepted and ResolvedRefs True, but 503 no healthy upstream: the Service exists but has no ready endpoints (BackendsAvailable False, EndpointsNotFound).
  • Gateway Programmed False, AddressNotAssigned: its Service is a LoadBalancer that got no address (no load balancer in the cluster, a quota, a cloud error).

State the cause in one sentence, then the evidence you saw (the condition, reason and message, the spec fields), then the proposed fix.

Proposed fix

Show each fix to the user before running it: what it changes and how to undo it. Patching a route's hostnames or backend reference is reversible, so it goes under "Ask first" and runs only after the user says yes. Creating ReferenceGrants (they let one namespace's routes reach another's Services), changing Gateways, listeners, GatewayClasses and Envoy Gateway policies change traffic and access for others: never run them yourself; hand them to the user as proposed fixes. Prefer fixing the source. Write each undo with the values you found.

Point a route at the Service that exists:

Ask first: the agent runs this only after the user approves it.

bash
kubectl patch httproute my-app -n my-namespace --type=json -p '[{"op": "replace", "path": "/spec/rules/0/backendRefs/0/name", "value": "my-app"}]'
# Undo: kubectl patch httproute my-app -n my-namespace --type=json -p '[{"op": "replace", "path": "/spec/rules/0/backendRefs/0/name", "value": "my-app-svc"}]'

Give a route the hostname its listener accepts (use the index of the hostname you found):

Ask first: the agent runs this only after the user approves it.

bash
kubectl patch httproute my-app -n my-namespace --type=json -p '[{"op": "replace", "path": "/spec/hostnames/0", "value": "my-app.example.com"}]'
# Undo: kubectl patch httproute my-app -n my-namespace --type=json -p '[{"op": "replace", "path": "/spec/hostnames/0", "value": "app.example.com"}]'

Sources

Checked against the Envoy Gateway 1.9 documentation and source (v1.9.2) and Gateway API 1.6:

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill K8s Envoy Gateway Troubleshooting?

Benotzt dës Skill, wann Envoy Gateway (d'Gateway-API-Implementatioun vum Envoy-Projet) Traffic a Kubernetes net weiderleet: e Gateway ass net Programmed („AddressNotAssigned“), eng HTTPRoute ass net Accepted („NoMatchingListenerHostname“, „NotAllowedByListeners“) oder hir ResolvedRefs steet op False („BackendNotFound“, „RefNotPermitted“ ouni ReferenceGrant), Clientë kréien 404, 500 oder 503 „no healthy upstream“ vum Gateway, e GatewayClass ass net Accepted, oder d'Ressourcen BackendTrafficPolicy, ClientTrafficPolicy, SecurityPolicy an EnvoyProxy ginn net applizéiert. Ënnersicht de Problem m...

Firwat K8s Envoy Gateway Troubleshooting op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. K8s Envoy Gateway Troubleshooting besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech K8s Envoy Gateway Troubleshooting an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-envoy-gateway-troubleshooting an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen K8s Envoy Gateway Troubleshooting benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat K8s Envoy Gateway Troubleshooting benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir K8s Envoy Gateway Troubleshooting domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill K8s Envoy Gateway Troubleshooting gratis?

Jo. k8s-servant huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇