agentleFS
Google CloudKnown publisherGoogleCloudPlatform/cloud-solutions/projects/gke-migration-agent/app-dev/network-translation/SKILL.md

network-translation

Skill139 starsChanged 6 months agoApache-2.0View on GitHub

Translates Amazon Elastic Kubernetes Service (EKS) Application Load Balancer (ALB) Ingress annotations and AWS Web Application Firewall (WAF) configurations into Google Kubernetes Engine (GKE) Gateway API resources, Cloud Armor policies, and Google Cloud backend policies. Use when converting AWS ALB ingress annotations to GKE Gateway API and HTTPRoute resources. Don't use for IAM service account mapping or storage PVC remapping.

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Verify that all Ingress/Gateway classes, TLS certificates, and NetworkPolicy CIDRs referenced in the raw manifests have valid GKE and …

    line 82
  2. Distinctive:

    When translating the workload manifests:

    line 94
  3. Very specific:

    Use GKE-native policies (like HealthCheckPolicy or GCPBackendPolicy) for custom health checks and Cloud Armor configurations.

    line 106
  4. Very specific:

    Update all rules/hostnames to map custom domains using domain_mappings.

    line 112

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Network translation

<!-- Disabling markdownlint MD029 to provide explicit ordering to avoid confusing the LLM. --><!-- markdownlint-disable MD029 --><!-- Disabling markdownlint MD030 to allow the list overflowing to numbers >=10. --><!-- markdownlint-disable MD030 -->

Purpose

Automate the mapping and translation of Amazon Elastic Kubernetes Service (EKS) ALB (Application Load Balancer) Ingress annotations (external routing, path mapping, TLS termination, health check endpoints) and AWS WAF (Web Application Firewall) protection settings into Google Kubernetes Engine (GKE) Gateway API configuration resources.

When to use this skill

Trigger on:

  • "Translate EKS ALB Ingress to GKE Gateway"
  • "Map Ingress annotations to HTTPRoute rules"
  • "Convert AWS WAF to Cloud Armor security policies"

Prerequisites

  • python3 version 3.10 or later
  • Install dependencies listed in scripts/requirements.txt: pip install --require-hashes -r scripts/requirements.txt
  • Path to handoff directory containing workload-handoff.json (or workload-handoff-namespace.json) and network-map.json
  • Path to directory containing raw EKS manifests (--raw-manifests-dir)

Assets and references

The following schema files under assets/schemas/ define the JSON contracts used by this skill:

  • network-map.schema.json: Schema for validating network policy and ingress mappings.
  • workload-handoff.schema.json: Schema for cluster-level workload handoff specifications.
  • workload-handoff-namespace.schema.json: Schema for namespace-level workload handoff specifications.

The following reference documents under references/ provide translation guidance:

  • references/ingress_to_gateway_mapping.md: Guidance for converting EKS ALB Ingress rules to GKE Gateway API.
  • references/cloud_armor_waf_rules.md: Guidance for translating AWS WAF rules to Google Cloud Armor policies.

The following dependency files under scripts/ are used by this skill:

  • scripts/requirements.in: Input dependencies for python validation scripts.
  • scripts/requirements.txt: Hashed dependency lockfile for python validation scripts. Install using: pip install --require-hashes -r scripts/requirements.txt

Procedure

Step 1 — Validate network mapping completeness

Verify that all Ingress/Gateway classes, TLS certificates, and NetworkPolicy CIDRs referenced in the raw manifests have valid GKE and Google Cloud target mappings in network-map.json:

python3 scripts/validate_network_map.py \
  --handoff-dir "${HANDOFF_DIR:-.}" \
  --raw-manifests-dir "${RAW_MANIFESTS_DIR:-./raw-manifests}"

Step 2 — Translate network resources

When translating the workload manifests:

  1. Ingress and Gateway Class mapping:
    • Parse EKS Ingress or Gateway resources.
    • Replace the EKS ingressClassName / gatewayClassName (or kubernetes.io/ingress.class annotations) with the corresponding GKE GatewayClass name from class_mappings.
  2. Route and Annotation translation:
    • Translate EKS Ingress resources into GKE Gateway and HTTPRoute resources (using portable fields for hostnames, paths, and backend references).
    • Strip AWS-specific annotations (alb.ingress.kubernetes.io/*).
    • Use GKE-native policies (like HealthCheckPolicy or GCPBackendPolicy) for custom health checks and Cloud Armor configurations.
  3. TLS Certificate mapping:
    • Replace AWS ACM certificate ARNs or local TLS secret references with GKE and Google Cloud certificate references using the certificates map.
  4. Domain mapping:
    • Update all rules/hostnames to map custom domains using domain_mappings.
  5. NetworkPolicy translation:
    • Scan NetworkPolicy resources for hardcoded EKS/AWS CIDR blocks.
    • Rewrite ipBlock.cidr values using target Google Cloud VPC and subnet CIDRs from cidr_mappings.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.