SShortSingh.
Back to feed

Local Kubernetes Development with Tilt: Fast Inner Loop

0
·78 views

Most Kubernetes teams debug their platform in the one place it does not run: their laptop. Production is 82% likely to be Kubernetes (CNCF Annual Cloud Native Survey, 2025, up from 66% in 2023), yet the local dev loop is often a Docker Compose file that quietly disagrees with the real cluster on namespaces, RBAC, and service discovery. We rebuilt our inner loop around a real local Kubernetes cluster driven by Tilt, and it changed how fast — and how honestly — we could iterate on a multi-service backend. This is the setup, the pattern, and the one bug it caught that a mock never would have. Key

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Refund Admin Check Failed in Production When Python Ran With -O Flag

A refund endpoint relied on an assert statement to verify staff permissions, which passed all tests during development. After a release set PYTHONOPTIMIZE=1 in the environment, nothing visibly broke, yet all such checks silently stopped running from that point on. The article explains that Python's -O flag strips assert statements entirely, so they are not reliable for enforcing access control or other security logic. The recommended fix is to replace asserts with explicit conditional checks that raise errors, and to use linters such as Bandit or Ruff to flag assert use outside test code. The author also advises running security tests against the same image and flags used in production.

0
ProgrammingDEV Community ·

Leeds Postcode Bug Traced to indexOf Returning Zero in a Truthiness Check

A same-day delivery check built on four postcode areas worked for most regions but failed for Leeds, though it had launched alongside Cardiff and Truro. The cause was using indexOf, which returns a position rather than a yes-or-no answer, so a match at index zero evaluates as false in an if statement. Other matches returned positive numbers and passed, which is why the defect went unnoticed in code review and testing. The article notes that Python's str.find has the same pitfall, with -1 signalling absence. It recommends using includes in JavaScript or comparing indexOf against -1, and testing boundary cases such as the first item, the last item, and a missing value.

0
ProgrammingDEV Community ·

Why most teams may not need microservices: monolith vs microservices trade-offs

An engineering article argues that many companies adopt microservices simply because large tech firms do, even when their user base is small. It contrasts a monolith's low latency and cost with microservices' many network hops, slower development, and higher cloud bills. The author cites Amazon Prime Video consolidating one service back into a monolith, cutting its costs by 90 percent, along with Shopify and Stack Overflow running on simpler architectures. Microservices are presented as a fix for organizational scaling across many teams rather than for poor code design. The recommended approach is to start with a clean, modular monolith and split into services only when team coordination genuinely requires it.

0
ProgrammingDEV Community ·

Degup: a webcam game that tests whether you can feel your own heartbeat

Degup is a desktop game that asks players to tap in time with their heartbeat without touching their pulse, using a standard webcam. It runs on the Presage SmartSpectra SDK, which reads pulse and breathing from the camera feed and scores how closely the taps match the detected beats. Each round takes about three minutes and produces a result card that can be saved locally, with no uploads. The developer stresses that Degup is a body-awareness game rather than a health test, and it is available in English and Bahasa Melayu under an MIT license on GitHub. A simulation mode lets people try the game without a camera or API key.