Cookbook
Tutorials that take you from nothing to a working setup, and recipes you can copy for common ones.
The Platform pages each explain one feature: what it is, every setting, and the permission it needs. The cookbook puts features together into whole setups, the way a team uses them. Nothing here introduces a feature of its own. Every step links to the Platform page that explains it, so you can stop and read more, or skip what you already know.
Tutorials and recipes
The two kinds of page are written for different moments.
| Tutorial | Recipe | |
|---|---|---|
| Starts from | A connected cluster or two and a repository | A Wardn you already run |
| Reads as | A path to follow in order, web app steps first with the API or CLI alongside | A situation, a repository layout, the exact settings, and a check |
| Ends with | Something working that you built and then broke on purpose | A setup you copy and rename |
| Takes | Half an hour to an hour | A few minutes |
| Explains why | At each step, in a sentence | Only where the setup is not obvious |
Start with a tutorial if you are new to Wardn or to the feature it covers. Reach for a recipe when you know what you want and need the settings.
Some setups rest on features that are built but not yet released. A page that relies on one is marked Preview at the top, and its details may change. Every example uses invented names such as shop, payments-api and example.com; change them to yours.
Tutorials
From a push to production
Dev, staging and production environments, a preview for each pull request, the production branch rule and a rollback.
Recover from a bad change
A held snapshot, a change made by hand in the cluster, and a restore with its preflight.
Protect production
Guardrails, a recurring freeze and an exception with a review date on a production environment.
New to Wardn? Do the quickstart first. The tutorials assume at least one connected cluster and a repository Wardn can read.
Recipes
Apps and rendering
Helm with values per environment
One chart in git, different replicas and image tags for staging and production.
Kustomize overlays per environment
A base and one overlay per environment, each overlay its own app.
Previews for a monorepo
A preview of each service for every pull request, with an address.
One app on every cluster in an environment
A cluster add-on that lands on every labelled cluster, including ones you add later.
Running and watching an app
Run a database migration before an apply
A job that finishes before new code starts, with an undo job for restores.
Health rule for a custom resource
Tell Wardn when a cert-manager Certificate is healthy and when it has failed.
Ignore fields an autoscaler owns
Keep the replica count out of drift when a HorizontalPodAutoscaler sets it.
External Secrets Operator with Wardn
Keep secret values out of git and out of Wardn, and still see when they change.
Access and control
Deploy from CI with an API token
A token that can only read one environment, and a job that waits for a commit to be healthy.
Read-only access for an on-call team
Let a team see production, its snapshots and its drift, and change nothing.
A recurring Friday freeze on production
Hold production deploys every Friday afternoon, with an exception for one cluster.
Releases and approvals
A pipeline with a QA stage and sign-off
Soak time, a test suite and a person's sign-off before a snapshot reaches production.
Two approvals for production, with a hotfix bypass
Two approvers who are not the author, and a recorded one-time bypass for an urgent fix.
Delegate approvals while you are away
Hand your approvals to a colleague for two weeks, and end it early.
Incidents and notifications
Restore safely during an incident
Break the glass past the restore guardrails, with an open Sev 1 or 2 incident and a reason.
Route notifications to the right team
Slack routes for production approvals, a team's releases and on-call failures, plus your own preferences.
Connect PagerDuty as an incident source
Mirror incidents, map services to deployments and fill an on-call group.
Let an agent propose fixes, with auto-approve for safe changes
An agent that proposes, people who approve, and a rule that restarts pods in staging inside a limit.