---
name: "calico-cni-bgp-peering"
description: "Peer Kubernetes node routing directly with top-of-rack physical switches using Calico BGP."
metadata:
  author: "Tigera"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "configure calico bgp peer"
  - "enable calico wireguard"
  - "setup calico ippool"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Project Calico BGP Peering & WireGuard Mesh Encryption

Configures Project Calico CNI: establishing BGP peering with physical routers (BGPPeer), configuring IPAM IP pools (CIDR blocks), enabling WireGuard pod encryption, and enforcing global network policies.

## When to Invoke
Invoke this skill whenever you need to:
- configure calico bgp peer
- enable calico wireguard
- setup calico ippool

## Execution SOP & Rules
1. Apply BGPConfiguration and BGPPeer resources with peerIP and asNumber specifications.
2. Enable WireGuard encryption: calicoctl patch felixconfiguration default --type='merge' -p '{"spec":{"wireguardEnabled":true}}'.
3. Define custom IPPools with cidr and nodeSelector constraints.
4. Verify BGP session established state: calicoctl node status to ensure BGP peering is Established.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
