Skip to content
Hands-on course · 18 days

CNPE hands-on

You build an internal platform on your own kubeadm cluster with GitOps, platform APIs, monitoring, policies and a signed supply chain – and solve a timed practice exam with 17 tasks.

  • Free · no subscription
  • 18 days · 45–90 min each
  • 122 drills · with expected output

Companion code on GitHub

Day 3 · Drill 2: Registering the repository
# on cp1
$ argocd repo add http://172.16.0.126:30300/platform/plattform.git \
$   --username platform --password platform-lab-123
$ argocd repo list

Expected

Repository 'http://172.16.0.126:30300/platform/plattform.git' added
TYPE  NAME  REPO                                              INSECURE  OCI    LFS    CREDS  STATUS      MESSAGE  PROJECT
git         http://172.16.0.126:30300/platform/plattform.git  false     false  false  true   Successful

As a book · Edition 2026 · PDF and EPUB

The whole course to take with you, for reading away from the screen. Reading online stays free.

With Pro: as your book of the month Pro launches soon. With a free account you can join the Pro waitlist.
Leanpub · soon Amazon · soon

What you'll be able to do

  • Set up tenants with quotas, limit ranges, RBAC and network policies and enforce them automatically for every new namespace with a Kyverno GeneratingPolicy
  • Deliver with Argo CD, AppProjects and ApplicationSets, promote through pull requests and run canary and blue-green rollouts with automated analysis
  • Build platform APIs with custom CRDs (schema, CEL, versions) and Crossplane compositions that teams may order through RBAC
  • Build a supply chain with Tekton, a Trivy gate, an SBOM and cosign signatures and admit only signed images by digest in the cluster

What you need

LabThree VMs with Ubuntu 24.04, SSH access and sudo on a shared network – one with 4 vCPU/12 GB, two with 2 vCPU/8 GB

Backgroundkubectl basics (pod, deployment, service), Linux in the terminal and Git

InternetInternet access from the VMs for packages, Helm charts, images and downloads from the official release pages

Prior knowledgeThe course is self-contained: cluster, Git server, registry and all tools are built in the course. It is for platform and DevOps engineers preparing for the CNPE or building an internal platform.

Set up your labKubernetes locally · Lab VMs

Training plan

One day = one sitting. Every day ends with a checkpoint and a challenge. About 20 hours in total.

Training days

  1. Day 0 The terrain – a kubeadm cluster like in the examBuild a Kubernetes 1.37 cluster with kubeadm from three fresh VMs, set up Cilium as the network, metrics-server and storage, and start Gitea as the Git server for the platform 75 min
  2. Day 1 Tenants – namespaces with limitsTwo teams each get a namespace with resource limits, default values, permissions for their developer group and a network that locks out other teams 60 min
  3. Day 2 Availability and scalingA service spreads across the nodes, grows under load with the HPA, survives the draining of a node thanks to a PodDisruptionBudget, and platform services get priority 60 min
  4. Day 3 Argo CD – Git is the truthInstall Argo CD, roll out an application from Gitea, detect drift and let it heal itself, clean up deleted objects and control the order of a sync with waves and hooks 75 min
  5. Day 4 Argo CD for teams – projects, ApplicationSets, promotionTeam Green gets its own Argo CD project with limits, environments as Kustomize overlays, an ApplicationSet that generates an Application for each environment by itself, and a path to production via a pull request 75 min
  6. Day 5 Progressive delivery with Argo RolloutsShow a new version to only part of the traffic first (canary), let an analysis stop a broken version automatically, and check a version in a preview before switching over (blue-green) 60 min
  7. Day 6 Tekton – closing the loopA Tekton pipeline in the cluster clones the code of shop, builds an image, pushes it to Gitea's registry and writes the new tag into the platform repo – Argo CD rolls it out to staging 90 min
  8. Day 7 Platform APIs – a resource of your ownDesign a CustomResourceDefinition Umgebung that teams use to order environments: a schema with required fields, defaults, limits and a CEL rule, custom columns, a status part, rights for the teams and a second API version 60 min
  9. Day 8 Crossplane – an API that does somethingBuild a platform API Datenbank with Crossplane: a team writes five lines of YAML and gets PostgreSQL with credentials, storage and a Service. Crossplane keeps everything in the desired state, teams get rights, and a CEL rule protects against a change that cannot work 75 min
  10. Day 9 Self-service and the golden pathEvery new tenant namespace gets its fences automatically – quota, LimitRange, NetworkPolicies, rights for the team group – and keeps them. New services start from a template in Gitea instead of an empty repo 60 min
  11. Day 10 Prometheus, alerts, GrafanaThe platform monitors itself and its teams: install kube-prometheus-stack, make the kubeadm control plane measurable, collect metrics from a team application, write a recording rule and an alerting rule, route alerts to the team, deliver a dashboard as code and let Argo Rollouts decide based on Prometheus 90 min
  12. Day 11 Operations – five incidentsRecognise, narrow down and fix five typical incidents – with a fixed sequence of commands instead of guessing – and turn them into a runbook for the platform 60 min
  13. Day 12 OpenCost – what does a team cost?Install OpenCost with prices for your own data centre, read costs per namespace and team, compare requested and used resources, and shrink a service based on measured values 45 min
  14. Day 13 Policies – validate, mutate, exceptionsWith Kyverno, first observe a rule, then enforce it, experience its side effect on running services, have pods completed automatically, and grant an exception with conditions 60 min
  15. Day 14 The supply chain – scan, describe, signCheck images for vulnerabilities and stop the build on critical findings, generate a bill of materials (SBOM), sign images with cosign and admit only signed images from your own registry into the cluster – and build all of this into the pipeline from Day 6 90 min
  16. Day 15 mTLS and authorization with LinkerdInstall Linkerd, bring Team Blue into the mesh, prove mutual TLS with identities and define who may call podinfo – without locking out monitoring 75 min
  17. Day 16 Exam training – eight tasks against the clockPractise the exam situation: read tasks quickly, solve them with few commands, check them yourself and move on. Eight tasks from all five domains, each with a time limit 60 min

More