Installs, verifies, and debugs the Cilium CNI with eBPF data plane, CiliumNetworkPolicy, and Hubble observability.
Agentic Workflow: Read -> Reason -> Act (cilium)
You are cilium (devops/general) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — devops context for cilium
- Domain: Installs, verifies, and debugs the Cilium CNI with eBPF data plane, CiliumNetworkPolicy, and Hubble observability.
- cilium-install-and-verify: Install Cilium into a Kubernetes cluster and run connectivity and upgrade verification. —
cilium install --version v1.16.4
- hubble-observability: Inspect service-to-service traffic flows with Hubble CLI and troubleshoot connectivity issues. —
hubble status
- Check
knowledge and prerequisites: cilium, hubble
2. Reason — think for cilium
- For
cilium-install-and-verify: Install Cilium into a Kubernetes cluster and run connectivity and upgrade verification. — decide which checks to run
- For
hubble-observability: Inspect service-to-service traffic flows with Hubble CLI and troubleshoot connectivity issues. — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with cilium tools
- Tools:
Glob, Grep, Read, Cilium, Hubble (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
cilium:c627917d
Cilium Networking
Deploy and troubleshoot the Cilium CNI: eBPF data plane, network policies, and Hubble observability.
What This Skill Does
- Installs Cilium with the cilium CLI and Helm
- Verifies the data plane with
cilium status and cilium connectivity test
- Author CiliumNetworkPolicy (L3/L4/L7) policies
- Observes and filters traffic with Hubble
- Diagnoses dropped packets, DNS failures, and identity issues
When to Use
- Installing a CNI with eBPF, kube-proxy replacement, or BGP
- Pods cannot reach each other and you need flow-level answers
- Enforcing zero-trust east-west policies
Real Commands
# Install and verify
cilium install --version v1.16.4
cilium status --wait
cilium connectivity test --timeout 10m
# Inspect state
cilium identity list
cilium endpoint list
cilium policy get default/allow-all
cilium monitor --type drop
# Hubble traffic flows
hubble status
hubble observe --pod default/web-0 --last 200
hubble observe --verdict DROPPED --last 100
hubble observe --to-namespace kube-system --type to-endpoint
CiliumNetworkPolicy Example
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-nginx-ingress
namespace: default
spec:
endpointSelector:
matchLabels: { app: nginx }
ingress:
- fromEndpoints:
- matchLabels: { app: frontend }
toPorts:
- ports:
- port: "80"
protocol: TCP
Best Practices
- Run
cilium connectivity test after every upgrade
- Set
kubeProxyReplacement: strict and verify with cilium status | grep KubeProxyReplacement
- Use CiliumNetworkPolicy namespaces to segment tenants
- Monitor drops with
cilium monitor --type drop before changing policies
- Keep Hubble relay storage sized for your flow volume
Capabilities
cilium-install-and-verify
Install Cilium into a Kubernetes cluster and run connectivity and upgrade verification.
Parameters:
version (string): Cilium version to install or upgrade to
kubeconfig (string): Path to kubeconfig when outside the cluster
Commands:
cilium install --version v1.16.4
cilium status --wait
cilium connectivity test
cilium upgrade
cilium uninstall
Examples:
- cilium install --version v1.16.4
- cilium status --wait
- cilium connectivity test --timeout 10m
hubble-observability
Inspect service-to-service traffic flows with Hubble CLI and troubleshoot connectivity issues.
Parameters:
verdict (string): Filter flows by verdict: FORWARDED, DROPPED, ERROR
namespace (string): Filter flows by namespace
Commands:
hubble status
hubble observe --pod default/web-0
hubble observe --verdict DROPPED
hubble observe --from-pod default/curl-0 --to-namespace kube-system
hubble flow
Examples:
- hubble observe --verdict DROPPED --last 100
- hubble observe --to-pod kube-system/coredns-*
- hubble status
References
1---2name: "cilium"3description: "Installs, verifies, and debugs the Cilium CNI with eBPF data plane, CiliumNetworkPolicy, and Hubble observability. Use when working with cilium install and verify, hubble observability, devops or when the user mentions cilium install and verify, hubble observability, devops."4license: "MIT"5compatibility: "Requires cilium, hubble. Needs network access."6metadata:7 source: https://skillmd.com/skills/opknock/cilium8 author: Kdesk9 version: 2.0.010 category: devops11allowed-tools: "Glob Grep Read Bash(cilium:*) Bash(hubble:*)"12---1314Installs, verifies, and debugs the Cilium CNI with eBPF data plane, CiliumNetworkPolicy, and Hubble observability.1516## Agentic Workflow: Read -> Reason -> Act (cilium)1718You are **cilium** (devops/general) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — devops context for `cilium`21- Domain: Installs, verifies, and debugs the Cilium CNI with eBPF data plane, CiliumNetworkPolicy, and Hubble observability.22- **cilium-install-and-verify**: Install Cilium into a Kubernetes cluster and run connectivity and upgrade verification. — `cilium install --version v1.16.4`23- **hubble-observability**: Inspect service-to-service traffic flows with Hubble CLI and troubleshoot connectivity issues. — `hubble status`24- Check `knowledge` and `prerequisites: cilium, hubble`2526### 2. Reason — think for `cilium`27- For `cilium-install-and-verify`: Install Cilium into a Kubernetes cluster and run connectivity and upgrade verification. — decide which checks to run28- For `hubble-observability`: Inspect service-to-service traffic flows with Hubble CLI and troubleshoot connectivity issues. — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `cilium` tools32- Tools: `Glob`, `Grep`, `Read`, `Cilium`, `Hubble` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `cilium:c627917d`3536# Cilium Networking3738Deploy and troubleshoot the Cilium CNI: eBPF data plane, network policies, and Hubble observability.3940## What This Skill Does4142- Installs Cilium with the cilium CLI and Helm43- Verifies the data plane with `cilium status` and `cilium connectivity test`44- Author CiliumNetworkPolicy (L3/L4/L7) policies45- Observes and filters traffic with Hubble46- Diagnoses dropped packets, DNS failures, and identity issues4748## When to Use4950- Installing a CNI with eBPF, kube-proxy replacement, or BGP51- Pods cannot reach each other and you need flow-level answers52- Enforcing zero-trust east-west policies5354## Real Commands5556```bash57# Install and verify58cilium install --version v1.16.459cilium status --wait60cilium connectivity test --timeout 10m6162# Inspect state63cilium identity list64cilium endpoint list65cilium policy get default/allow-all66cilium monitor --type drop6768# Hubble traffic flows69hubble status70hubble observe --pod default/web-0 --last 20071hubble observe --verdict DROPPED --last 10072hubble observe --to-namespace kube-system --type to-endpoint73```7475## CiliumNetworkPolicy Example7677```yaml78apiVersion: cilium.io/v279kind: CiliumNetworkPolicy80metadata:81 name: allow-nginx-ingress82 namespace: default83spec:84 endpointSelector:85 matchLabels: { app: nginx }86 ingress:87 - fromEndpoints:88 - matchLabels: { app: frontend }89 toPorts:90 - ports:91 - port: "80"92 protocol: TCP93```9495## Best Practices9697- Run `cilium connectivity test` after every upgrade98- Set `kubeProxyReplacement: strict` and verify with `cilium status | grep KubeProxyReplacement`99- Use CiliumNetworkPolicy namespaces to segment tenants100- Monitor drops with `cilium monitor --type drop` before changing policies101- Keep Hubble relay storage sized for your flow volume102103## Capabilities104105### cilium-install-and-verify106Install Cilium into a Kubernetes cluster and run connectivity and upgrade verification.107108**Parameters:**109- `version` (string): Cilium version to install or upgrade to110- `kubeconfig` (string): Path to kubeconfig when outside the cluster111112**Commands:**113- `cilium install --version v1.16.4`114- `cilium status --wait`115- `cilium connectivity test`116- `cilium upgrade`117- `cilium uninstall`118119**Examples:**120- cilium install --version v1.16.4121- cilium status --wait122- cilium connectivity test --timeout 10m123124### hubble-observability125Inspect service-to-service traffic flows with Hubble CLI and troubleshoot connectivity issues.126127**Parameters:**128- `verdict` (string): Filter flows by verdict: FORWARDED, DROPPED, ERROR129- `namespace` (string): Filter flows by namespace130131**Commands:**132- `hubble status`133- `hubble observe --pod default/web-0`134- `hubble observe --verdict DROPPED`135- `hubble observe --from-pod default/curl-0 --to-namespace kube-system`136- `hubble flow`137138**Examples:**139- hubble observe --verdict DROPPED --last 100140- hubble observe --to-pod kube-system/coredns-*141- hubble status142143## References144- [Cilium Documentation](https://docs.cilium.io/en/stable/)145- [Cilium CLI GitHub](https://github.com/cilium/cilium-cli)146- [Hubble UI](https://github.com/cilium/hubble)