BOOTSTRAPPING ★ 4 upvotes 2019

Ask HN: Kubernetes Service Dependencies and Bootstrapping clusters

The Founder's Submission

Direct narrative and submission text authored by @psankar on Hacker News:

We are using kubernetes. We have about 15 or so pods/services, about 3-4 statefulsets. Things work fine and we are happy with kubernetes so far.

However, for our dev setups and also for CI, we are looking for a better solution. These 15 services have a few hierarchical dependencies. For example, the postgres stateful set should be brought up first, followed by the users service and then the auth service.

The users/auth service will work fine (albeit returning 5xx errors) even without the other services being up. However, if all the services start together, they will all compete for the tiny amounts of CPU that we have given and eventually some starve and kind of gets into weird unrecoverable situations (in CI and test clusters where we can't give max cpu/mem).

I know of ways to increase the cpu/mem limit but keep the initial allocations, small. But I believe that since I know about service dependencies better, if I bring up kubernetes pods/services in a hierarchical way, it would be far more useful for me.

Do any of you that use kubernetes, use any tools/hacks/techniques to bring up pods/services in particular order (without lots of kubectl waits) ? In the past, with `docker-compose` I was able to achieve this via service dependencies but can't find similar in kubernetes. Any pointers ?

Retrospective Overview & Key Insights

Distilled analysis of the business dynamics, operational challenges, and strategic takeaways:

Published in 2019, this chronicle by @psankar details the mechanics of building a profitable, self-funded business without venture backing.

Core Principles for Independent Builders:
1
Charging customers from day one acts as the ultimate filter for building software that solves genuine, high-urgency problems.
2
Keeping fixed overhead low and leveraging lean infrastructure allows founders to stay alive until market tailwinds kick in.
3
Small, repetitive improvements in customer retention and conversion rates yield massive returns over multi-year horizons.
Community Debate Themes:

The community focused on B2B customer acquisition channels, cold email vs SEO distribution, and balancing full-time employment with side-project development.

Community Discussions & Critical Reviews

High-signal perspectives, counter-arguments, and peer founder insights debated on Hacker News (3 total discussions):

AL @aliswe Peer Contributor

How about some kind of startup condition as a proxy for your original entrypoint?

May I ask why you're running DB and stateful systems in k8s in the first place? The benefits of doing it is not likely to outweigh the difficulty of getting it right.

HISTORICAL ERA Cloud & Mobile Era (2014–2019)
COMMUNITY SCORE ★ 4 points
TOTAL DISCUSSIONS 3 comments
TOPICS & TECH STACK: