kubernetes-networking

kubernetes-networking is a skill for Claude Code from arjunprabhulal/devops-skills. It costs 111 tokens per session (1,430 once invoked), scanned A, original, MIT.

A guide to Kubernetes networking, covering how requests travel through DNS, Services, endpoints, pods, and external entry points.

In plain words
What is it for?
Use it to configure Services, Ingress, Gateway API routes, cluster DNS, and default-deny network rules, or to debug missing endpoints and internal 502 errors.
Why use it?
It helps locate the broken link when an application cannot be reached, including common mistakes such as a Service selector that matches no ready pods.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the devops-skills plugin — 56 skills shipped together

Good fit Use it to configure Services, Ingress, Gateway API routes, cluster DNS, and default-deny network rules, or to debug missing endpoints and internal 502 errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arjunprabhulal/devops-skills/kubernetes-networking
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add arjunprabhulal/devops-skills --skill kubernetes-networking
Clone the repo
git clone --depth 1 https://github.com/arjunprabhulal/devops-skills

Made for: Claude Code.

Or install devops-skills, the plugin that ships this one along with the rest of its 56 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kubernetes-networking

README.md
[![agentmods](https://agentmods.dev/badge/skills/arjunprabhulal/devops-skills/kubernetes-networking.svg)](https://agentmods.dev/skills/arjunprabhulal/devops-skills/kubernetes-networking)
Your own site
<a href="https://agentmods.dev/skills/arjunprabhulal/devops-skills/kubernetes-networking"><img src="https://agentmods.dev/badge/skills/arjunprabhulal/devops-skills/kubernetes-networking.svg" alt="Measured on agentmods" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,430 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00111 $0.01430
Opus 5 $0.00056 $0.00715
Sonnet 5 $0.00022 $0.00286
Haiku 4.5 $0.00011 $0.00143

Measured 8d ago against content hash 263701338202, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

kubernetes-networking scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/kubernetes/kubernetes-networking/SKILL.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Kubernetes Networking

Every networking problem in Kubernetes is a chain: client → DNS → Service → Endpoints → pod IP → container port. When something doesn't connect, the fix is to walk that chain in order instead of guessing at layer seven first. Most "the app is broken" tickets are actually a label selector typo two links up the chain.

Services are not load balancers in the traditional sense — they're a label query that produces a list of IPs, continuously recomputed. If a Service has no endpoints, nothing downstream matters yet.

For concrete NetworkPolicy manifests and Gateway API routing configurations, read references/network-policy-and-gateway-api.md.

1. Check endpoints before you check anything else

kubectl get endpoints <svc> (or endpointslices) tells you immediately whether the Service's selector is matching any Ready pods. An empty list is the single most common root cause of "connection refused" or 502s inside the cluster, and it's a one-command diagnosis.

kubectl get svc <name> -o yaml | grep -A3 selector
kubectl get pods --show-labels -l <same-selector>
kubectl get endpoints <name>
  • Selector typo or label drift: the Service's selector must exactly match pod labels — a deploy that changed a label without updating the Service breaks silently.
  • No Ready pods: a pod can be Running but not Ready, and not-Ready pods are excluded from endpoints by design — check readiness probes, covered in kubernetes-operations.
  • containerPort mismatch: the Service's targetPort must match what the container actually listens on, not just what's documented.

Done when: kubectl get endpoints shows the expected pod IPs, or you've identified exactly why it doesn't.

2. Pick the Service type for the audience, not the convenience

ClusterIP is the default and correct choice for anything internal — don't expose things externally because LoadBalancer was easier to type. Each type answers a different "who can reach this": ClusterIP is cluster-internal, NodePort exposes a port on every node (rarely what you want in production), LoadBalancer provisions a cloud LB per Service (expensive at scale), and Ingress is the only one built to multiplex many HTTP services behind one entrypoint.

Read the full file on GitHub · 113 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 113 lines · 111 tokens per session scan A 263701338202

Subscribe to this mod's changes

kubernetes-networking is a skill published in the GitHub repository arjunprabhulal/devops-skills (3 stars, last pushed 14d ago), licensed MIT. It adds 111 tokens to every session and 1,430 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

google-cloud-solution-guided-gke-ai-migration

Guides the migration of existing AI workloads (Cloud Run, Gemini API, Gemini Enterprise Agent Platform) to self-hosted GKE inference using gcloud and kubectl. Use when the user has an existing AI inference workload (on Cloud Run, the Gemini API, Gemini Enterprise Agent Platform, or a custom VM) and wants to move it to…

google/skills · 157 tokens

agent-platform-tuning

Agent Platform Model Tuning. Use when you need to fine-tune open models or Gemini models using Agent Platform infrastructure. Don't use for model training outside Agent Platform, model deployment to endpoints (use agent-platform-deploy), or managing serving endpoints (use agent-platform-endpoint-management).

google/skills · 64 tokens

agent-platform-deploy

Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up resources by undeploying models and deleting endpoints. Use when asked to actively deploy a model, list the Model Garden CATALOG of available models, check if a…

google/skills · 193 tokens

cloud-logging-cross-project-configuration

Configure and troubleshoot Google Cloud cross-project centralized logging and read-time aggregation. Use when: - Setting up log routing from multiple projects/folders/organizations to a central log bucket. - Creating cross-project log sinks and configuring central log buckets. - Troubleshooting cross-project routing.…

google/skills · 70 tokens

gke-alert-configuration

Configures alerting policies in Terraform for Google Kubernetes Engine (GKE) clusters, workloads, and services using PromQL and Google Cloud Managed Service for Prometheus. Use when writing, analyzing, validating, or deploying Terraform alerting policies to monitor GKE service latency, traffic, error rates using…

google/skills · 120 tokens

gke-compute-classes

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…

google/skills · 83 tokens