gke-service-networking
Qué hace
Esta skill ayuda a un agente de IA a configurar cómo se accede a las aplicaciones que se ejecutan en Google Kubernetes Engine, desde Internet o desde redes privadas. Es para equipos que publican una aplicación de GKE con enrutamiento y balanceo de carga.
Cuándo usarla
- ✓Cuando quieres publicar una aplicación de GKE con Gateway API o con Ingress estándar.
- ✓Cuando necesitas configurar políticas de seguridad de Cloud Armor o certificados SSL gestionados por Google.
- ✓Cuando un Ingress o un balanceador de carga devuelve errores 502 u otros 5xx en GKE.
Link de la skill
https://github.com/google/skills/blob/main/skills/cloud/gke-service-networking/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Mi aplicación de GKE devuelve errores 502 a través del balanceador de carga. ¿Cómo configuro el enrutamiento y lo arreglo?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente usa plantillas listas para la puerta de enlace, las rutas y el reparto de tráfico, y revisa las comprobaciones de salud y la configuración del backend cuando aparecen errores.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
GKE Service Networking Skill
This skill provides workflows for exposing applications running on GKE securely to the internet or internal networks.
Deployable manifest templates live in assets/ — edit the # Replace ...
placeholders before applying.
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read Usage Attribution. For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix gcloud with
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:gke-service-networking)"
and append agent-skills/1.0 (skill:gke-service-networking) to User-Agent headers.
Workflows
1. Configure Gateway API (Recommended)
The Gateway API is the modern way to manage routing in Kubernetes.
Prerequisites: Gateway API must be enabled on the cluster (enabled by
default on new clusters running GKE 1.26+; on older supported versions enable it
with --gateway-api=standard).
Templates:
assets/gateway.yaml— external Gateway using thegke-l7-global-external-managedGatewayClass with an HTTP listener.assets/httproute.yaml— HTTPRoute attaching to the Gateway viaparentRefsand routing a path prefix to a ServicebackendRef.assets/httproute-traffic-split.yaml— HTTPRoute demonstrating weighted traffic splitting (e.g. 90/10) for canary deployments across backend services.
kubectl apply -f assets/gateway.yaml
kubectl apply -f assets/httproute.yaml
Traffic Splitting (Canary Deployments):
HTTPRoute supports weighted traffic splitting across multiple backend Services for canary rollouts:
spec:
rules:
- backendRefs:
- name: app-v1
port: 80
weight: 90
- name: app-v2
port: 80
weight: 10
2. Configure Standard GKE Ingress
Use standard Ingress for simpler use cases or legacy setups.
Template: assets/ingress.yaml — GCE Ingress (kubernetes.io/ingress.class: "gce" annotation) routing to a Service.
3. Secure with Cloud Armor
Cloud Armor provides WAF and DDoS protection.
Create a Security Policy in Cloud Armor:
gcloud compute security-policies create {security_policy_name} \ --description "WAF policy for {app_name}" # Example rule: block an abusive IP range gcloud compute security-policies rules create 1000 \ --security-policy {security_policy_name} \ --action deny-403 \ --src-ip-ranges "203.0.113.0/24" \ --description "Block abusive range"Reference it in a
BackendConfig:assets/backendconfig.yaml(setsspec.securityPolicy.name).Associate the
BackendConfigwith yourServicevia annotations:# In your Kubernetes Service manifest metadata.annotations: cloud.google.com/backend-config: '{"default": "{backend_config_name}"}' # Or for specific port mappings: cloud.google.com/backend-config: '{"ports": {"80": "{backend_config_name}"}}'
4. Configure Google-Managed SSL Certificates
Automatically provision and renew SSL certificates.
Legacy Ingress approach: apply assets/managed-certificate.yaml (a
ManagedCertificate listing your domains), then reference it in the Ingress
annotations:
networking.gke.io/managed-certificates: {certificate_name}
Gateway API approach: for standard Certificate Manager integration, create a
CertificateMap and reference it in the Gateway metadata annotations using the
exact annotation networking.gke.io/certmap (spelled without any hyphens in
certmap):
metadata:
annotations:
networking.gke.io/certmap: {certificate_map_name}
[!IMPORTANT] The annotation key is strictly
networking.gke.io/certmap(do not usecert-maporcertificate-map).
Alternatively, reference a Kubernetes Secret in the HTTPS listener's
tls.certificateRefs. Both variants are in assets/gateway-https.yaml.
5. Enable Container-Native Load Balancing (Recommended)
Container-native load balancing allows load balancers to target Kubernetes Pods directly, rather than targeting nodes. This improves latency and distribution.
Prerequisites: Cluster must be VPC-native.
How it works: the cloud.google.com/neg annotation on a Service triggers
creation of a NEG that mirrors the Pod IPs. GKE often adds it for you — but not
always, and knowing which case you are in
Preguntas frecuentes
¿Qué método de enrutamiento recomienda?
Indica que Gateway API es la forma moderna de gestionar el enrutamiento en Kubernetes.
¿Puede repartir el tráfico entre versiones?
Sí. Incluye una plantilla para el reparto de tráfico ponderado.
¿Cubre el acceso a servicios privados?
Sí. Cubre Private Service Connect para los endpoints de servicios privados.
Detalles
Descripción original del autor
Configures GKE edge networking, traffic routing, load balancing, and private service endpoints. Use when configuring Gateway API manifests, standard Ingress, Cloud Armor WAF security policies, Container-Native Load Balancing (NEGs), Private Service Connect (PSC), or Google-managed SSL certificates on GKE, and to troubleshoot Ingress and load-balancer 502/5xx errors, backend health-check failures, connection draining, and TLS/SSL policy enforcement. Don't use for core cluster IP planning, Dataplane V2 network policies, or node NAT egress (use gke-networking instead).
repo: google/skills
Popularidad
- Estrellas en GitHub
- 22 mil
- Posición en el ranking
- #10297
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
finding-google-skills
22 milAyuda a tu agente a encontrar las guías de Google adecuadas para una tarea de configuración, como alojamiento, bases de datos, almacenamiento, inicio de sesión o servicio de modelos de IA.
gcloud
22 milAyuda a tu agente a escribir y comprobar comandos gcloud de Google Cloud, consultando la sintaxis exacta antes de ejecutar nada para no adivinar los parámetros.
google-cloud-recipe-auth
22 milGuía a tu agente por la identidad y el acceso en Google Cloud, incluido cómo inician sesión las personas y los servicios y qué permisos reciben.
google-cloud-recipe-onboarding
22 milGuía a un desarrollador nuevo en sus primeros pasos en Google Cloud, incluida la elección de un proyecto, la vinculación de la facturación y el despliegue de un primer recurso.
Skills parecidas
openclaw-update
394 milAyuda a tu agente a actualizar una Gateway de OpenClaw que ya existe, eligiendo el método de actualización que encaja con cómo se instaló y manteniendo tu sesión activa.
diagnose-gateway
394 milAyuda a tu agente a averiguar por qué falla tu Gateway de OpenClaw, revisando ajustes, canales y puertos sin cambiar nada.
crabbox-apps
394 milAyuda a tu agente a abrir y ejecutar una app en una máquina temporal en la nube y mostrar su vista en el panel lateral de tu chat.