Logotipo de K8s Envoy Gateway Troubleshooting

K8s Envoy Gateway Troubleshooting

Organización
k8s-servant
k8s-envoy-gateway-troubleshooting

Úsala cuando Envoy Gateway (la implementación de Gateway API del proyecto Envoy) no enruta el tráfico en Kubernetes: un Gateway no está Programmed («AddressNotAssigned»); una HTTPRoute no está Accepted («NoMatchingListenerHostname», «NotAllowedByListeners») o su ResolvedRefs es False («BackendNotFound», «RefNotPermitted» sin un ReferenceGrant); los clientes reciben 404, 500 o 503 «no healthy upstream» del gateway; un GatewayClass no está Accepted, o los recursos BackendTrafficPolicy, ClientTrafficPolicy, SecurityPolicy y EnvoyProxy no se aplican. Investiga con kubectl get, describe, events y logs, y propone soluciones. Primero lee la información y pregunta antes de cambiar nada.

Descripción general

Editork8s-servant
Repositoriok8s-skills
Nombre de la habilidadk8s-envoy-gateway-troubleshooting
Estrellas
36
Forks
7
Archivos incluidos
2
LicenciaApache-2.0
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 2

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por k8s-servant en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA K8s Envoy Gateway Troubleshooting en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-envoy-gateway-troubleshooting
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa K8s Envoy Gateway Troubleshooting en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga K8s Envoy Gateway Troubleshooting automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que K8s Envoy Gateway Troubleshooting no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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:

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA K8s Envoy Gateway Troubleshooting?

Úsala cuando Envoy Gateway (la implementación de Gateway API del proyecto Envoy) no enruta el tráfico en Kubernetes: un Gateway no está Programmed («AddressNotAssigned»); una HTTPRoute no está Accepted («NoMatchingListenerHostname», «NotAllowedByListeners») o su ResolvedRefs es False («BackendNotFound», «RefNotPermitted» sin un ReferenceGrant); los clientes reciben 404, 500 o 503 «no healthy upstream» del gateway; un GatewayClass no está Accepted, o los recursos BackendTrafficPolicy, ClientTrafficPolicy, SecurityPolicy y EnvoyProxy no se aplican. Investiga con kubectl get, describe, events...

¿Por qué usar K8s Envoy Gateway Troubleshooting en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. K8s Envoy Gateway Troubleshooting está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo K8s Envoy Gateway Troubleshooting en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-envoy-gateway-troubleshooting. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar K8s Envoy Gateway Troubleshooting?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar K8s Envoy Gateway Troubleshooting?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar K8s Envoy Gateway Troubleshooting con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA K8s Envoy Gateway Troubleshooting?

Sí. k8s-servant la ha publicado en GitHub bajo la licencia Apache-2.0. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇