Every command the course uses, grouped by job. Replace nw, northwind and ./osos with your
release, namespace and chart. Set values="-f nw-values.yaml -f nw-secrets.yaml -f pack-values.yaml"
once per shell.
| Job | Command | Taught in |
|---|
| Render without installing | helm template nw ./osos -n northwind $values > rendered.yaml | M1-S1 |
| Lint | helm lint ./osos $values | M2-S1 |
| Install | helm install nw ./osos -n northwind $values --wait --timeout 20m | M2-S2 |
| See what an upgrade changes | helm get manifest nw -n northwind > current.yaml, helm template … > next.yaml, diff current.yaml next.yaml | M2-S3 |
| Upgrade | helm upgrade nw ./osos -n northwind $values --wait --timeout 20m | M2-S3 |
| History, status | helm history nw -n northwind, helm status nw -n northwind | M2-S3 |
| Roll back | helm rollback nw <revision> -n northwind --wait | M2-S3 |
| Values in use | helm get values nw -n northwind -a | M5-S2 |
| Job | Command |
|---|
| Everything at a glance | kubectl -n northwind get pods,jobs,hpa |
| Why a pod is not starting | kubectl -n northwind describe pod <pod> |
| Why a container crashed | kubectl -n northwind logs <pod> --previous |
| Restart one workload | kubectl -n northwind rollout restart deployment/<name>, then rollout status |
| Restart everything (after a shared-key change) | kubectl -n northwind rollout restart deployment |
| Migration result | kubectl -n northwind logs job/nw-osos-migration-<revision> |
| Combined pod health | kubectl -n northwind port-forward deploy/nw-osos-core-rest 9900:9900, then curl localhost:9900/healthz and /livez |
| Resource use | kubectl top pods -n northwind |
| One request in every pod | kubectl -n northwind logs -l app.kubernetes.io/instance=nw --all-containers --prefix --since=10m | grep <id> |
| Job | Command |
|---|
| MongoDB shell on a database | kubectl -n datastores exec -it mongo-0 -- mongosh --quiet <database> |
| Consistent backup | kubectl -n datastores exec mongo-0 -- mongodump --oplog --gzip --archive=/tmp/backup.gz |
| Restore (writers stopped first) | kubectl -n datastores exec mongo-0 -- mongorestore --drop --oplogReplay --gzip --archive=/tmp/restore.gz |
| Redis keys of a release | kubectl -n datastores exec deploy/redis -- redis-cli -a <password> -n 1 --scan --pattern 'nw-*' |
| Queues, consumers, messages | kubectl -n datastores exec deploy/rabbitmq -- rabbitmqctl list_queues -p nw name consumers messages |
| RabbitMQ management view | kubectl -n datastores port-forward svc/rabbitmq 15672:15672, then http://localhost:15672 |
| Mail catcher | kubectl -n datastores port-forward svc/mailpit 8025:8025, then http://localhost:8025 |
redis-cli FLUSHALL (or FLUSHDB) on a Redis the platform uses.
kubectl edit on a ConfigMap, Secret or Deployment of the release, except the documented
shared-key Secret step; the values files are the source of truth.
- Deleting a queue, a retired encryption key, or a migration record to make an error go away.