Regex declaration order changes the selected handler while exact and longest-prefix rules retain their own priority.

nginx chooses the first matching regex, not a specificity score

nginx does not assign a general specificity score to every location expression. Ordinary prefixes are selected by matching length, exact locations can finish the search, and competing regex locations are evaluated in declaration order. A regex that looks narrower to a human can lose to a broader expression placed earlier. Mixing these selection rules is a common reason apparently careful routing changes affect unexpected paths. ...

December 27, 2027 · 5 min · XB Field Notes
Three replacement Pods use one image while selecting blue, green and retained blue configuration.

ConfigMaps separate configuration from the image

A ConfigMap stores non-confidential configuration separately from an image. That lets a release change an environment-specific value without rebuilding the application artifact. The useful boundary is explicit: the image supplies code, while the workload definition identifies which configuration that code should consume. A release is therefore more than an image tag; its configuration reference is part of the behavior being deployed. ...

August 20, 2027 · 6 min · XB Field Notes
An external text file that supplies environment variables to a unit at start.

EnvironmentFile supplies values when systemd executes a process

An environment file separates deployment values from the unit definition that describes process supervision. systemd reads the configured file before executing a service command and supplies those values in that process’s environment. Editing the file does not rewrite the environment of an already running process. A reload helper is another process, however, and can receive newer file values than the service’s existing main process. ...

February 19, 2027 · 5 min · XB Field Notes