Skip to content
Back to skills

K8s Cni Network

ASecurity

Design and triage Kubernetes networking with Cilium or Calico, NetworkPolicy, and egress control. Use when pods cannot reach a service, a NetworkPolicy is too open, or a node drops overlay traffic.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
ai-agentsnodekubernetesapi

Works with

  • api

Security analysis

A100/100

Scanned September 5, 2026

npx -y skills add gesh75/claude-skill-lint --skill k8s-cni-network --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of K8s Cni Network?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for K8s Cni Network
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gesh75-k8s-cni-network/badge)](https://www.skillsdirectory.com/skills/gesh75-k8s-cni-network)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: k8s-cni-network
description: Design and triage Kubernetes networking with Cilium or Calico, NetworkPolicy, and egress control. Use when pods cannot reach a service, a NetworkPolicy is too open, or a node drops overlay traffic.
argument-hint: "[cluster] [namespace]"
allowed-tools: Read Grep
license: MIT
---

# Kubernetes CNI network

Do not use for app manifest authoring or Helm values. Not for service-mesh mTLS policy in depth.

## Procedure

1. Identify CNI (Cilium eBPF vs Calico iptables/eBPF). Overlay vs native routing vs BGP to the fabric.
2. Services: ClusterIP inside, LoadBalancer via BGP (MetalLB / Cilium BGP) to the ToR, not a cloud NLB in on-prem.
3. NetworkPolicy default-deny per namespace. Egress to DNS and the allowed CIDR only.
4. Node MTU and kube-proxy-free mode. VXLAN fabric MTU must fit.
5. Verify: a probe pod, `cilium connectivity test` or calico equivalent, and a deny that still denies.

```yaml
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
spec:
  podSelector: {}
  policyTypes: [Ingress, Egress]
  egress:
    - to: [{namespaceSelector: {matchLabels: {name: kube-system}}}]
      ports: [{port: 53, protocol: UDP}]
```

## Anti-patterns

- Never run the cluster overlay on a fabric already doing VXLAN without MTU math.
- Do not leave egress any.

## Safety

CNI swaps are a maintenance window. Policy edits are reviewed.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.