Topics / infra

Infrastructure and operations

Deploying and operating software: Kubernetes workloads, Helm releases, Ansible automation, Raspberry Pi clusters and the practical checks that keep systems running.

Notes
6
Reading
0.3h

Notes

Practical answers in infrastructure and operations.

  1. Note3 min read

    Find what a process is waiting on with strace

    Trace the blocked syscall, follow its file descriptor and identify the thread or peer that must wake it. Use syscall duration rather than summary CPU time to measure waiting.

  2. Note3 min read

    Check an Ansible inventory before changing hosts

    Use a project-local inventory, test SSH and Python connectivity, then preview a small privileged playbook. Keep package refreshes separate from upgrades.

  3. Note3 min read

    Run a Kubernetes CronJob once, on demand

    Create a separate Job from a CronJob template, follow its logs and distinguish a successful run from a failed one. The schedule stays unchanged.

  4. Note3 min read

    Build a small MicroK8s cluster on Raspberry Pi

    Prepare 64-bit Pi nodes, join them deliberately and verify cluster health. Worker count, control-plane availability and durable storage are separate decisions.

  5. Note3 min read

    Boot a Raspberry Pi 4 or 5 from USB storage

    Check boot order before reflashing anything, prepare a separate USB system disk and diagnose power or adapter problems independently of the bootloader.

  6. Note3 min read

    Use Recreate when a Deployment cannot overlap its Pods

    Fix a rollout that needs the old Pods gone before new ones start. Configure the Deployment strategy, then check what your Helm chart actually renders.