Operations¶
Purpose¶
The "something's broken, check/fix it now" section - health verification, logs, monitoring, backup, and troubleshooting, for any environment.
Read-only vs. mutating - the distinction this whole section respects¶
| Examples | Safe to run anytime, any environment | |
|---|---|---|
| Read-only diagnostic | kubectl get/describe/logs, helm list/history, .\scripts\verify-staging.ps1, terraform validate |
Yes |
| Mutating | Gated wrappers (.\scripts\deploy-staging.ps1, .\scripts\stop-staging.ps1 -Yes, .\scripts\rollback-staging.ps1 -Yes, .\scripts\restart-staging.ps1), Jenkins, or Terraform |
Only deliberately, never via raw/un-gated commands, and never against production without explicit approval |
Every command reference in this section is labeled with which category it's in.
Pages in this section¶
- Verification -
verify-staging.ps1, the primary post-deploy validation command. - Monitoring - what's wired up (Prometheus
ServiceMonitor/PrometheusRule) versus documented-but-disabled by default. - Backup - the MySQL backup CronJob, encryption, retention.
- Rollback - Helm and Terraform rollback, consolidated.
- Troubleshooting - the full read-only command reference: pods, logs, ingress, DNS/hosts.
- Staging Demo Data - staging-only demo data seeder, CLI flags, personas, and Seller Dashboard readiness verification.
Fastest path to "is it working?"¶
.\scripts\verify-staging.ps1 -Context k3d-akshaya-staging -Namespace staging -ReleaseName akshaya-local -IngressHost staging.akshaya.local -IngressPort 80
-Context/overrides for real staging - see Verification).
Expected: Summary: 14 PASS, 0 WARNING, 0 FAIL.