Cilium Dataplane for a Payments Platform: eBPF Policy, Hubble Evidence, Gateway API, Cluster Mesh and Encryption

Take the role of the Kubernetes engineer who replaces kube-proxy and IP allowlists with Cilium on two kind clusters: identity-based policy at layers 3, 4 and 7, Hubble flow records as evidence, the Gateway API with a canary, Cluster Mesh with failover, WireGuard encryption, an egress gateway for the bank's allowlist and Tetragon runtime enforcement, each proven by a drill that writes the measurement into an assessor's evidence pack.

Kubernetes Engineer. Advanced.

What you will build and explain

  • Create two kind clusters without kube-proxy and install Cilium as their dataplane; explain what replaced iptables and measure the difference against a kube-proxy cluster as the Service count grows.
  • Segment the cardholder-data environment with identity-based CiliumNetworkPolicy: discover traffic in audit mode, enforce default deny, allow one HTTP method on one path and one external DNS name, and prove each rule with Hubble verdicts.
  • Produce the evidence an assessor asked for: denied-connection records from Hubble's flow export, drop and policy metrics in Prometheus, and the counts in the evidence pack.
  • Publish the merchant API through the Gateway API on an address Cilium announces, route a canary by header and then by weight, and verify the split by counting responses.
  • Join the two clusters with Cluster Mesh, make a Service global with local affinity, remove one cluster's backends and measure how long the other takes to serve every request.
  • Encrypt node-to-node traffic with WireGuard and prove it with captures before and after; pin the authorizer's traffic to the bank behind one egress address and prove it from the bank switch's log.
  • Install Tetragon, see a shell spawned in the vault, kill a process that opens the key file, and state what each control in the lab proves and what it does not.

Before you begin

  • Kubernetes basics: Deployments, Services, Namespaces, labels and selectors, kubectl; reading YAML and JSON; curl; reading a short Python or bash script. No Cilium, eBPF, Hubble, Gateway API, WireGuard or Tetragon experience is assumed, all of it is taught
  • A Linux Docker host with 6 or more cores, 16 GB of memory (12 GB free for containers), 30 GB of free disk, cgroup v2 and a kernel of 5.15 or later with BTF and the wireguard module (Ubuntu 22.04 or 24.04 or equivalent); about 3 GB of one-time image downloads
  • No cloud account or paid service: two kind clusters, the bank switch and Prometheus all run in containers on your own machine with synthetic data

Who this is for

For platform and Kubernetes engineers who know Deployments, Services and kubectl and want to replace kube-proxy and IP allowlists with Cilium: identity-based policy, Hubble evidence, the Gateway API, Cluster Mesh, WireGuard, an egress gateway and Tetragon, on two kind clusters.

Curriculum

Learning topics (16)
  1. Understand the findings and prepare one Linux machine for two clusters

    This project puts you on the platform team of Ferrin Pay, a fictional card-payments company whose PCI assessor left seven findings about its two Kubernetes clusters, and whose CTO has chosen Cilium to close them. You will not deploy anything to a cloud account. You will build the dataplane on a miniature of the two-site platform, two kind clusters on your own Linux machine, prove each control with a drill that writes its measurement into an evidence file, and assemble the pac

  2. Follow one payment through the dataplane, and one denied connection to the evidence pack

    Ferrin Pay's assessor left seven findings, and the platform team chose one answer for all of them: make the network itself the control. This page explains how the lab's two clusters are built around that answer, how one payment crosses them, how one denied connection becomes a line in the assessor's pack, and where the design stops short of production. The eight diagrams are the same ones the lessons use; this page is the connected story.

  3. Replace kube-proxy: what eBPF changes about a Service, measured against iptables

    Every finding in this project is closed by the same component, so the first lesson is about that component: what Cilium puts on a node, what it replaces, and how the lab measures the difference instead of asserting it. By the end you can read cilium status, explain where a Service's load balancing happens in each dataplane, and run the comparison drill that creates a kube-proxy cluster next to yours, counts what each programs for a thousand Services and deletes it again.

  4. Segment by identity: labels to identities, default deny per direction, audit before enforcement

    The assessor's first finding was that the cardholder-data environment is separated by IP allowlists that go stale when pods reschedule, and that nobody can show the separation works. This lesson replaces the allowlists with policy on workload identity, puts the environment into default deny in both directions, and uses Cilium's audit mode to discover the traffic before denying it. By the end you can read a CiliumNetworkPolicy, say why no address appears in it, and explain wha

  5. Allow one operation, not one port: HTTP rules through Envoy and egress by DNS name

    The assessor did not only ask which workload may reach the vault; they asked what it may do there. A port is not an operation. This lesson narrows the vault's one allowed caller to one HTTP method on one path, restricts the authorizer's traffic to the bank to a DNS name, and shows the two kinds of denial that result: a packet dropped before any application sees it, and a request refused by a proxy with a status code. By the end you can say where each check happens and what Hu

  6. Turn flows into evidence: Hubble verdicts, metrics in Prometheus and the exported flow log

    "When the assessor asked for last quarter's blocked attempts to reach the vault, there was nothing to show." This lesson is the answer to that finding. Hubble is the part of the agent that records every flow and its verdict; this lesson makes that record available three ways, as something you query, something you hand over and something you trend, and then checks that the three agree, because evidence that disagrees with itself is not evidence.

  7. Publish the merchant API: an announced address, a Gateway, and canary routes by header and weight

    The merchant API's ingress was an old controller with its own annotation dialect; the team wants the Kubernetes Gateway API, and a canary that chosen merchants can test by header before a weighted rollout. This lesson publishes the merchant API through a Gateway that Cilium implements with its own Envoy, gives it an address on a network with no cloud load balancer, and verifies the canary by counting answers. By the end you can explain the Gateway API's three objects, where a

  8. Serve from both sites: Cluster Mesh, global services, affinity and failover

    Today each city's merchants are pinned to their own cluster, and a cluster outage takes them offline. The team wants the merchant API served from both sites with a failover that needs no DNS change. This lesson connects north and south with Cluster Mesh, makes one Service global, gives it local affinity, and measures what a client in south sees when south has no backend left. By the end you can say what the clusters read from each other, what a global Service is, and why the

  9. Encrypt the provider's network: WireGuard between nodes, proven by a capture

    The assessor treats the colocation provider's network between the sites as untrusted, and the traffic on it was in clear text. This lesson turns on WireGuard between every pair of nodes with one Helm layer, and proves the change the only way an assessor accepts: a packet capture before and after. It also captures the case the documentation warns about, traffic between two pods on the same node, so that you can read a capture correctly. By the end you can say what is encrypted

  10. One address for the bank: the egress gateway, its node and what breaks when the node goes

    The acquiring bank allowlists one source address, and Ferrin Pay's answer was a single NAT box that failed twice. This lesson makes the address a policy: the authorizer's traffic to the bank, and only that, leaves through a node the policy names with an address the policy names. The drill then shows what the address survives (a pod) and what it does not (the node), and how the gateway is moved. By the end you can explain why an egress address is a routing decision, and what a

  11. See and stop a process: Tetragon's exec events and a tracing policy that kills a key read

    A shell was spawned in a production vault container and nobody knew until the post-mortem. Network policy cannot see that: it happened inside a pod. This lesson installs Tetragon, the runtime observer from the Cilium project, sees the shell as it starts, and then does what a network policy cannot: kills a process that opens the vault's key file, before the read returns. By the end you can explain what a kernel probe is, read a tracing policy's selector, and say why observing

  12. Answer the assessor: what each measurement proves, what it does not, and the pack that cites it

    Every drill in this project wrote a file. This lesson is about those files: what each one proves, what it does not, and how they become the document the assessor reads without anyone typing a number into it. By the end you can read an evidence file's five parts, explain why the pack refuses to assemble over a missing or stale file, and state the limits of a miniature in the assessor's terms.

  13. Run the lab from an empty Docker host to the evidence pack

    This runbook takes the lab from an empty Linux Docker host to an assembled evidence pack in ten milestones, then cleanup removes everything it created. Every command runs on your own machine; nothing here touches a cloud account. Each section says what exists before it, what it creates, where the command runs, what a good result looks like and what to check when yours differs. Output shown here is an example of the shape to expect, not a recording of your run: counts, timings

  14. Reason from a symptom in the dataplane to the mechanism behind it

    The dataplane has more places to look than most learners expect, and the lab's point is that each symptom points at one of them. The scenarios are written as an interviewer would pose them: a symptom, what was observed, and "what would you check?" This page is how to practise them.

  15. Explain the dataplane and defend each control

    A Kubernetes engineer who has built this lab can answer two kinds of question: what a mechanism does (an identity, a default deny, a socket load balancer, a WireGuard peer) and why a control was chosen over its alternatives with what evidence. The twenty questions are written for both, with follow-ups that change a constraint.

  16. Remove both clusters and check for leftovers

    The lab is six node containers in two kind clusters, two Compose containers with one volume, one Docker network, and the files it wrote into your checkout. This page removes the first three completely, keeps the files on purpose, and proves the result with a check that exits 0 only when nothing with the lab's labels remains. There is no cloud resource and nothing that bills.

Practical build steps (11)
  1. Prepare the host and the tools

    Nothing of the lab runs in this milestone. It checks that your Linux machine can run two Kubernetes clusters whose dataplane is the kernel's, downloads the six command-line tools the lab uses into its own folder, generates the only two secrets the lab has, and builds the one image every role shares. Every later milestone assumes these four things, which is why they come first and are checked rather than assumed.

  2. Create the clusters and install Cilium

    This milestone turns an empty Docker host into two Kubernetes clusters whose only dataplane is Cilium, with the bank's switch and Prometheus beside them. It is the longest single step and the one with the most to read afterwards, because everything the later milestones measure is configured here.

  3. Deploy the payment flow and compare the dataplane

    Two things happen here. The application the rest of the lab protects is deployed to both clusters and a payment goes through each, and the dataplane claim from lesson 3 is measured against a kube-proxy cluster that exists only for the drill.

  4. Discover the traffic in audit mode

    Before anything is denied, the lab turns on Cilium's audit mode, applies the default deny for the cardholder-data environment, and lists what the policy would have dropped. The list is the allow rules you are about to write, and one entry you must not write.

  5. Enforce the policies and collect the evidence

    The allow rules go in, audit mode goes off, payments still work, the forbidden requests are denied, and the denials are counted three ways. This milestone closes the assessor's first two findings and produces the evidence for both.

  6. Publish through the Gateway and verify the canary

    The merchant API gets a front door that is a Kubernetes standard rather than a controller's dialect, on an address Cilium hands out and announces itself, and a canary whose routing is verified by counting a thousand answers instead of trusting a diagram.

  7. Connect the clusters and measure the failover

    North and south become one platform for the merchant API: each cluster learns the other's services and identities, the Service is declared global with local affinity, and a probe in south watches what happens when south has no backend left.

  8. Encrypt the network and pin the egress

    Two findings, two drills, each with a before and an after. WireGuard goes on between every node, proven by captures; the authorizer's traffic to the bank is pinned to one address on one node, proven by the bank's own log, including what happens when that node stops.

  9. Install Tetragon and run the runtime drill

    The last control is inside the pod: Tetragon sees a shell start in the vault, observes a read of the key file, and then kills the next one before it returns.

  10. Assemble the evidence pack

    The eight evidence files become the document the assessor reads: one section per finding, every number copied from a file, and a scope statement that says what a miniature proves. Then you provoke the two refusals, because a pack you have never seen refuse is a pack you cannot trust.

  11. Remove the lab

    Two clusters, two containers, a volume and a network, and the files the lab wrote into your checkout. This milestone removes the first group completely, keeps the second on purpose, and proves the result with a check that exits 0 only when nothing with the lab's labels remains. There is no cloud resource and nothing that bills.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

There is no cloud cost: every component runs in containers on your own Linux Docker host, and the only downloads are pinned container images, CRD manifests, a Helm chart and six command-line tools (about 3 GB). Electricity is the running cost. If you choose to run the lab on a rented virtual machine you pay that provider's hourly price and must stop the machine afterwards. The payments company, its merchants, its bank and its card numbers are fictional and synthetic. This is a learning reference, not a hosted lab, a cloud deployment, a PCI assessment or a production-readiness guarantee.

Licence and completion

Vectametric Project Source Licence (2026-09-27): lawfully obtained source may be copied, modified and deployed for personal learning and interview preparation, including personal portfolio demonstrations with attribution. These permissions continue after online access expires. Do not resell or redistribute the Source Pack or its original source files, unchanged or modified. Commercial or client production use requires separate written permission. Third-party components, such as Cilium, Hubble, Tetragon, Envoy, kind, kubectl, Helm, the Gateway API CRDs, Prometheus, Python, pytest and ruff, retain their own licences. See LICENSE.txt and the Project Source Licence section of the site Terms for the full rules.

Questions about projects

Do I need a cloud account?

You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.

Can I read the code with Learning Access?

Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.

Are cloud charges included?

No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.

Does the project include troubleshooting and interview preparation?

The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.

How long can I use the project?

The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy