Noucair ZemraniPlatform engineering & practical automation

ENGINEERING NOTES

Platform Operational Readiness Example: A Kubernetes Go-Live Review

By Noucair Zemrani ·

The deployment finishes. All three pods are ready. The team is about to open the application to users.

Then someone asks: “If the database disappears, how long until a customer can make a booking again?”

Nobody can answer that question from the deployment dashboard.

Platform operational readiness connects a working deployment with the evidence needed to operate the service: a usable customer journey, observable failures, a recovery path, and people who know what to do.

This article follows an illustrative booking application through a go-live review. The service, timings, and findings are fictional. The accompanying Python decision checker was executed against those fictional inputs; no production deployment or recovery drill is claimed.

Illustrative booking API architecture showing the customer request path, identity provider, database, alerting, and a recovery result that blocks go-live.
Illustrative architecture. The recovery figures are fictional.

The use case: a booking API moving toward production

Imagine a small team running a booking application on Kubernetes or OpenShift. The application has three API replicas, PostgreSQL for reservations, an identity provider for sign-in, and monitoring that alerts the on-call engineer.

The critical customer journey is simple:

Sign in → choose an available slot → confirm the booking → reopen the booking.

The release owner defines acceptance before testing:

Area Acceptance condition
Customer journey A test customer can create and retrieve the same booking
Dependency failure A database interruption produces a bounded, understandable failure; service resumes after recovery
Alert delivery The agreed symptom triggers an alert that reaches the intended responder
Recovery An isolated restore recovers the agreed records and supports a new booking within 30 minutes
Ownership One named person owns the final release decision

The 30-minute target belongs to this example. A real team must agree its own recovery time and acceptable data loss.

First, prove that “Ready” means something useful

A readiness probe tells Kubernetes whether a pod should receive traffic through matching Services. It does not automatically verify your sign-in flow, booking logic, alert routing, or backup recovery.

A failed readiness probe can stop a pod receiving that traffic; a failed liveness probe can trigger a container restart. Those are different responses to different problems. Kubernetes probe documentation

For the booking application, test through the same external entry point customers use. In OpenShift, that may be a Route; in Kubernetes, the configured ingress or gateway.

Use an ordinary test account. Create a reservation, save its identifier, then retrieve it after a page refresh or a new session. Confirm the expected slot and customer association, not just an HTTP 200 response.

Record the environment, release, time, test identity, and evidence location. A passing result from a different version cannot establish readiness for this release.

Next, test one dependency failure deliberately

In an isolated staging environment, arrange a reversible interruption between the test API and its test database. Keep the fault contained to that environment and agree how to restore connectivity before starting.

Watch the customer-facing behavior. Does the request finish with a clear failure, or hang indefinitely? Does it report success before the booking is durably recorded? Can the service resume after connectivity returns?

Also watch the restart count. Restarting the API repeatedly cannot repair an unavailable database. Decide whether the service should temporarily stop accepting traffic or provide a defined degraded response; do not make that choice accidentally through probe settings.

The useful outcome is a documented behavior and recovery path, rather than a screenshot of a red dashboard.

Follow the alert all the way to a person

A firing alert is only the first step.

For this example, trigger the agreed booking-failure alert using controlled test traffic. Check that the intended responder actually receives it, can open the dashboard, and can find the relevant runbook with their own access.

The notification should identify the service, environment, symptom, and next investigation step. “Staging booking failures exceeded the test threshold” gives a responder more direction than “Application unhealthy.”

If the alert fires but never reaches the responder, this acceptance condition has failed.

The decisive finding: recovery misses the target

Now consider the hypothetical review results:

Check Illustrative finding Result
Create and retrieve a booking Expected record returned Pass
Database interruption Failure bounded; booking works after connectivity returns Pass
Alert delivery Intended responder receives the test notification Pass
Restored data and new booking Required sample records recovered; new booking succeeds Pass
Time until booking works after restore 37 minutes against a 30-minute target Fail

The service passes its functional checks after restoration, but recovery takes too long for the agreed requirement.

The decision is HOLD. Averaging these results into a reassuring percentage would hide the blocker.

In a real drill, measure from the agreed recovery starting point until the critical user journey passes again. Record the newest recoverable transaction separately: recovery time and recoverable data are different questions. See the backup restore validation checklist.

Make the decision reproducible

This JSON record captures the fictional example. Here, restoreValidation means the required recovered records and post-restore booking checks passed; the time target is evaluated separately.

{
  "service": "booking-api",
  "environment": "staging-demo",
  "release": "demo-v1",
  "checks": {
    "userJourney": true,
    "dependencyFailure": true,
    "alertDelivery": true,
    "restoreValidation": true
  },
  "recoveryMinutes": 37,
  "targetMinutes": 30,
  "decisionOwner": "Demo release owner"
}

Save the record as readiness.json. Save the following script as check_readiness.py and run python3 check_readiness.py readiness.json.

import json, math, sys

def assess(record):
    checks = record.get('checks')
    if not isinstance(checks, dict):
        raise ValueError('checks must be an object')
    required = ['userJourney', 'dependencyFailure', 'alertDelivery', 'restoreValidation']
    reasons = [name + ' has not passed' for name in required if checks.get(name) is not True]
    actual, target = record.get('recoveryMinutes'), record.get('targetMinutes')
    for name, value in [('recoveryMinutes', actual), ('targetMinutes', target)]:
        if type(value) not in (int, float) or not math.isfinite(value) or value < 0:
            raise ValueError(name + ' must be a finite nonnegative number')
    if target == 0:
        raise ValueError('targetMinutes must be greater than zero')
    if actual > target:
        reasons.append('Recovery exceeds agreed target')
    owner = record.get('decisionOwner')
    if not isinstance(owner, str) or not owner.strip():
        reasons.append('Decision owner is missing')
    return {'decision': 'HOLD' if reasons else 'GO', 'reasons': reasons}

if __name__ == '__main__':
    try:
        with open(sys.argv[1]) as stream:
            result = assess(json.load(stream))
    except (IndexError, OSError, ValueError, TypeError, AttributeError) as error:
        print(json.dumps({'decision': 'HOLD', 'reasons': ['Invalid review record: ' + str(error)]}))
        raise SystemExit(2)
    print(json.dumps(result, indent=2))
    raise SystemExit(0 if result['decision'] == 'GO' else 1)

The executed output for the supplied fixture is:

{
  "decision": "HOLD",
  "reasons": [
    "Recovery exceeds agreed target"
  ]
}

The script exits with status 1 for HOLD, 0 when the configured checks pass, and 2 for an invalid input record. Missing checks and strings such as "true" do not count as passed checks.

Changing the fictional recovery value to 22 produces GO in the checker. That demonstrates the decision rule; it is not evidence that a restore took 22 minutes.

For an actual release, the named owner must review current evidence, unresolved risks, and approvals. This small checker neither performs the tests nor verifies the truth or freshness of the submitted record.

Fix the recovery path, then repeat the relevant tests

If a real restore misses its target, break the elapsed time into stages: obtaining access, provisioning the restore environment, restoring data, starting the application, and validating the booking journey.

That breakdown identifies the delay worth fixing. Rehearse the revised process and keep the new evidence with the release record. If the team chooses to accept an exception instead, record its impact, approver, owner, and expiry explicitly.

Do not assume that rolling back a Deployment reverses a database change. Kubernetes Deployment rollback concerns the pod template; schema compatibility and data recovery require their own plan. Kubernetes Deployment rollback documentation

What the receiving engineer should get

The final handover should connect the exact release to the customer test, alert route, recovery procedure, drill evidence, decision owner, and any accepted exceptions.

Use the deployment handover checklist to make those details discoverable.

Platform operational readiness becomes useful when it changes a release decision. In this example, healthy pods did not answer the recovery question. A defined target, a concrete scenario, and an explicit blocker did.

For the broader framework, continue with the Platform Operational Readiness Checklist for Kubernetes and OpenShift.

Download the example checker

Download the Python checker, JSON review record, verified output and README (ZIP). Run it with Python 3.10 or later. The checker evaluates the supplied review record; it does not test your infrastructure.

← All engineering articles