pod-show-gateway

Retrieve the default gateway for a Kubernetes pod network interface.

225|28|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/scitix/siclaw --skill pod-show-gateway
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pod-show-gateway
Source: https://github.com/scitix/siclaw/tree/main/skills/core/pod-show-gateway
Command: npx skills add https://github.com/scitix/siclaw --skill pod-show-gateway

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps diagnose network connectivity issues within Kubernetes pods by identifying their default gateway.

Core Features & Use Cases

  • Network Interface Inspection: Retrieves routing information specifically for a given network interface within a pod.
  • Gateway Identification: Clearly displays the default gateway IP address and associated network interface.
  • Use Case: When a pod cannot reach external services, this Skill can quickly reveal if the pod's routing is misconfigured by showing its gateway.

Quick Start

Use the pod_netns_script tool to show the gateway for the 'eth0' interface in the 'my-pod' pod within the 'default' namespace.

Frequently Asked Questions about pod-show-gateway

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find the default gateway for a Kubernetes pod's network interface?

You can retrieve the default gateway for a specific network interface within a Kubernetes pod by analyzing the pod's routing table using `ip -j route` to identify gateway configurations within its network namespace.

How can I check if my Kubernetes pod routing is misconfigured when it cannot reach external services?

You can diagnose network connectivity issues in a Kubernetes pod by retrieving its default gateway IP address and associated network interface, which quickly reveals if the pod's routing is misconfigured when it cannot reach external services.

Does the Kubernetes pod gateway lookup support querying a specific network interface?

Yes, the Kubernetes pod gateway lookup supports optional interface-specific queries, allowing you to retrieve routing information specifically for a given network interface within the pod's network namespace.

Can I get JSON output from the Kubernetes pod routing table analysis?

Yes, the gateway identification process supports optional JSON output for detailed network diagnostics, allowing you to retrieve the Kubernetes pod's routing table analysis in a structured format.

What is the best way to troubleshoot pod networking issues in Kubernetes?

The best way to troubleshoot pod networking issues in Kubernetes is to inspect the pod's network namespace and analyze its routing table to identify the default gateway and diagnose connectivity problems preventing access to external services.