Kubernetes Cluster Lifecycle and Safe Upgrades

Run Kubernetes clusters as a repeatable lifecycle: clusters declared through Cluster API and a ClusterClass, a preflight that catches removed APIs and unsafe workloads, a rolling upgrade from 1.36 to 1.37 with availability measured from outside, Kyverno policies that refuse what would break the next upgrade, an etcd snapshot that is actually restored, and a cluster rebuilt from Git with Velero against a stated recovery objective. Everything runs on one Linux host with Docker.

Kubernetes Engineer. Advanced.

What you will build and explain

  • Explain how Cluster API's objects and controllers turn one Cluster into machines, and why an upgrade is a one-line change.
  • Decide from evidence whether an upgrade is safe to start, with a preflight over manifests, live objects, workloads and budgets.
  • Predict what a drain does to a workload from its replicas, budget and readiness, and reproduce the two ways it goes wrong.
  • Run a rolling upgrade, read its timeline and availability figures, and name the cause of each gap.
  • Write and test admission policy in CEL with Kyverno, and say what it does not protect against.
  • Restore from an etcd snapshot and a Velero backup, rebuild a cluster from Git, and state a measured recovery time and recovery point.

Before you begin

  • Write and apply Deployments, Services, ConfigMaps, Secrets and PersistentVolumeClaims, and read kubectl get, describe and logs output.
  • Install a Helm chart with overridden values, and use Docker on Linux: run, ps, logs and exec.
  • Read Python and YAML, and explain what the API server, etcd, the scheduler, the controller manager and the kubelet each do. Cluster API, ClusterClass, disruption budgets in depth, Kyverno, etcd operations, Velero and MetalLB are taught here.
  • A Linux host or virtual machine behind a firewall with kernel 5.15 or later, Docker Engine 25 or later, Git and make; 4 vCPUs (8 recommended), 12 GB of free memory and 40 GB of free disk; no cloud account. Docker Desktop is not supported.

Who this is for

For engineers who already deploy applications to Kubernetes, use Helm and Docker on Linux and can explain the control plane's parts, and want to own the clusters themselves: Cluster API and ClusterClass, safe rolling upgrades measured from outside, admission policy, and backups that have been restored, on one Linux host.

Curriculum

Learning topics (15)
  1. Understand the brief and prepare a Linux lab host

    Before you touch a cluster, you need to know what Ashgrove is asking for and whether your machine and your skills can carry the lab. This lesson answers both. Nothing here creates anything; the build starts in the practical guide's first milestone.

  2. Understand the lab from manifest to running cluster

    Ashgrove Outfitters' clusters were built by hand, so no two were alike, an upgrade failed on an API the new version had removed, a drain took the only copy of checkout, and no backup had ever been restored. The lab answers each of those with one mechanism you can run and measure on a single Linux host: clusters declared as Kubernetes objects and built by Cluster API, an upgrade that replaces machines one at a time while a probe measures the storefront from outside, admission

  3. Declare clusters as objects with Cluster API

    You already trust Kubernetes to keep three replicas of a web tier running. You state what you want in a Deployment, and a controller compares that with what exists and closes the gap. If a pod dies, you do not run a command. You do not even find out, unless you look.

  4. Build every cluster from a ClusterClass and give it its add-ons

    Ashgrove's clusters differ because each was built by hand. Declaring them as objects does not fix that by itself: ten clusters with ten sets of hand-written control-plane and worker objects are ten ways to differ. What fixes it is having one template, reviewed once, that every cluster is built from. This lesson reads that template and then asks the next question: a freshly built cluster has nodes but cannot run anything yet, so how does it get what it needs?

  5. Keep workloads available through drains with budgets and probes

    An upgrade replaces every node, so every pod in the cluster will be removed from its node at least once. Whether your customers notice is decided before the upgrade starts, by a few settings on each workload. This lesson explains what a drain does, what those settings do, and how you will measure the result instead of assuming it.

  6. Check an upgrade before you start it

    At Ashgrove, a chart failed halfway through the upgrade, because it used an API the new release no longer served. By then the control plane had already moved, and Kubernetes does not support going back down. An upgrade you can only discover is unsafe once it is running leaves you with no good options. A preflight turns those discoveries into a list you read while nothing has changed.

  7. Upgrade the control plane and the workers one machine at a time

    The preflight has passed. You change one line in clusters/shop/cluster.yaml, from version: v1.36.4 to version: v1.37.0, and apply it. Over the next eight minutes every node in the cluster is replaced, etcd moves to a new version, and customers keep shopping, nearly all of them unaware. This lesson explains what happens in those eight minutes, and how to read the record it leaves.

  8. Refuse unsafe workloads at admission with Kyverno

    The preflight tells you about unsafe workloads when you are about to upgrade. That is too late for the team that deployed one months ago and now has to fix it under time pressure, and it depends on someone running the check. Admission policy moves the conversation to the moment a workload is created, when the author is at the keyboard and changing it is cheap. This lesson builds those rules and tests them like code.

  9. Back up etcd and prove the snapshot restores

    When someone at Ashgrove asked for the last etcd backup, the awkward discovery was not that backups were missing. Files existed. Nobody knew whether they would restore, because nobody ever had. This lesson takes a snapshot, restores it somewhere safe and looks inside. Being able to say "I restored that file and found this object in it" is a different claim from "the backup job is green".

  10. Rebuild a cluster from Git and restore its applications with Velero

    Imagine the worst version of Ashgrove's week: the shop cluster is gone, control plane and all. What do you do? With hand-built clusters, you start a long and frightening project. Here, you have three sources of truth, each kept somewhere the disaster did not reach: the cluster's definition in Git, its applications and data in a bucket, and a stated objective to measure yourself against. This lesson joins them and puts a number on it.

  11. Renew control-plane certificates by replacing machines

    There is a failure that gives no warning, needs no bug and arrives exactly one year after you built the cluster: the API server's certificate expires, kubectl stops working, and so do the controllers. It is a classic way to lose a cluster that has otherwise been left alone. This lesson shows where those certificates are, how to see how long they have, and why Cluster API's way of renewing them is the same operation you have just practised.

  12. Build, upgrade, break and recover the clusters

    This is the one ordered procedure. The lessons explain why; this page says what to run, where, what it changes and what to expect. Times quoted are the author's, on an 8-vCPU arm64 host with 32 GB of memory, and yours will differ. Treat them as examples, as with every name and address shown here.

  13. Diagnose stuck rollouts, hung drains and failed restores

    Lifecycle failures are confusing because each layer reports only its own view. A Machine says Provisioned, a pod says Pending, a backup says Completed, and every one of those may be true while the thing you care about is broken. This lesson gives you a way to walk from a symptom to the layer that knows the answer, then practice with scenarios.

  14. Prepare for Kubernetes platform and lifecycle interviews

    Platform interviews test whether you can reason about a system under change: what happens during an upgrade, what a setting really protects, what you would check first and how you would recover. This project gives you a system you built, broke and measured to reason about. This lesson explains how to use it in practice. The questions themselves are in the interview topics.

  15. Remove the clusters and the generated keys

    When you have finished, this page removes everything the lab created. Run it from the pack's source/ directory on the host, as the same user who ran the lab. Copy evidence/report.md somewhere first if you want to keep it, because the last step deletes it.

Practical build steps (6)
  1. Prepare the host, build the tool image and create the management cluster

    You start with a Linux host, Docker, and the pack unpacked in its own directory. You finish with every tool at a pinned version and Cluster API's controllers running in a one-node kind cluster, ready to build clusters from objects. Nothing that serves customers exists yet.

  2. Create the workload cluster and run the storefront on it

    You start with Cluster API running and an empty namespace of objects. You finish with six machines on Kubernetes 1.36, a storefront answering at an address that will survive those machines being replaced, and a probe outside the cluster recording every request.

  3. Reproduce last spring's drain failures and enforce admission policy

    You start with a healthy storefront and a recording probe. You finish having watched both of Ashgrove's drain failures happen in a sandbox, with the same unsafe workloads now refused in production. One worker is replaced along the way, which is your first look at a machine being drained for real.

  4. Run the preflight and upgrade the cluster to 1.37

    You start on Kubernetes 1.36, with two problems planted in your environment. You finish on 1.37 and etcd 3.7, with every machine replaced, a timeline of each one, and a measurement of what customers felt. This is the milestone the rest of the project prepares for.

  5. Back up, restore and rebuild, then renew the certificates

    You start on a healthy 1.37 cluster with backups you have never tested, which is where Ashgrove was. You finish having restored a snapshot and read it, deleted and restored a namespace, destroyed and rebuilt the entire cluster against a stated objective, renewed the control plane's certificates, and written a report made only from what the lab recorded.

  6. Remove the clusters and the generated keys

    You start with a running lab and a report you may want to keep. You finish with no cluster, container, volume or generated file of the project on your host. Copy the report first, because the last step deletes it, and make clean also destroys the backups.

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

The lab runs on your own Linux host: local CPU, memory and disk, and pinned images and manifests pulled from public registries. It needs no cloud account. If you choose to use a cloud instance as the host, its cost is yours and it is yours to delete.

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 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