Platform deployment
Status: Superseded as the canonical procedure by Local development and GitOps deployment. This lesson remains a compact GitOps reading exercise.
GitOps topology
dx-gitops owns the running desired state. The shared chart can render Deployment, Service, probes, resources, autoscaling, disruption budget, network policy, ingress, external secret, and optional migration job.
Change path
- Build, test, scan, and sign an image.
- Render chart plus service/environment values.
- Review compatibility, secrets, network, probes, and resources.
- Update an immutable image digest.
- Sync to development and run smoke/contract checks.
- Promote through environments with review.
- Observe SLO, readiness, error, dependency, and backlog signals.
Development and staging may auto-sync. Production promotion is manual. A complete automated image-build-to-production-promotion workflow remains planned.
Schema sequencing
Use expand-and-contract. One PreSync migration Job runs the same image and must finish before new serving replicas require the schema. Application replicas do not race to apply DDL.
Rollback
Rollback selects a previous image/config digest. It does not reverse data mutation or destructive schema change. Every deployment plan states compatibility window, abort threshold, and forward-recovery path.
Exercise
Trace one service from Dockerfile to image digest, environment values, rendered Deployment, ExternalSecret, probes, network policy, and Argo CD application. Identify what evidence is automatic and what remains manual.
Check yourself
- Which repository is deployment source of truth?
- Why should production use an image digest?
- When is a migration Job safe?
- What cannot an application rollback undo?