k8s-networking

k8s-networking is a skill for Claude Code, Codex from yindia/rootcause. It costs 0 tokens per session (2,296 once invoked), scanned A, original, MIT.

A set of procedures for diagnosing Kubernetes networking, including how clients, Ingress, Services, pods, and outside systems communicate. Ingress routes external requests into the cluster, while Services provide stable access to pods.

In plain words
What is it for?
It is for investigating unreachable services, DNS failures, blocked NetworkPolicy traffic, unhealthy load balancers, private endpoints, cross-namespace access, and failing health checks.
Why use it?
It helps locate where traffic is failing instead of treating every timeout, DNS error, or HTTP 502/503 as the same problem.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/yindia/rootcause/k8s-networking
Any agent
npx skills add yindia/rootcause --skill k8s-networking
Clone the repo
git clone --depth 1 https://github.com/yindia/rootcause

Made for: Claude Code, Codex.

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 k8s-networking

README.md
[![agentmods](https://agentmods.dev/badge/skills/yindia/rootcause/k8s-networking.svg)](https://agentmods.dev/skills/yindia/rootcause/k8s-networking)
Your own site
<a href="https://agentmods.dev/skills/yindia/rootcause/k8s-networking"><img src="https://agentmods.dev/badge/skills/yindia/rootcause/k8s-networking.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,296 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00000 $0.02296
Opus 5 $0.00000 $0.01148
Sonnet 5 $0.00000 $0.00459
Haiku 4.5 $0.00000 $0.00230

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

Security

Grade A, and why

k8s-networking scanned grade A with 1 finding 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 5d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- pod can curl ip but not service
skills/claude/k8s-networking/SKILL.md · 326 lines

How it starts

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

Skill: k8s-networking

Comprehensive Kubernetes networking diagnostics for service reachability, DNS, NetworkPolicy, Ingress and load balancer health, private endpoint connectivity, and evidence-driven traffic flow analysis.

Scope

Use this skill when investigating any request that includes connectivity uncertainty between clients, Ingress, Services, pods, or external dependencies.

This skill is optimized for root cause investigations, not broad architecture redesign.

Trigger Phrases

Use this skill when the user mentions:

  • service unreachable
  • ingress 502 or 503
  • timeout or connection refused
  • dns failure or nxdomain
  • endpoint not found
  • network policy blocked
  • load balancer pending
  • private link issues
  • cross-namespace traffic denied
  • pod can curl ip but not service
  • intermittent traffic drops
  • health checks failing

RootCause Tools Allowed

Only use these tool names in this skill:

  • k8s.network_debug
  • k8s.private_link_debug
  • k8s.graph
  • k8s.describe
  • k8s.list
  • k8s.events
  • k8s.exec

Investigation Strategy

Follow a strict top-down path:

  1. Confirm object existence and shape.
  2. Validate service-to-pod wiring.
  3. Validate traffic policy constraints.
  4. Validate DNS from inside cluster.
  5. Validate external path and private connectivity.
  6. Build graph evidence and timeline summary.

Do not jump to fixes before evidence from at least two tools agrees.

Fast Triage Matrix

Symptom First Tool Why
Service name resolves but requests timeout k8s.network_debug Fast check for endpoints and policy blocks
Ingress returns 404/502/503 k8s.graph Identifies broken edge between ingress and backend
Internal pod cannot resolve service FQDN k8s.exec DNS proof from same runtime network context
Traffic denied after policy deploy k8s.network_debug Policy decision visibility
NLB/ALB health checks failing k8s.network_debug Service and LB wiring health
VPC endpoint/private path failing k8s.private_link_debug Endpoint-side evidence for private connectivity

Read the full file on GitHub · 326 lines

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. 5d ago First seen · 326 lines · 0 tokens per session scan A badfdf3b30d2

Subscribe to this mod's changes

k8s-networking is a skill published in the GitHub repository yindia/rootcause (42 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,296 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

bazel-k8s-expert

Expert knowledge for deploying Quarkus/Java applications to Kubernetes using Bazel. Covers rulesk8s, Helm, Kustomize, ConfigMaps, Secrets, and health probes.

kinhluan/rules-quarkus-skills · 45 tokens

kubernetes-review

Kubernetes & Cloud-Native Review: Reviews Kubernetes manifests, Helm charts, and cloud-native configurations for security, reliability, resource management, and best practices. Covers pods, deployments, services, ingress, RBAC, network policies, HPA, PDB, security contexts, and GitOps patterns. Use when the user…

camilooscargbaptista/cto-toolkit · 104 tokens

kubernetes-operator

Deploy and manage applications on Kubernetes. Covers deployments, services, ingress, HPA, secrets, and production-grade cluster configuration.

AtulPurohit/Antigravity-Awesome-Skills · 30 tokens

upgrade-cluster

Use when upgrading or hardening an existing kube-hetzner cluster, including module version bumps, provider lockfile refreshes, k3s/RKE2 channel/version upgrades, immutable node replacement, system-upgrade-controller changes, or live cluster rollout validation.

mysticaltech/terraform-hcloud-kube-hetzner · 55 tokens

securing-helm-chart-deployments

Secure Helm chart deployments by validating chart integrity, scanning templates for misconfigurations, and enforcing security contexts in Kubernetes releases.

xalgorix/xalgorix · 34 tokens

dependabot-batch

Use when reviewing Radar's weekly Dependabot PRs and replacing the safe, 72-hour-soaked updates with one changelog-vetted, tested PR.

skyhook-io/radar · 36 tokens