Official agent skill

Gke Service Networking

by google in google/skills

Configures GKE edge networking, traffic routing, load balancing, and private service endpoints.

OfficialApache-2.0Auto-check passedDevOps & Cloud

Install Gke Service Networking

skills CLI
$ npx skills add google/skills --skill gke-service-networking -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install google/skills gke-service-networking --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/google/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cloud/gke-service-networking .claude/skills/gke-service-networking && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gke-service-networking
GitHub stars
21k
Token cost
~2.9k tokens
SKILL.md length
1,163 words
Files
9 (incl. assets)
Skills in repo
147
Repo updated
First seen
Licence
Apache-2.0

At a glance

Configures GKE edge networking, traffic routing, load balancing, and private service endpoints.

  • Works in 7 steps: Configure Gateway API (Recommended) → Configure Standard GKE Ingress → Secure with Cloud Armor → …
  • Configuring Gateway API manifests
  • SKILL.md covers Workflows, Troubleshooting, Gotchas and References
  • Calls kubectl

What it does

Gke Service Networking is an agent skill from google/skills, published by the product's own GitHub organization. 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…

Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including assets (for example `assets/backendconfig.yaml`, `assets/gateway-https.yaml` and `assets/gateway.yaml`).

It sits in DevOps & Cloud, covering Cloud networking. It works with Google Kubernetes Engine. The repository describes itself as: Agent Skills for Google products and technologies. The licence is Apache-2.0.

When your agent uses it

  • Configuring Gateway API manifests
  • Standard Ingress
  • Cloud Armor WAF security policies
  • Container-Native Load Balancing (NEGs)

Example prompts

  • “Use the gke-service-networking skill to configure GKE edge networking, traffic routing, load balancing, and private service endpoints”
  • “/gke-service-networking”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Configure Gateway API (Recommended)
  2. Configure Standard GKE Ingress
  3. Secure with Cloud Armor
  4. Configure Google-Managed SSL Certificates
  5. Enable Container-Native Load Balancing (Recommended)
  6. Configure Private Service Connect (PSC)
  7. Topology Aware Routing (Cost & Latency Optimization)

What it can do on your machine

Read from SKILL.md and the folder at commit 5120a76. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • kubectl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.cloud.google.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gke Service Networking loads about 2.9k tokens when it runs. Until then it costs about 149 tokens; SKILL.md has 1,163 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~149
When it runs · the whole SKILL.md, loaded when a task matches
~2.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from google/skills at commit 5120a76, republished under its Apache-2.0 licence (© google). 1,163 words, ~2,891 tokens.

Download SKILL.mdSave it as .claude/skills/gke-service-networking/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
gke-service-networking
description
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).
metadata.version
1.1.0
metadata.category
Networking

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.

Workflows

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 the gke-l7-global-external-managed GatewayClass with an HTTP listener.
  • assets/httproute.yaml — HTTPRoute attaching to the Gateway via parentRefs and routing a path prefix to a Service backendRef.
  • assets/httproute-traffic-split.yaml — HTTPRoute demonstrating weighted traffic splitting (e.g. 90/10) for canary deployments across backend services.
bash
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:

yaml
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.

  1. Create a Security Policy in Cloud Armor:

    bash
    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"
  2. Reference it in a BackendConfig: assets/backendconfig.yaml (sets spec.securityPolicy.name).

  3. Associate the BackendConfig with your Service via annotations:

    yaml
    # 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:

yaml
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):

yaml
metadata:
  annotations:
    networking.gke.io/certmap: {certificate_map_name}

[!IMPORTANT] The annotation key is strictly networking.gke.io/certmap (do not use cert-map or certificate-map).

Alternatively, reference a Kubernetes Secret in the HTTPS listener's tls.certificateRefs. Both variants are in assets/gateway-https.yaml.

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 is the whole point.

yaml
# In your Kubernetes Service manifest metadata.annotations:
cloud.google.com/neg: '{"ingress": true}'

When the annotation is automatic (do not add it by hand):

  • Internal Ingress — container-native load balancing is always used, not optional. Internal Ingress always uses GCE_VM_IP_PORT NEGs and requires a VPC-native cluster.
  • External Ingress, but only when all four hold: the cluster is VPC-native, is not on Shared VPC, does not use GKE Network Policy, and has the HttpLoadBalancing add-on enabled (on by default — do not disable it). GKE then annotates Services automatically.

When you must add it explicitly:

  • Standalone NEGs — you manage the load balancer yourself instead of letting Ingress own it. Required if the LB must be configured outside GKE, since Ingress overwrites managed load balancer settings on sync or upgrade. You become responsible for every part of the load balancer.
  • Any external-Ingress cluster failing one of the four conditions above — Shared VPC, GKE Network Policy, or non-VPC-native. Enable per Service.
  • Legacy configurations — some older external Ingress objects created on VPC-native clusters still use instance group backends.

Not supported / no NEG fallback:

  • Windows Server node pools.
  • Routes-based (non-VPC-native) clusters with external Ingress — the Ingress controller falls back to unmanaged instance groups spanning all nodes.

Scale consequence: without NEGs a cluster is capped at 1,000 nodes, and non-NEG Services behind Ingress stop functioning correctly beyond that. With NEGs there is no GKE node limit.

6. Configure Private Service Connect (PSC)

Private Service Connect allows you to expose services in one VPC to consumers in another VPC securely, without VPC peering.

Prerequisite: The backing Service must be an internal passthrough Network Load Balancer — i.e. type: LoadBalancer with the networking.gke.io/load-balancer-type: "Internal" annotation. The ServiceAttachment requires this; a ClusterIP or external LoadBalancer Service will not work.

Steps:

  1. Create an internal LoadBalancer Service for your workload.
  2. Create a ServiceAttachment referencing that Service: assets/service-attachment.yaml (sets connectionPreference, the PSC NAT subnet, and the Service resourceRef).
  3. Share the ServiceAttachment URI with consumers to create a PSC endpoint in their VPC.
Show full SKILL.md (437 more words)Show less
7. Topology Aware Routing (Cost & Latency Optimization)

To minimize cross-zone data transfer costs and network latency, configure Kubernetes Services with Topology Aware Routing. This routes traffic to Pods in the same zone as the originating client:

yaml
# In your Kubernetes Service manifest metadata.annotations:
service.kubernetes.io/topology-mode: auto

Troubleshooting

Diagnose Ingress / load-balancer data-plane failures. These map to both Ingress (BackendConfig / FrontendConfig) and Gateway (GCPBackendPolicy / HealthCheckPolicy / GCPGatewayPolicy). Stay at the read-only → propose-manifest boundary; never apply live mutations directly.

502 / 5xx with UNHEALTHY backends (health checks)

The Google Cloud load-balancer health check is separate from Kubernetes liveness/readiness probes — it runs from outside the cluster, so a Pod can be Ready while the backend service still shows UNHEALTHY.

  1. Allow the Google health-check source ranges to the node/Pod serving port. GKE usually creates this rule automatically, but on Shared VPC or with hand-managed firewalls it can be missing:

    bash
    gcloud compute firewall-rules create allow-lb-health-checks \
      --allow tcp:SERVING_PORT \
      --source-ranges 130.211.0.0/22,35.191.0.0/16 \
      --target-tags NODE_TAG
  2. Point the health check at a healthy endpoint. If the default / returns a non-200, set a custom health check with a BackendConfig (Ingress) or a HealthCheckPolicy (Gateway):

    yaml
    # BackendConfig (Ingress)
    spec:
      healthCheck:
        requestPath: /healthz
        port: 8080
        checkIntervalSec: 15
        timeoutSec: 5
  3. Confirm the Service is container-native (NEG) so the check targets Pod IPs rather than nodes (see workflow 5).

502 / dropped requests during rollouts or on long requests
  • Enable connection draining so in-flight requests finish before a backend Pod is removed during a rolling update or scale-down:

    yaml
    # BackendConfig (Ingress)
    spec:
      connectionDraining:
        drainingTimeoutSec: 60
  • Raise the backend timeout for slow or streaming responses — a 502/408 on a request that runs longer than the backend response timeout is the classic symptom. Set timeoutSec in the BackendConfig (Ingress) or GCPBackendPolicy (Gateway).

TLS / SSL handshake failures or weak-cipher enforcement
  • Ingress: attach an SSL policy (minimum TLS version / cipher profile) with a FrontendConfig sslPolicy, and optionally force HTTP→HTTPS with redirectToHttps:

    yaml
    # FrontendConfig (external Ingress only)
    spec:
      sslPolicy: gke-ingress-ssl-policy
      redirectToHttps:
        enabled: true
  • Gateway: attach the SSL policy name in a GCPGatewayPolicy. For a regional Gateway, create and reference a regional SSL policy.

Gotchas

  1. Certificate Manager API must be enabled for the networking.gke.io/certmap annotation to work (gcloud services enable certificatemanager.googleapis.com); without it the Gateway fails to provision the certificate map.
  2. Regional Gateway classes need a proxy-only subnet: classes like gke-l7-regional-external-managed and gke-l7-rilb require a subnet with --purpose=REGIONAL_MANAGED_PROXY in the region; the Gateway stays unprogrammed without it.
  3. ManagedCertificate provisioning depends on DNS: the certificate stays in Provisioning until the domain's A/AAAA records point at the load balancer IP, and can take 15-60 minutes after DNS is correct.

References

© google, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (assets) in skills/cloud/gke-service-networking of google/skills.

  • SKILL.md
  • assets/backendconfig.yaml
  • assets/gateway-https.yaml
  • assets/gateway.yaml
  • assets/httproute-traffic-split.yaml
  • assets/httproute.yaml
  • assets/ingress.yaml
  • assets/managed-certificate.yaml
  • assets/service-attachment.yaml

Open the folder on GitHubat commit 5120a76

Compare with similar skills

Gke Service Networking next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gke Service Networking compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gke Service Networking this skillgoogle/skills21k—~2.9kAutomated safety check: PassApache-2.0
Kubeshark KFL2 Filter Referencekubeshark/kubeshark12k—~3.6kAutomated safety check: PassApache-2.0
Nginx To Higress Migrationhigress-group/higress9.5k—~3.9kAutomated safety check: PassApache-2.0
Bfe Rd Workflowbfenetworks/bfe6.3k—~1.3kAutomated safety check: PassApache-2.0
NGINX Ingress Controller Feature Checklistsnginx/kubernetes-ingress5.1k—~1.4kAutomated safety check: PassApache-2.0
NGINX Ingress Policy CRD Guidenginx/kubernetes-ingress5.1k—~2kAutomated safety check: PassApache-2.0

Similar skills

  • Syntax reference for KFL2, the CEL-based display filter language used to search Kubernetes network traffic captured by Kubeshark, loaded before any filter is written.

    12k GitHub stars~3.6k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Nginx To Higress Migration

    higress-group/higress

    Migrate from ingress-nginx to Higress in Kubernetes environments.

    9.5k GitHub stars~3.9k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Bfe Rd Workflow

    bfenetworks/bfe

    引导用户在 bfe 代码库中完成一次完整的功能研发流程,包括需求对齐、文档修改、代码实现、集成测试与回归验证. An agent skill from bfenetworks/bfe.

    6.3k GitHub stars~1.3k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Gives step-by-step checklists for adding Ingress annotations, VirtualServer fields and Helm values to the NGINX Kubernetes Ingress Controller, with common gotchas.

    5.1k GitHub stars~1.4k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • NGINX Ingress Policy CRD Guide

    nginx/kubernetes-ingress

    Step-by-step checklist for adding a new Policy CRD type to the NGINX Ingress Controller, from the Go types and validation to config generation and templates.

    5.1k GitHub stars~2k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Devops

    nicepkg/auto-company

    Deploy to Cloudflare (Workers, R2, D1), Docker, GCP (Cloud Run, GKE), Kubernetes (kubectl, Helm).

    194 GitHub starsUsed in 2 repos~814 tokens
    DevOps & CloudAuto-check passed

More from google/skills

All 147 skills in this repo
  • Official

    Query Cloud Trace spans, filter by latency thresholds or error status, correlate distributed traces with Cloud Logging, and diagnose latency bottlenecks across Google Cloud services.

    21k GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Official

    Manages Google Cloud Privileged Access Manager entitlements and grants: create and edit entitlements, request temporary access, and approve or deny pending grants.

    21k GitHub stars~3.2k tokensUpdated yesterday
    Auto-check passed
  • Official

    Writes Terraform alerting policies for AI agents that emit OpenTelemetry metrics, covering reliability, cost, safety, security and quality signals on Google Cloud.

    21k GitHub stars~4.2k tokensUpdated yesterday
    Auto-check passed
  • Official

    Deploys open models or custom weights from Model Garden to Agent Platform endpoints, checks deployment status and cleans up endpoints, confirming before any change.

    21k GitHub stars~5k tokensUpdated yesterday
    Auto-check passed
  • Official

    Searches, manages and scaffolds skills in the Gemini Enterprise Agent Platform Skill Registry using bundled Python scripts and Google Cloud credentials.

    21k GitHub stars~584 tokensUpdated yesterday
    Auto-check passed
  • Designs GCP infrastructure as local Terraform, validates and scans it against best practices, then imports it to Application Design Center for deployment and troubleshooting.

    21k GitHub stars~4.4k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Gke Service Networking

What does Gke Service Networking do?

Configures GKE edge networking, traffic routing, load balancing, and private service endpoints. Gke Service Networking is an agent skill from google/skills, published by the product's own GitHub organization. Configures GKE edge networking, traffic routing, load balancing, and private service endpoints.

When should I use Gke Service Networking?

Gke Service Networking fits situations like: configuring Gateway API manifests; standard Ingress; cloud Armor WAF security policies; container-Native Load Balancing (NEGs).

How do I install Gke Service Networking in Claude Code?

Run `npx skills add google/skills --skill gke-service-networking -a claude-code`. Or copy the skill folder (skills/cloud/gke-service-networking in google/skills) into .claude/skills/gke-service-networking in your project. Claude Code loads it when a task matches its description.

How do I install Gke Service Networking in Codex?

Run `npx skills add google/skills --skill gke-service-networking -a codex`. Or copy the skill folder (skills/cloud/gke-service-networking in google/skills) into .agents/skills/gke-service-networking in your project. Codex loads it when a task matches its description.

Can I use Gke Service Networking in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add google/skills --skill gke-service-networking -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gke-service-networking, .gemini/skills/gke-service-networking, .github/skills/gke-service-networking and .opencode/skills/gke-service-networking in your project.

What does Gke Service Networking need to run?

Going by SKILL.md and its folder, Gke Service Networking needs the command-line tools its instructions call (kubectl).

Does Gke Service Networking access the network?

SKILL.md names 1 domain. As links in the text: docs.cloud.google.com. This is read from the text; nothing was executed.

Is Gke Service Networking safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gke Service Networking use?

Gke Service Networking is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gke Service Networking use?

About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gke Service Networking?

Skills that share tags, products or a category with Gke Service Networking: Kubeshark KFL2 Filter Reference (kubeshark/kubeshark, 12k stars), Nginx To Higress Migration (higress-group/higress, 9.5k stars), Bfe Rd Workflow (bfenetworks/bfe, 6.3k stars) and NGINX Ingress Controller Feature Checklists (nginx/kubernetes-ingress, 5.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gke Service Networking?

google (a GitHub organization, an official publisher) maintains it in google/skills, which has 21,069 GitHub stars. The repository holds 147 skills in this directory. The repository was last updated on October 9, 2026.

Source: google/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.