ferroxlabs/wayland/kubernetes-networking
Claude Code and agent skill by ferroxlabs/wayland
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Guides expert-level kubernetes networking implementation: cloud and security decision frameworks, production-ready patterns, and concrete templates for kubernetes networking workflows. Use when the user asks about kubernetes networking, kubernetes networking configuration, or devops best practices for kubernetes projects. Do NOT use when the user needs a different devops cloud capability -- check sibling skills in the devops cloud subcategory.
Install
npx vskill@latest install ferroxlabs/wayland/kubernetes-networkingSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as ferroxlabs/wayland/kubernetes-networking.
Kubernetes Networking
When to Use
Use this skill when:
- User asks how to design or implement a CNI plugin strategy (Calico, Cilium, Flannel, Weave, etc.) for a Kubernetes cluster
- User needs to configure Services (ClusterIP, NodePort, LoadBalancer, ExternalName), Endpoints, or EndpointSlices
- User wants to implement NetworkPolicy rules to segment traffic between namespaces or pods
- User asks about Ingress controllers, Gateway API, or layer-7 routing for HTTP/HTTPS workloads
- User needs to troubleshoot connectivity between pods, services, or external traffic -- including DNS resolution, kube-proxy rules, or iptables/eBPF data planes
- User is designing a multi-cluster or service mesh architecture (Istio, Linkerd, Cilium Service Mesh)
- User needs to configure pod-to-pod encryption, mutual TLS (mTLS), or zero-trust network policies
- User asks about IP address management (IPAM), CIDR planning, or subnet allocation for nodes and pods
- User needs to implement egress controls, NAT policies, or traffic shaping for Kubernetes workloads
- User asks about DNS configuration, CoreDNS tuning, or service discovery inside a cluster
Do NOT use this skill when:
- User needs container image building, Dockerfile optimization, or registry configuration -- use the container-build skill
- User needs Kubernetes storage (PersistentVolumes, StorageClasses, CSI drivers) -- use the kubernetes-storage skill
- User needs cluster provisioning, node scaling, or managed Kubernetes setup (EKS, GKE, AKS) -- use the cluster-provisioning skill
- User needs application deployment patterns (Helm charts, Kustomize, rolling upgrades) -- use the kubernetes-deployment skill
- User needs general cloud VPC/subnet/security-group configuration outside of Kubernetes -- use the cloud-networking skill
- User is asking about load balancer configuration for non-Kubernetes workloads
- User needs observability, metrics, or tracing pipelines -- use the kubernetes-observability skill
- User is asking about authentication/authorization (RBAC, OIDC, service account tokens) rather than network-level controls -- use the kubernetes-security skill
Process
1. Establish Network Architecture Constraints
Before writing a single YAML file, capture the constraints that will determine every downstream decision.
- Cluster IP ranges: Confirm the pod CIDR and service CIDR do not overlap with each other, the node network, or any on-premises subnets routed to the cluster. A common production-safe layout is
10.244.0.0/16for pods,10.96.0.0/12for services, with nodes in a separate range like192.168.0.0/24. Overlapping CIDRs cause silent routing failures that are extraordinarily difficult to diagnose. - Node density and pod capacity: Each node's pod CIDR determines the maximum pods per node. A
/24per node allows 254 addresses but Kubernetes recommends--max-podsset to the actual allocatable value (typically 110 for most CNIs). For high-density workloads, allocate/23or use ENI-based IPAM (AWS VPC CNI) which ties pod IPs directly to ENI secondary IPs. - Cloud provider constraints: AWS VPC CNI assigns real VPC IPs to pods, meaning pod counts per node are limited by instance type ENI limits (e.g., m5.large supports 29 secondary IPs across 3 ENIs). GKE uses alias IP ranges which are more flexible. Bare-metal clusters have no such constraints but require explicit IPAM configuration.
- Dual-stack requirements: If IPv6 is required (government compliance, large-scale ISP environments), confirm the CNI supports dual-stack mode. Calico and Cilium both support IPv4/IPv6 dual-stack; Flannel support is limited. This decision locks in complexity early.
- Data plane selection -- iptables vs. eBPF: kube-proxy in iptables mode adds O(n) rule lookup overhead that degrades at >5,000 services. At that scale, switch to IPVS mode or replace kube-proxy entirely with Cilium's eBPF data plane, which provides O(1) service lookup via BPF maps and reduces CPU usage by 30-40% on large clusters.
- Compliance and encryption requirements: PCI-DSS, HIPAA, and FedRAMP typically require encryption in transit. Determine whether mTLS at the application layer (service mesh) or transparent pod-to-pod encryption at the CNI layer (Cilium WireGuard, Calico WireGuard) is required.
2. Select and Configure the CNI Plugin
CNI selection is the foundational architectural decision and is difficult to change post-production without cluster rebuild.
- Cilium -- recommended for new production clusters. Uses eBPF for all data plane operations, provides native NetworkPolicy plus CiliumNetworkPolicy (L7 HTTP/gRPC/DNS-aware policies), built-in Hubble observability, and optional kube-proxy replacement. Requires Linux kernel 4.19+ (5.4+ for full feature set). Not suitable for clusters where the kernel cannot be upgraded (some managed Kubernetes versions with fixed AMIs).
- Calico -- industry standard for NetworkPolicy enforcement. Supports both iptables and eBPF data planes. Excellent BGP integration for bare-metal/on-premises clusters where pods need to be directly routable from the corporate network. Felix is the per-node agent; Typha is required at >200 nodes to prevent API server overload. Use Calico's GlobalNetworkPolicy for cluster-wide egress deny-by-default rules.
- Flannel -- simple VXLAN overlay, suitable for development and small clusters. Has no NetworkPolicy support -- requires a separate NetworkPolicy controller. Do not use in production environments with isolation requirements.
- AWS VPC CNI -- required when pod IPs must be directly addressable within the VPC (for security group assignment, NLB target group health checks, etc.). Install the VPC Resource Controller and enable security groups for pods (
ENABLE_POD_ENI=true). Be aware of the ENI warm pool which pre-allocates IPs and increases VPC IP consumption. - Weave Net -- no longer actively developed; avoid for new deployments.
Installation validation steps:
3. Design and Implement NetworkPolicy
NetworkPolicy is the Kubernetes-native firewall. Implement a default-deny baseline, then add explicit allow rules.
- Start with namespace-level default deny: Apply a deny-all policy to every namespace before deploying workloads. This forces teams to explicitly declare all required communication paths, which serves as living documentation of service dependencies.
- Label strategy is critical: NetworkPolicy selectors match on pod labels. Define a consistent labeling taxonomy before writing policies. Use
app,tier,component, andversionas standard selectors. For example:app: payments,tier: backend,component: api. - Ingress vs. egress policy: Both must be specified for full isolation. An ingress-only policy allows unrestricted outbound (pods can call external services, exfiltrate data). Always pair ingress policies with explicit egress rules.
- Namespace selectors for cross-namespace traffic: When the monitoring namespace needs to scrape metrics from the application namespace, use a
namespaceSelectorin the NetworkPolicy, not a wide-open ingress rule. This requires namespaces to carry a label likekubernetes.io/metadata.name: monitoring(auto-applied in Kubernetes 1.21+). - DNS egress must be explicitly allowed: One of the most common NetworkPolicy mistakes is blocking DNS. After applying egress deny-all, pods cannot resolve service names. Always include an explicit egress rule allowing UDP port 53 and TCP port 53 to the kube-dns ClusterIP (or to pods with label
k8s-app: kube-dnsin thekube-systemnamespace). - CiliumNetworkPolicy for L7: Standard NetworkPolicy operates at L3/L4 only. For HTTP path-based or gRPC method-based policies, use Cilium's
CiliumNetworkPolicywith an HTTP rule specifying exact path and method. This catches application-layer privilege escalation that port-based policies miss entirely.
4. Configure Services and Load Balancing
Services are the stable networking abstraction over ephemeral pods. Each type has specific production implications.
- ClusterIP -- internal-only service. The default and most common type. kube-proxy writes iptables DNAT rules (or eBPF programs) that intercept traffic to the ClusterIP virtual IP and forward to one of the backing pod IPs. Session affinity (
sessionAffinity: ClientIP) is available but has a fixed timeout of 10800 seconds (3 hours) -- not configurable below that in standard kube-proxy. - NodePort -- exposes a service on every node at a port in the range 30000-32767. Generates high-cardinality iptables rules at scale. Avoid using NodePort in production except for specific cases (MetalLB layer2 mode, on-premises bare metal with external LB). Each NodePort service adds rules to every node regardless of where the backing pods are scheduled.
- LoadBalancer -- provisions a cloud load balancer. On AWS, this creates a Classic Load Balancer by default; add annotation
service.beta.kubernetes.io/aws-load-balancer-type: nlbfor Network Load Balancer. Key annotations:service.beta.kubernetes.io/aws-load-balancer-internal: "true"for internal LBs. SetexternalTrafficPolicy: Localto preserve source IP and avoid an extra hop, but only when all nodes run at least one backing pod (otherwise, nodes with no backing pod return unhealthy to the NLB). - EndpointSlices -- replaces Endpoints for clusters with >100 pods per service. Each EndpointSlice holds up to 100 endpoints. In clusters with thousands of pods per service, the Endpoints object becomes a single multi-megabyte object that triggers full writes on every pod change. EndpointSlices are enabled by default in Kubernetes 1.21+ and reduce control-plane load by 10x in large services.
- Headless services (ClusterIP: None) -- used for StatefulSets and direct pod addressing. DNS returns A records for all pod IPs rather than the single ClusterIP. Required for databases, Kafka, ZooKeeper, and any stateful workload where clients need to connect to a specific replica.
- ExternalName -- maps a service to an external DNS name. Useful for migrating services from outside the cluster to inside incrementally, or for accessing external managed databases (RDS, Cloud SQL) via a consistent in-cluster DNS name.
5. Implement Ingress and Gateway API
Ingress and Gateway API handle external HTTP/HTTPS traffic routing into the cluster.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/process/resources/skills-library/bodies/skills/devops-cloud/kubernetes-networking/SKILL.md
Popularity
- Repository stars
- 608
- Repository forks
- 113
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ferroxlabs/wayland/kubernetes-networking)