TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Solving Common Problems with Kubernetes

174 pointsby sharjeelsayedover 2 years ago

11 comments

c54over 2 years ago
&gt; What problem is k8s even trying to solve?<p>&gt; Say you want to deploy two Python servers. One of them needs Python 3.4 and the other needs Python 3.5.<p>Honestly hilarious. The core value prop example is if you want to run two minor version different programming languages on one machine. In order to do that, you get to deploy and configure hundreds to thousands of lines of yaml, learn about at least 20 different abstraction jargon terms, and continue to spend all your time supporting this mess of infrastructure forever.<p>How many engineering teams adopt kubernetes because it&#x27;s what everyone&#x27;s doing, versus out of genuine well-specified need? I have no idea.<p>I use k8s at work, i know it has benefits, but it too often feels like using a bazooka to butter your toast. We don&#x27;t deploy to millions of users around the globe, and we&#x27;re all on one python version (for library compatibility, amongst other things). Docker is an annoying curse more than it&#x27;s a boon. How much of this complexity is because python virtualenvs are confusing? How much would be solved if instead of &quot;containers&quot; we deployed static binaries (that were a couple hundred mb&#x27;s larger apiece because they contained all their dependencies statically linked in... but who&#x27;s counting). Idk. Autoscheduling can be nice, but can also be a footgun. To boot, k8s does not have sane defaults, everything&#x27;s a potential footgun.<p>In 10 years we&#x27;re going to have either paved over all of the complexity, and k8s will be as invisible to us then as linux (mostly) is today. Or, we&#x27;ll have realized this is insanity, and have ditched k8s for some other thing that solves a similar niche.<p>edit: I realize this is a salty post. I don&#x27;t mean to make anyone feel bad if they love to think about and use k8s. I appreciate and benefit from tutorial articles like this just as much as the next dev. It&#x27;s just the nature of the beast at this point, I think.
评论 #33478737 未加载
评论 #33478420 未加载
评论 #33481123 未加载
评论 #33478897 未加载
评论 #33478434 未加载
评论 #33481344 未加载
评论 #33480730 未加载
评论 #33481632 未加载
emilburzoover 2 years ago
Although most of the articles focus on the benefits of Kubernetes for work, where you usually have more options (e.g. AWS Fargate), I&#x27;ve found it extremely helpful in the case where you want to self-host stuff personally&#x2F;&quot;at home&quot;, but you also want above average resilience so you use multiple nodes (e.g. 3 raspberry pi).<p>You can probably DIY something or always run all the things on all 3 nodes to achieve the same effect, but the first time I saw a node going down and Kubernetes automatically deployed the affected pods to a healthy node, it felt like having AWS on-prem.<p>Also, doing things in a standard way each time means it&#x27;s really easy to bootstrap new things, not always reinventing the wheel. Especially cron jobs, I always lost track of those before. Now it&#x27;s really easy to get an overview. Secrets as well, having it built-in just saves so much &quot;how should I do this again&quot;.<p>Plus base OS upgrades are now really uneventful, since besides k3s (single-binary Kubernetes distribution), there&#x27;s nothing else installed on the host.<p>The complexity is of course higher, you need a load balancer to point to all your cluster IPs since we don&#x27;t get one &quot;for free&quot; from the cloud, shared storage is still something I&#x27;m looking into what&#x27;s the best way to do (NAS with NFS, minio, ...), you most likely need a private registry, and probably others I&#x27;m missing.<p>Nonetheless, since migrating from manually run docker images, I find it a lot more comfortable and even with less downtime (taking down a single node is a non-event now versus &quot;everything is down&quot;).
mkl95over 2 years ago
I still believe Kubernetes is one of the best tools out there to build scalable systems. But I wish it was more opinionated and less leaky.<p>Every project I build feels like a Frankenetes made of many subsystems provided by different vendors that struggle to talk to each other.<p>The day Kubernetes provides curated bundles for common architectures that I can spin up with a few commands, I will be in love with it. For now I have a love&#x2F;hate relationship with it.
评论 #33480645 未加载
评论 #33483038 未加载
cloudkingover 2 years ago
For a startup, I&#x27;m still trying to figure out why you would use k8s instead of Google App Engine or other managed PaaS. You never worry about the problems listed in this article. You focus on writing code, deploying it with minimal config and let Google handle all these problems. Can anyone explain?
评论 #33477952 未加载
评论 #33477698 未加载
评论 #33477855 未加载
评论 #33478404 未加载
评论 #33477758 未加载
评论 #33477683 未加载
评论 #33477671 未加载
mistoover 2 years ago
You just can&#x27;t have an article about k8s here without the debate being about its usefulness.<p>Nicely written article nonetheless.
评论 #33480404 未加载
kmoserover 2 years ago
The biggest problem I see is that the headline is ambiguous: it can be interpreted as &quot;how to use Kubernetes to solve common problems,&quot; or alternately &quot;how to solve problems commonly encountered in Kubernetes&quot;.
评论 #33479482 未加载
评论 #33477317 未加载
评论 #33477414 未加载
tannhaeuserover 2 years ago
Is there a variant of &quot;How many [k8s engineers] does it take to change a light bulb&quot; yet?
评论 #33482284 未加载
user3939382over 2 years ago
I know AWS ECS&#x2F;ECR&#x2F;EC2&#x2F;ALBs etc well but jack about k8s. Is it kind of the same thing?
评论 #33477410 未加载
评论 #33479943 未加载
评论 #33477160 未加载
评论 #33477268 未加载
pjmlpover 2 years ago
For most problems, making use of kubernetes follows the same rule of using regular expressions.
fockover 2 years ago
&gt; Setting up an IngressController is probably the job of a specialized Platform team who maintain your k8s cluster, or by the cloud platform you&#x27;re using.<p>What? I thought this was a solution solving problems, not making ones which you should not solve...
评论 #33481823 未加载
webmonkeyukover 2 years ago
What&#x27;s the solution? k8s!<p>What&#x27;s the problem? Anything!