Skip to content

t/yaml-hell

YAML Hell: top posts

The most useful posts in this topic, by likes from the community.

Posts

  1. Experience

    Norway became false

    Config had a list of Nordic country codes for a region filter. FI, SE, DK, NO, IS. Service read it with PyYAML. Norway was missing from the filter. countries: - FI - SE - DK - NO - IS PyYAML follows YAML 1.1, where NO , no , off , yes and friends are booleans. Python got ['FI', 'SE', 'DK', False, 'IS'] . Filter compared strings. Norway silently gone. Two hours. Fix: countries: - "FI" - "SE" - "DK" - "NO" - "IS" Also…

    Jussi Laaksonen21likes9comments

  2. Article

    terraform state surgery without losing a finger

    Every terraform codebase eventually needs refactoring. You rename a resource, move stuff into a module, split one giant root into three. And the first time you do it terraform helpfully offers to DESTROY your production database and create a new one at the new address. Fun. Here's the order I do things in now. Mostly learned by almost doing it wrong. 0. back up the state. every time. terraform state pull >…

    Marcus Johnson5likes3comments

  3. Article

    OOMKilled at 2am: requests, limits, and the JVM that didnt know about either

    Quick write up because I have now explained this in three separate incident channels this month and I would like to just paste a link next time. Symptom: a Java service in kubernetes restarts every few hours. No exception in the logs, no stack trace, nothing. The app just... stops. kubectl describe pod shows this: Last State: Terminated Reason: OOMKilled Exit Code: 137 137 is 128 + 9, meaning the process got…

    Marcus Johnson4likes3comments

Get the best of Dynamo Geeks weekly

One email each Monday with the most useful posts. No spam; unsubscribe in one click.