K8

k8s-networking

Tools for managing Kubernetes networking resources like services, ingresses, and network policies.

Install

mkdir -p .claude/skills/k8s-networking && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2789" && unzip -o skill.zip -d .claude/skills/k8s-networking && rm skill.zip

Installs to .claude/skills/k8s-networking

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Kubernetes networking management for services, ingresses, endpoints, and network policies. Use when configuring connectivity, load balancing, or network isolation.
163 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Create and manage services
  • Configure ingress routing rules
  • Define network policies for isolation
  • Verify service endpoints
  • Test DNS resolution

How it works

It provides tools to apply networking manifests and inspect connectivity by checking endpoints and network policy rules.

Inputs & outputs

You give it
Service or ingress manifest
You get back
Network resource status

When to use k8s-networking

  • Expose applications via load balancers
  • Configure ingress routing
  • Test DNS resolution within pods
  • Verify network policy isolation

About this skill

Kubernetes Networking

Manage Kubernetes networking resources using kubectl-mcp-server's networking tools.

When to Apply

Use this skill when:

  • User mentions: "service", "ingress", "endpoint", "network policy", "load balancer"
  • Operations: exposing applications, configuring routing, network isolation
  • Keywords: "connectivity", "DNS", "traffic", "port", "firewall"

Priority Rules

PriorityRuleImpactTools
1Check endpoints before troubleshooting servicesCRITICALget_endpoints
2Verify service selector matches pod labelsHIGHget_services, get_pods
3Review network policies for isolationHIGHget_network_policies
4Test DNS resolution from within podsMEDIUMkubectl_exec

Quick Reference

TaskToolExample
List servicesget_servicesget_services(namespace)
Check backendsget_endpointsget_endpoints(namespace)
List ingressesget_ingressesget_ingresses(namespace)
Network policiesget_network_policiesget_network_policies(namespace)

Services

get_services(namespace="default")

describe_service(name="my-service", namespace="default")

create_service(
    name="my-service",
    namespace="default",
    selector={"app": "my-app"},
    ports=[{"port": 80, "targetPort": 8080}]
)

create_service(
    name="my-lb",
    namespace="default",
    type="LoadBalancer",
    selector={"app": "my-app"},
    ports=[{"port": 443, "targetPort": 8443}]
)

Endpoints

get_endpoints(namespace="default")

Ingress

get_ingresses(namespace="default")

describe_ingress(name="my-ingress", namespace="default")

kubectl_apply(manifest="""
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: my-ingress
  namespace: default
spec:
  rules:
  - host: app.example.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: my-service
            port:
              number: 80
""")

Network Policies

get_network_policies(namespace="default")

describe_network_policy(name="deny-all", namespace="default")

kubectl_apply(manifest="""
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: deny-all
  namespace: default
spec:
  podSelector: {}
  policyTypes:
  - Ingress
  - Egress
""")

kubectl_apply(manifest="""
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: allow-web
  namespace: default
spec:
  podSelector:
    matchLabels:
      app: web
  ingress:
  - from:
    - podSelector:
        matchLabels:
          app: frontend
    ports:
    - port: 80
""")

Troubleshooting Connectivity

get_endpoints(namespace="default")

get_network_policies(namespace="default")

kubectl_exec(
    pod="debug-pod",
    namespace="default",
    command="nslookup my-service.default.svc.cluster.local"
)

Related Skills

When not to use it

  • When network policies are managed by external service meshes
  • When simple port-forwarding is sufficient

Prerequisites

kubectl

Limitations

  • Requires network policy support in the cluster
  • DNS testing limited to pod execution

How it compares

It simplifies the process of verifying backend connectivity by automating the check of service selectors against pod labels.

Compared to similar skills

k8s-networking side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
k8s-networking (this skill)16moNo flagsIntermediate
storage-networking67moReviewAdvanced
kubernetes-architect64moNo flagsAdvanced
gitops-workflow52moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

More by rohitg00

View all by rohitg00

You might also like

storage-networking

pluginagentmarketplace

Master Kubernetes storage management and networking architecture. Learn persistent storage, network policies, service discovery, and ingress routing.

663

kubernetes-architect

sickn33

Expert Kubernetes architect specializing in cloud-native infrastructure, advanced GitOps workflows (ArgoCD/Flux), and enterprise container orchestration. Masters EKS/AKS/GKE, service mesh (Istio/Linkerd), progressive delivery, multi-tenancy, and platform engineering. Handles security, observability, cost optimization, and developer experience. Use PROACTIVELY for K8s architecture, GitOps implementation, or cloud-native platform design.

636

gitops-workflow

sickn33

Implement GitOps workflows with ArgoCD and Flux for automated, declarative Kubernetes deployments with continuous reconciliation. Use when implementing GitOps practices, automating Kubernetes deployments, or setting up declarative infrastructure management.

521

devops-iac-engineer

davila7

Implements infrastructure as code using Terraform, Kubernetes, and cloud platforms. Designs scalable architectures, CI/CD pipelines, and observability solutions. Provides security-first DevOps practices and site reliability engineering guidance.

223

k8s-manifest-generator

wshobson

Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards. Use when generating Kubernetes YAML manifests, creating K8s resources, or implementing production-grade Kubernetes configurations.

319

dstack

dstackai

dstack is an open-source control plane for GPU provisioning and orchestration across GPU clouds, Kubernetes, and on-prem clusters.

14

Search skills

Search the agent skills registry