69 articles
Knowledge Base
DevOps
69 articles in the DevOps category · page 1 of 3.
- Immutable infrastructure — replace, do not patch Immutable infrastructure means you replace a server with a freshly built one instead of changing it in place. See how the image pipeline and the rollout work, which problems the approach removes, and when patching a server in place is still the better choice.
- cPanel server management: the daily, weekly, monthly and quarterly runbook Keep a cPanel server healthy with a short routine of checks to run every day, week, month and quarter. Each check comes with the real command and the output that means all is well, so you can tell a pass from a fail at a glance.
- trycloudflare.com: share localhost with a Quick Tunnel Put an app running on your own machine on a public trycloudflare.com HTTPS link with one command and no account, then know when to switch to a named tunnel.
- Put large binary files under Git LFS without wrecking your repository Learn how to keep large binary files such as videos and design assets in Git LFS without bloating your repository. This guide explains how the clean and smudge filters swap each file for a small pointer file, how to set tracking patterns in .gitattributes, and how to move files already in history with git lfs migrate import. It also covers CI clones with GIT_LFS_SKIP_SMUDGE, file locking and storage quotas.
- Buildkite self-hosted agents — install and operate Learn how to install and run self-hosted Buildkite agents, the machines that actually execute your build jobs, on servers you control. You will set up queues, tags, hooks, and scaling so your source code and secrets stay on your own infrastructure.
- Git partial clone and sparse checkout — making a huge repository workable Learn how to use Git partial clone and sparse checkout so that a huge repository clones quickly and stays quick to work in. You will choose the right clone filter, narrow the working tree with cone-mode sparse checkout, and steer around the background fetches that make git blame crawl.
- WordPress staging to production: what moves, what never moves, and how the database is merged This guide walks you through a WordPress staging to production promotion, so the release goes live without erasing the orders, accounts and comments your live site recorded while you worked. You will also learn what a WP Engine or cPanel push button actually overwrites.
- Sealed Secrets vs SOPS vs External Secrets: which one to use A decision guide for Kubernetes secrets in Git — what Sealed Secrets, SOPS and External Secrets Operator each do to the secret material, and how they differ on rotation, disaster recovery, audit and bootstrapping.
- Write your first Ansible playbook: a step-by-step guide Start from an empty directory and finish with a working playbook: install Ansible, write an inventory, ping a host, install and configure Nginx, then re-run it and watch changed=0. Every command shows its real output.
- systemd socket activation: writing a .socket unit paired with a .service Set up systemd socket activation so PID 1 owns the listening socket and hands it to your daemon over the LISTEN_FDS protocol, keeping connections queued in the kernel accept queue across a service restart.
- Testing Ansible roles with Molecule: scenarios, idempotence and CI A practical guide to testing Ansible roles with Molecule — installing the docker driver, the anatomy of molecule/default/, proving idempotence, testing across multiple distro images, and wiring molecule test into GitHub Actions.
- Run Semgrep as a SAST gate in CI without failing every pull request Set up a Semgrep SAST gate in GitHub Actions or GitLab CI: install the CLI, choose registry rulesets or write a custom rule, and use --baseline-commit so an existing codebase only fails on new findings.
- Node.js built-in test runner: node --test without a framework Use the Node.js built-in test runner instead of adding a test framework: node --test file discovery, node:assert/strict, subtests, hooks, t.mock, watch mode, coverage, and JUnit output for CI.
- Deploy OpenBao as a single-node secrets server with AppRole authentication Install OpenBao under systemd with TLS and raft storage, initialise and unseal it, enable the KV v2 engine, write a least-privilege policy, and give an application renewable AppRole credentials.
- Migrating a Python project to uv: the uv.lock workflow Adopt the uv lockfile workflow on a real project — import an existing requirements.txt or Poetry set, commit uv.lock, and reproduce the same resolved versions with uv sync --frozen on a laptop, in CI, and in a Docker image.
- Alter a large MySQL table with pt-online-schema-change How pt-online-schema-change alters a multi-gigabyte MySQL or MariaDB table without a long metadata lock: the shadow table and trigger mechanism, the throttling flags that matter in production, replication safety, cleaning up after an abort, and when native online DDL or gh-ost is the better answer.
- Kubernetes init containers: ordering pod startup properly Init containers run to completion, in order, before any app container starts. Learn how their resource requests are computed, how failures surface as Init:Error, and when a native sidecar is the better answer.
- Kubernetes ResourceQuota and LimitRange: govern namespace capacity Set a namespace-wide ResourceQuota, add LimitRange defaults so existing workloads still get admitted, use object-count and per-StorageClass quotas and scope selectors, and read kubectl describe quota.
- Crontab syntax explained — the five time fields and how to write a schedule A practical guide to crontab syntax: what the five time fields mean, the operators (* , - /), special strings like @reboot and @daily, real-world examples, and the crontab commands and environment gotchas that trip people up.
- git rebase -i: clean up commit history before merging Use interactive rebase (git rebase -i) to squash, fixup, reword, reorder, edit, and drop commits so your branch history reads clearly before you merge.
- Resolving a git merge conflict, step by step Understand why a git merge conflict happens, how to read the conflict markers, and the exact commands to resolve, verify, or abort a conflicted merge or rebase.
- Ship Linux and Container Logs to Loki with Grafana Alloy Install Grafana Alloy, write a config that tails files, journald, and container output, keep label cardinality in check, run it under systemd, and confirm ingestion with LogQL — the practical path off end-of-life Promtail.
- git worktree: work on several branches at once Use git worktree to check out several branches at the same time from a single clone — no stashing, no second clone. Covers add, list, remove, prune and repair.
- git bisect: find the commit that introduced a bug Use git bisect to binary-search your history and pinpoint the exact commit that introduced a regression, by hand or with an automated git bisect run script.