Live data from Hacker News

Common mistakes using Kubernetes

blog.pipetail.io

11–20 of 149 posts

Re: Common mistakes using Kubernetes

#12
post #3

... requiredDuringSchedulingIgnoredDuringExecution: ... This instantly remembered me of this: https://thedailywtf.com/articles/the-longest-method Kubernetes sometimes shows its Java roots.

To be fair, I don't see how this could be shorter in any other language without losing readability.

Re: Common mistakes using Kubernetes

#13
I wish there was a way to upvote something 10x once a month here. This would be the post I use that on.

When I was writing my book my editor asked me to remove any writing about mistakes and changes I made in the project for each chapter. I had a bug that appeared and I wanted to write about how I determined that and fixed it. They said the reader wants to see an expert talking, as if experts never make mistakes or need to shift from one tact to another.

But, I find I learn the most from explanations that share how your mental model was wrong initially and how you figured it out and how you did it "more right" the next time.

That's really how people build things.

Re: Common mistakes using Kubernetes

#15

What would a good liveness and readyness probe do for a rails app? What kind of work and metrics would these 2 endpoints do in my app?

If it has network problems, kubernetes can take out that instance out of serving traffic.

When your doing rolling upgrades it can signal your app is ready to take traffic.

Those are the main uses.

Re: Common mistakes using Kubernetes

#17
post #3

... requiredDuringSchedulingIgnoredDuringExecution: ... This instantly remembered me of this: https://thedailywtf.com/articles/the-longest-method Kubernetes sometimes shows its Java roots.

> its Java roots

Citation needed.

AFAIR Borg is implemented in C++ and k8s has been implemented in Go from day 0.

Am I missing some crucial steps in k8s's history?

Re: Common mistakes using Kubernetes

#18
post #17
post #3

... requiredDuringSchedulingIgnoredDuringExecution: ... This instantly remembered me of this: https://thedailywtf.com/articles/the-longest-method Kubernetes sometimes shows its Java roots.

> its Java roots Citation needed. AFAIR Borg is implemented in C++ and k8s has been implemented in Go from day 0. Am I missing some crucial steps in k8s's history?

I remember a comment from someone on the go team (bradfitz maybe) saying that the initial plan for Kubernetes was to be implemented in java, but go was chosen because it already had a lot of momentum in the container world.
Post reply on HN