with one click
pod-ping-gateway
// Ping a pod's gateway for a given network interface. Auto-detects gateway IP from the routing table, then pings it. First resolve_pod_netns, then node_script with netns param.
// Ping a pod's gateway for a given network interface. Auto-detects gateway IP from the routing table, then pings it. First resolve_pod_netns, then node_script with netns param.
Guide for writing and improving Siclaw skills. Read this when creating or modifying a skill. Covers SKILL.md format, script execution modes, and best practices.
Check node health and diagnose node-level issues (NotReady, DiskPressure, MemoryPressure, PIDPressure). Inspects node conditions, resource allocation, and real-time usage.
Diagnose DNS resolution failures in the cluster (NXDOMAIN, timeouts, SERVFAIL). Checks CoreDNS health, service endpoints, and DNS configuration.
Show the gateway for a network interface in a Kubernetes pod. Reads the routing table via `ip -j route` from the pod's network namespace. First resolve_pod_netns, then node_script with netns param.
Retrieve logs from a Kubernetes node. Supports journalctl (systemd units) and file-based logs. Use when you need to inspect node-level logs (containerd, kubelet, etc.). Execute via node_script tool.
Diagnose NetworkPolicy-related connectivity issues (traffic unexpectedly blocked, default-deny effects, egress blocking DNS). Identifies which NetworkPolicies affect a pod, checks ingress/egress rules, and verifies CNI support.
| name | pod-ping-gateway |
| description | Ping a pod's gateway for a given network interface. Auto-detects gateway IP from the routing table, then pings it. First resolve_pod_netns, then node_script with netns param. |
This skill runs in the pod's network namespace using host tools. Two steps required:
resolve_pod_netns: pod="<pod>", namespace="<ns>"
node_script: node="<node>", netns="<netns>", skill="pod-ping-gateway", script="ping-gateway.sh", args="<args>"
| Parameter | Required | Description |
|---|---|---|
--interface IFACE | yes | Network interface to find gateway for |
--source-ip | no | flag, auto-detect IP from interface, use as ping source (-I <ip>) |
--source-dev | no | flag, use interface name as ping source (-I <iface>) |
--count N | no | Number of ping packets (default: 3) |
--source-ip and --source-dev are mutually exclusive flags (no value needed).
resolve_pod_netns: pod="rdma-pod", namespace="rdma-test"
ā node="worker-1", netns="abc123"
node_script: node="worker-1", netns="abc123", skill="pod-ping-gateway", script="ping-gateway.sh", args="--interface net1"
node_script: node="worker-1", netns="abc123", skill="pod-ping-gateway", script="ping-gateway.sh", args="--interface net1 --source-ip"
node_script: node="worker-1", netns="abc123", skill="pod-ping-gateway", script="ping-gateway.sh", args="--interface net1 --source-dev"
Node version: see node-ping-gateway.