yaml is just json that went to art school and came back…
yaml is just json that went to art school and came back with opinions about whitespace and a drinking problem
The most useful posts in this topic, by likes from the community.
yaml is just json that went to art school and came back with opinions about whitespace and a drinking problem
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…
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 >…
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…