Getting to know Peacha

Let's get to know Peacha!

Peacha lets you write and test Kubernetes and Calico network policies in a safe, controlled environment - no real cluster required. Edit policy on the right and watch its exact impact on the left, instantly.

The left pane has three tabs along the top - this is how you move around:

Tip: Use ctrl + space in the editor to activate completion suggestions. image

After adding a policy to the editor, check out the Matrix and Graph views. Both visualize the impact of your policy using the Calico Unified Platform policy engine and help you understand each part of your policy. In the Graph, each pod also shows a port-reachability chip (⊟ open/total, green/red/amber)

You can also use the eBPF, iptables, and nftables tabs to see how each policy is actually programmed into your cluster across Calico's different dataplanes.

The tutorials track

New to Kubernetes networking and security? Switch to the tutorials tab. It's a read-along course that walks all four policy types end to end - Kubernetes NetworkPolicy, Calico NetworkPolicy, ClusterNetworkPolicy (the Network Policy API), and GlobalNetworkPolicy - building from your first policy up to a full layered, default-deny posture.

Each lesson is interactive:

The exams track

When you want to prove it, switch to the exams tab. Each exam gives you a scenario and asks you to write policy that achieves a target connectivity outcome. Press Check my answer and the server grades your submission against an expected connectivity matrix (and policy constraints) - the grading runs server-side, so it's authoritative.

Exams may ask you to sign in (Slack, Google, or GitHub) so your progress is tracked. Passed exams are marked with a ✓ and you advance to the next unsolved one.

Namespaces & pods

Advanced pod fields

Field Purpose
serviceAccount Projects pcsa.* labels onto the pod (define the SA under resources).
node Pins the pod to a node - host-endpoint overlays then apply.
named ports name=port/proto, referenced by name from rule ports.

Tiers

Policies live in tiers, evaluated top → bottom. Lower order = higher precedence (evaluated first).

A Pass default hands evaluation to the next tier; a Deny default stops here and drops the packet.

Probes

A probe is a synthetic connection the engine traces against your policy:

Resources

Optional objects rule selectors resolve against:

Resources can also be pasted as YAML into the policy editor - those appear here read-only, badged from YAML.

Evaluation flags


Ready? Switch to the tutorials tab and start with Your first policy: Kubernetes NetworkPolicy - the policy API most clusters already run - or jump straight to the exams tab if you'd rather be tested.