/devops-skills:kubernetes-networkingfrom devops-skills
Explains how traffic reaches and moves between pods in Kubernetes — Services (ClusterIP/NodePort/LoadBalancer), Ingress, cluster DNS, NetworkPolicy, and debugging selector mismatches or empty endpoints.
Ships in devops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
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 must exactly match pod labels — a
deploy that changed a label without updating the Service breaks silently.kubernetes-operations.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.
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.
api-gateway are for.clusterIP: None) exist for direct pod-to-pod discovery, notably
StatefulSets — see kubernetes-storage.Done when: you can justify why this specific Service type was chosen over ClusterIP+Ingress.
An Ingress object is only routing rules; nothing happens without a controller (nginx, ALB, Envoy,
etc.) actually watching and programming a proxy. Debugging Ingress means checking both layers: is
the rule correct, and did the controller's proxy actually reload with it.
Done when: you've confirmed the controller's own logs show the rule was accepted and programmed.
Cluster DNS (CoreDNS) resolves <service>.<namespace>.svc.cluster.local, and most failures are
either a wrong namespace assumption, CoreDNS pods under resource pressure, or ndots-driven
search-domain amplification making every external lookup try five suffixes first.
myservice alone only resolves within
the calling pod's own namespace.ndots:5 default means a single-label external hostname triggers multiple failed internal
lookups before succeeding — a real latency cost for chatty external calls.kubectl exec into a pod and run nslookup/getent hosts
against the actual in-cluster resolver.Done when: a DNS failure is traced to CoreDNS health, search-domain config, or the actual record — not assumed.
With no NetworkPolicy, every pod can reach every other pod in the cluster — that's the insecure default. The pattern that actually works is a namespace-wide default-deny, then narrow allow rules per legitimate traffic path, because allow-only-what-you-list is the only version of this that degrades safely when someone forgets a rule.
policyTypes: [Ingress, Egress]) — an ingress-only deny still
lets a compromised pod exfiltrate freely.Done when: a default-deny policy is in place per namespace and every legitimate path has an explicit allow rule you can name.
State the Service types in use and why, whether endpoints were empty and what fixed it, which layer a DNS or Ingress failure was actually traced to, and the current NetworkPolicy posture (default-deny or open). Call out any namespace still without a NetworkPolicy — naming that open surface is more useful than implying the cluster is segmented when it isn't.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skillsOther plugins' skills for the same job
88 skills in this plugin
/alertingCovers designing alerts that page a human only when a human needs to act — symptom-based alerting over cause-based, multi-window burn-rate alerts on error budgets, severity tiers that route between page/ticket/dashboard, requiring every page to link a runbook, and tuning out alert fatigue. Use this whenever the user is writing a new alert rule, asking why on-call is paged too often or missing real incidents, choosing an alert threshold, or designing severity routing. For the SLO the burn-rate math comes from use `slo-definition`, and for what a runbook should contain use `runbooks`./api-gatewayCovers the managed front-door pattern for APIs — request routing, centralized auth, rate limiting and quotas, request/response shaping, and recognizing when a gateway helps versus becomes a bottleneck or single point of failure. Use this whenever the user is designing an API entry point, adding rate limits or quotas, centralizing auth for several backend services, transforming a request between an external and internal contract, or debugging a gateway timeout. For east-west traffic between internal services use `service-connectivity`, and for token issuance details use `iam-access-management`./argocd-operationsCovers running Argo CD day to day — structuring app-of-apps, choosing sync policies and waves, reading health versus sync status correctly, and unsticking a degraded or hung Application. Use this whenever the user mentions Argo CD, an Application stuck "Progressing" or "OutOfSync," app-of-apps or ApplicationSets, sync waves and hooks, or asks why a deploy shows synced but the workload is unhealthy. For the underlying model this tool implements use `gitops`; for automated canary analysis on top of it use `progressive-delivery`; for the workloads it manages use `kubernetes-operations`.