Skip to content

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.

JobCommandTaught in
Render without installinghelm template nw ./osos -n northwind $values > rendered.yamlM1-S1
Linthelm lint ./osos $valuesM2-S1
Installhelm install nw ./osos -n northwind $values --wait --timeout 20mM2-S2
See what an upgrade changeshelm get manifest nw -n northwind > current.yaml, helm template … > next.yaml, diff current.yaml next.yamlM2-S3
Upgradehelm upgrade nw ./osos -n northwind $values --wait --timeout 20mM2-S3
History, statushelm history nw -n northwind, helm status nw -n northwindM2-S3
Roll backhelm rollback nw <revision> -n northwind --waitM2-S3
Values in usehelm get values nw -n northwind -aM5-S2
JobCommand
Everything at a glancekubectl -n northwind get pods,jobs,hpa
Why a pod is not startingkubectl -n northwind describe pod <pod>
Why a container crashedkubectl -n northwind logs <pod> --previous
Restart one workloadkubectl -n northwind rollout restart deployment/<name>, then rollout status
Restart everything (after a shared-key change)kubectl -n northwind rollout restart deployment
Migration resultkubectl -n northwind logs job/nw-osos-migration-<revision>
Combined pod healthkubectl -n northwind port-forward deploy/nw-osos-core-rest 9900:9900, then curl localhost:9900/healthz and /livez
Resource usekubectl top pods -n northwind
One request in every podkubectl -n northwind logs -l app.kubernetes.io/instance=nw --all-containers --prefix --since=10m | grep <id>
JobCommand
MongoDB shell on a databasekubectl -n datastores exec -it mongo-0 -- mongosh --quiet <database>
Consistent backupkubectl -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 releasekubectl -n datastores exec deploy/redis -- redis-cli -a <password> -n 1 --scan --pattern 'nw-*'
Queues, consumers, messageskubectl -n datastores exec deploy/rabbitmq -- rabbitmqctl list_queues -p nw name consumers messages
RabbitMQ management viewkubectl -n datastores port-forward svc/rabbitmq 15672:15672, then http://localhost:15672
Mail catcherkubectl -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.