notes
from the
field.
practical notes on kubernetes, platform engineering and the tools we work in - closer to a runbook than a think piece.
- 20
gateways or leaf nodes
nats joins clusters in two ways: gateways make them peers in one system, leaf nodes hang one off another. the choice decides who dials whom, where jetstream lives, and what still works when the link is down.
- 19
patterns with nats
work queues, last-value caches, event sourcing, per-key ordering, scheduled messages and leases are each a stream or consumer setting on the nats server that is already running.
- 18
kubectl preferences with kuberc
kubectl 1.34 reads aliases and flag defaults from ~/.kube/kuberc, a file kept apart from the kubeconfig. what moves out of the shell, what stays, and how it fails.
- 17
slo burn-rate alerts
an error-rate threshold either pages on every blip or misses the slow leak. burn-rate alerts measure how fast the error budget is being spent, over two windows at once.
- 16
prometheus cardinality
every unique label combination is its own series in prometheus, and one label holding an id or a raw path can outweigh every other metric combined.
- 15
terraform state without surgery
terraform's moved, import, and removed blocks turn state surgery into configuration changes that get a plan, a review, and a history like any other.
- 14
promotions with kargo
kargo models the sequence and requirements for promoting a version between environments, layering on top of argocd without replacing its sync.
- 13
graceful shutdown in kubernetes
rolling updates drop connections when kubelet sends sigterm before the endpoint is removed from routing. the fix spans the pod spec and the application.
- 12
messaging with nats
nats routes messages by subject with a single small binary, and its jetstream layer adds persistence, replay, and at-least-once delivery on top.
- 11
row level security in postgres
row level security moves tenant filtering out of application code and into the table definition, so a forgotten where clause returns nothing.
- 10
password management with pass
pass encrypts each password into its own gpg file and tracks the whole store with git, avoiding proprietary databases and vendor sync services.
- 09
system and user prompts
system and user prompts in an llm api request look interchangeable but carry different authority, and blurring the distinction causes real failures.
- 08
secrets management with external secrets operator
the external secrets operator syncs secrets from aws parameter store and other backends into native kubernetes secrets, keeping the source outside the cluster.
- 07
terminal user interfaces with bubbletea
bubbletea is a go framework for terminal interfaces built on the elm architecture, for interactive cli tools driven by state and messages.
- 06
managing dotfiles with stow
gnu stow turns a directory of dotfiles into symlinks placed in the right spots, replacing brittle install scripts with plain directory structure.
- 05
preview environments with argocd
argocd applicationsets can generate a full preview environment for every open pull request and remove it automatically once the pull request closes.
- 04
terminal multiplexing with tmux
tmux keeps terminal sessions alive across disconnects and splits them into panes and windows, replacing a pile of manually tiled terminal tabs.
- 03
postgres on kubernetes with cloudnativepg
cloudnativepg is a kubernetes operator built for postgresql that handles replication, failover, backups, and monitoring through custom resources.
- 02
policy as code with kyverno
kyverno enforces security standards, injects defaults, and generates resources in kubernetes using plain yaml policies instead of a new language.
- 01
cgroup-based security in kubernetes
kubernetes translates pod resource requests and limits into linux cgroups, and missing or misconfigured ones let a memory leak or a fork bomb take down the whole node.