Command Palette

Search for a command to run...

Назад к скиллам
скилл № 91894

cilium-ebpf

Use when the user asks about installing Cilium CNI, Hubble, CiliumNetworkPolicy, Cluster Mesh, Cilium kube-proxy replacement, WireGuard or IPsec encryption…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить cilium-ebpf в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Cilium and eBPF

Purpose

Implement Cilium-based Kubernetes networking with eBPF for high-performance networking, security policies, observability, and multi-cluster connectivity.

Agent Protocol

Trigger

"Cilium", "eBPF networking", "Hubble", "network policy", "cluster mesh", "kube-proxy replacement", "CiliumNetworkPolicy".

Input Context

Kernel versions, cluster size, cloud/bare metal, existing CNI, policy and encryption requirements.

Output Artifact

Helm values, policies, and verification commands. No file unless requested.

Response Format

Mode: {kube-proxy replacement on/off, routing: tunnel|native}
Policy: {CiliumNetworkPolicy L3/L4/L7 snippet}
Observability: {Hubble flows/metrics}
Encryption: {none|WireGuard|IPsec}
Helm values: {snippet}

Architecture Decision Trees

Cilium vs Other CNIs

Feature Cilium (eBPF) Calico Flannel Weave
kube-proxy replacement Yes (eBPF) No No No
L7 network policies Yes (Envoy) No No No
Encryption WireGuard/IPsec WireGuard No Yes (encrypt)
Cluster mesh Yes Yes (multi-interface) No Yes
Hubble observability Built-in No No No
Bandwidth management Yes (eBPF) No No No
Performance Near-native Iptables-based Overlay Overlay
eBPF-only features Yes No No No

Cilium Agent Mode: kube-proxy replacement vs standard

Feature kube-proxy replacement Standard (iptables)
Performance Better (eBPF in kernel) Good
Features Service mesh, bandwidth, encryption Basic networking
Kernel req >= 5.10 >= 4.19
Migration Requires kernel support Safe fallback
Observability Hubble per-packet Limited

Network Policy Enforcement

Policy Type Cilium CRD Traditional K8s L7 Aware Performance
L3/L4 (IP/port) CiliumNetworkPolicy NetworkPolicy No eBPF (fast)
L7 (HTTP/gRPC/Kafka) CiliumNetworkPolicy Not supported Yes Envoy proxy
Cluster-wide CiliumClusterWideNetworkPolicy Not supported Yes eBPF
DNS-based ToFQDN Not supported No eBPF

Hubble vs Prometheus for Observability

Feature Hubble Prometheus
Data source eBPF (kernel-level, per-packet) Metrics endpoint (app-level)
Visibility All network flows (including dropped) Only app-exposed metrics
Latency Kernel-level, no instrumentation Application metrics
Storage In-memory / relay TSDB
Query hubble CLI, UI, Grafana PromQL
Retention Configurable (via relay) Configurable

CiliumInstallation Decision

Kernel version >= 5.10? (minimum for current Cilium releases; check the system requirements page of your Cilium version)
├── Yes → kube-proxy replacement mode is available (keep kube-proxy only if a feature you need is unsupported)
│   └── Kernel >= 6.8 → netkit device mode possible (Cilium 1.16+)
└── No → Upgrade the node OS/kernel first; older kernels are only supported by end-of-life Cilium versions

Need encryption between nodes?
├── Yes → WireGuard (simpler, better perf) or IPsec (legacy compat)
└── No → Skip encryption config

Need multi-cluster communication?
├── Yes → Cluster Mesh with KV store mesh
└── No → Single cluster only

Encryption Mode Decision

Need FIPS-validated crypto or existing IPsec key management?
├── No → WireGuard: encryption.enabled=true, encryption.type=wireguard
│        (in mainline kernels since 5.6, so available on every kernel Cilium supports; simplest key handling)
└── Yes → IPsec: encryption.type=ipsec with a cilium-ipsec-keys Secret (manual key rotation)

Quick Start

Helm install Cilium → Verify with cilium status → kube-proxy replacement → Network policies (L3/L4, L7) → Hubble for observability → Cluster mesh for multi-cluster → Service mesh for L7.

Core Workflow

Step 1: Cilium Installation (Helm)

# Install Cilium with kube-proxy replacement
helm repo add cilium https://helm.cilium.io/
helm upgrade --install cilium cilium/cilium --namespace kube-system \
  --set kubeProxyReplacement=true \
  --set hubble.relay.enabled=true \
  --set hubble.ui.enabled=true \
  --set encryption.type=wireguard \
  --set ipam.mode=kubernetes \
  --set devices='{eth0}' \
  --set routingMode=native \
  --set autoDirectNodeRoutes=true \
  --set bpf.masquerade=true \
  --set l7Proxy=true

# Verify installation
cilium status --wait
cilium connectivity test

# Check eBPF is being used
cilium status | grep BPF

Step 2: L3/L4 Network Policies

# policies/l3-l4-policy.yaml
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
  name: payment-service-policy
  namespace: production
spec:
  endpointSelector:
    matchLabels:
      app: payment-service
  ingress:
    - fromEndpoints:
        - matchLabels:
            app: api-gateway
      toPorts:
        - ports:
            - port: "8080"
              protocol: TCP
  e
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/cilium-architecture.md
  • references/cilium-ebpf-advanced.md
  • references/cilium-ebpf-fundamentals.md
  • references/cluster-mesh.md
  • references/ebpf-deep-dive.md
  • references/network-policies.md
  • references/observability-hubble.md

FAQ

Что делает скилл cilium-ebpf?

Use when the user asks about installing Cilium CNI, Hubble, CiliumNetworkPolicy, Cluster Mesh, Cilium kube-proxy replacement, WireGuard or IPsec encryption, Cilium Gateway API, or Tetragon. Produces Cilium Helm values, policies and operational checks. Not for eBPF datapath internals (use cloud-native-ebpf-networking) or Istio/Linkerd (use devops-service-mesh).

Как установить скилл cilium-ebpf?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cilium-ebpf запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cilium-ebpf с