TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Kubernetes for personal projects? No thanks

481 点作者 carlosrdrz超过 6 年前

50 条评论

solatic超过 6 年前
Oh man, the original article went way over the author&#x27;s head. The point of the original article was that even though Kubernetes is <i>primarily</i> useful for tackling the challenges involved with running many workloads at enterprise scale, it <i>can</i> also be used to run small hobbyist workloads at a price point acceptable for hobbyist projects.<p>Does that mean that Kubernetes should now be used for <i>all</i> hobbyist projects? No. If I&#x27;m thinking of playing around with a Raspberry Pi or other SBC, do I need to install Kubernetes on the SBC first? If I&#x27;m thinking of playing around with IoT or serverless, should I dump AWS- or GCE-proprietary tools because nobody will ever run anything that that can&#x27;t run on Kubernetes ever again? If I&#x27;m going to play around with React or React Native, should I write up a backend just so I can have something that I can run in a Kubernetes cluster, because all hobbyist projects must run Kubernetes now, because it&#x27;s cheap enough for hobbyist projects? If I&#x27;m going to play around with machine learning at home, buy a machine with a heavy GPU, figure out how to get Kubernetes to schedule my machine learning workload correctly instead of just running it directly on that machine, because uhhh maybe someday I&#x27;ll have three such machines with powerful GPUs plus other home servers for all my other hobbyist projects?<p>No, no, no, no, no. Clearly.<p>But maybe I envision my side project turning into full-time startup some day. Maybe I see all the news about Kubernetes and think it would be cool to be more familiar with it. Nah, probably too expensive. Oh wait, I can get something running for $5? Hey, that&#x27;s pretty neat!<p>Different people will use different solutions for different project requirements.
评论 #18141597 未加载
评论 #18140880 未加载
评论 #18139130 未加载
评论 #18140111 未加载
评论 #18142206 未加载
评论 #18140898 未加载
评论 #18139482 未加载
评论 #18142333 未加载
评论 #18143537 未加载
评论 #18141591 未加载
评论 #18142717 未加载
评论 #18140700 未加载
评论 #18142208 未加载
评论 #18142529 未加载
jypepin超过 6 年前
I totally agree with this article. I&#x27;m giving a point of a view of a pure developer who knows nothing about DevOps things and managing servers. I kind of know what NGINX is and barely know how to configure something like systemd.<p>I recently setup a digital ocean droplet and setup my blog there to actually understand how it works. It was great because I learned a ton and feel in control. Pretty simple setup - single droplet, rails with postgres, capistrano to automate deploys and a very simply NGINX config. It took me multiple days to setup everything, compared to the 5 minutes Heroku would have required - and it&#x27;s not as nice as what Heroku offers.<p>Still, I&#x27;d wait as long as I can to get out of something so simple as Heroku for _anything_. I understand it gets expensive quickly, but I really want to see the cost difference of Heroku vs the time spent for the engineering team to manage all the complexities of devops, automated deploys, scaling, and I&#x27;m not even mentioning all the data&#x2F;logging&#x2F;monitoring things that Heroku allows to add with 1 click.
评论 #18139344 未加载
评论 #18138891 未加载
评论 #18139170 未加载
评论 #18141578 未加载
评论 #18138652 未加载
评论 #18141450 未加载
nimbius超过 6 年前
I work as an engine mechanic full time, and im learning programming as a hobby. Kubernetes to me is like the shade-tree mechanic vs the professional.<p>Professional mechanics use high grade tools that can cost thousands of dollars each. We have laser alignment rigs, plasma cutters, computer controlled balancing and timing hardware, and high performance benchmarking hardware that can cost as much as the car you&#x27;re working on. We have a &quot;Kubernetes&quot; like setup because we service hundreds of cars a month.<p>The shade-tree mechanic wrenching on her fox body mustang on the other hand? her hand-me-down tool box and a good set of sockets will get her by with about 90% of what she wants to do on that car. she doesnt need to perform a manifold remap, so she doesnt need a gas fluid analyzer any better than her own two ears.<p>I should also clarify that these two models are NOT mutually exclusive. If i take home an old Chevy from work, I can absolutely work on it with my own set of tools. And if the shade-tree wants to turn her mustang into a professional race car, she can send it to a professional &quot;kubernetes&quot; type shop that will scale that car up proper.
评论 #18139583 未加载
评论 #18139651 未加载
评论 #18142760 未加载
评论 #18139702 未加载
评论 #18139604 未加载
评论 #18143579 未加载
评论 #18139565 未加载
vbsteven超过 6 年前
I&#x27;ve been thinking about setting up a small Kubernetes cluster for hosting some smaller client projects (read websites, shopping carts, API&#x27;s, admin panels).<p>My current setup uses a couple of Hetzner dedicated machines and services are deployed with ansible playbooks. The playbooks install and configure nginx, install the right version of ruby&#x2F;java&#x2F;php&#x2F;postgres, configure and start systemd services. These playbooks end up copied and slightly modified for each project, and sometimes they interfere with one another in sublte ways (different ruby versions, conflicting ports, etc)<p>With my future Kubernetes setup I would just package each project into its own self-contained container image, write a kubernetes deployment&#x2F;pod spec, update the ingress and I&#x27;m done.
评论 #18138511 未加载
评论 #18138764 未加载
评论 #18140334 未加载
评论 #18138830 未加载
评论 #18138919 未加载
评论 #18138416 未加载
评论 #18138873 未加载
whydoineedthis超过 6 年前
So basically, ignore 1&#x2F;2 of the reasonable problems that are solved in the first article and then look, no need to learn anything!!!<p>As someone whom can setup and run a kubernetes cluster in my sleep, I can tell you that it is a superb production ready platform that solves many real world problems.<p>That in mind, kubernetes has constraints also, like running networked elixer containers is possible, but not ideal from elixer&#x27;s perspective. Dealing with big data takes extra consideration. etc. etc.<p>All said, if you have an interest in DevOps&#x2F;Ops&#x2F;SysAdmin type technologies, learning Kubernetes is a fine way to spend your time. Once you have a few patterns under your belt, you are going to run way faster at moving your stack to production for real users to start using, and that has value.<p>I think the initial author (not this article, the other one) was just pointing out that you can indeed run kubernetes pretty cheap, and that is useful information and good introduction. This article is clickbait designed to mooch off of the others success.
评论 #18143567 未加载
pstadler超过 6 年前
&gt; Do you want to do all of this because you think is fun? Or because you want to learn the technology? or just because? Please, be my guest! [...]<p>Kubernetes is likely here to stay. If you&#x27;re interested in running a cluster to undestand what the hype is all about and to learn something new, you should do it. Also, ignore everybody telling you that this platform wasn&#x27;t meant for that.<p>Complexity is a weak argument. Once your cluster is running you just write a couple of manifests to deploy a project, versus: ssh into machine; useradd; mkdir; git clone; add virtual host to nginx; remember how certbot works; apt install whatever; systemctl enable whatever; pm2 start whatever.yml; auto-start project on reboot; configure logrotate; etc. Can this be automated? Sure, but I&#x27;d rather automate my cluster provisioning.
评论 #18139217 未加载
评论 #18139197 未加载
评论 #18140465 未加载
wheresvic1超过 6 年前
Totally agree with the author, for my side projects in Node.js, I use the following:<p>- pm2 for uptime (pm2 itself is setup as a systemd serivce, it&#x27;s really simple to do and pm2 can install itself as a systemd service)<p>- I create and tag a release using git<p>- on the production server, I have a little script that fetches the latest tag, wipes and does a fresh npm install and pm2 restart.<p>- nginx virtual host with ssl from letsencrypt (setting this stuff was a breeze given the amount of integration and documentation available online)<p>Ridiculously simple and I only pay for a single micro instance which I can use for multiple things including running my own email server and a git repo!<p>The only semi-problem that I have is that a release is not automagically deployed, I would have to write a git hook to run my deployment script but in a way I&#x27;m happy to do manual deployments as well to keep an eye on how it went :)
评论 #18139369 未加载
评论 #18139045 未加载
majewsky超过 6 年前
I looked into using Kubernetes for my personal servers, but I abandoned the idea when I saw that the minimal Kubernetes setup uses more compute resources than all the services [1] it&#x27;s supposed to manage combined (e.g. 0.5 GiB RAM vs. 0.25 GiB, which is substantial on a 1&#x2F;1 VM). And that&#x27;s before you consider that a single-server setup is not The Right Way (TM) in k8s land.<p>[1] Gitea (Github clone), Murmur (voice-chat server), Matrix Synapse (instant messaging), Prosody (XMPP), nginx (for those services and for various static websites)
评论 #18141272 未加载
AYBABTME超过 6 年前
Kubernetes is an operating system. Using it to run your software is as overkill today as running your own Linux server was overkill before that. Maybe you just need to run on Heroku and don&#x27;t need the complexity of writing systemd service files?<p>In the end, the steps you take to deploy with rsync and run your systemd service are the same (conceptually) you&#x27;d take to run on K8S, but translated to some YAML and a docker push. In one case you need to learn a new paradigm, in the other case you deal with something you already know. Not having to learn something new is an argument, but it doesn&#x27;t mean your bare-Linux approach is simpler than the K8S approach. You just know it more.
caymanjim超过 6 年前
Kubernetes is just one of many development ecosystem tools that solve real problems and, once you know them, make your life easier. The arguments in this article can apply to any development tool or practice.<p>Why separate your code into multiple files? Why write tests? Why use a code linter? Why use virtual environments? Why write a Makefile?<p>If you&#x27;re working on a small personal project, or you&#x27;re a newer developer learning the ropes, or the project is temporary, not important, doesn&#x27;t need to scale, etc. then it&#x27;s simply a matter of personal choice. It doesn&#x27;t make sense to get bogged down learning a lot of tools and processes if there&#x27;s no compelling business need and you&#x27;re just trying to get the job done.<p>If you already know how to use these tools, though, they usually make your life a whole lot easier. I learn how to use complex systems in my career, where they&#x27;re necessary and helpful. I apply these same tools and practices on my personal projects now, because once you know how to use something like Kubernetes, there&#x27;s little cost to it and many of the benefits still apply.
评论 #18142734 未加载
comboy超过 6 年前
In my opinion, the best technology for personal projects is the one that you don&#x27;t know yet. They are a great opportunity to play around stuff which really is the only way of learning something new.<p>Unless the personal project is something that you really care about, potential startup or something like that, then obviously you choose something that you are already proficient in because then it&#x27;s about getting stuff done and moving forward.<p>So while it may make sense to discuss what technology is good or bad for some kind of companies, I think we won&#x27;t arrive at any ultimate conclusion like &quot;X is good&#x2F;bad for personal projects&quot;.
giobox超过 6 年前
I agree that Kubernetes for personal projects is likely going to be totally overkill for many, but I disagree that containers themselves are overkill, which this author also suggests. These are arguably two separate issues entirely, and lumping them together is extremely misleading. I happily run all my (very small) side projects in containers without Kubernetes and it&#x27;s really pretty simple to do so.<p>As soon as this author mentioned he was happy with using Ansible, Systemd etc instead (which are all reasonable tools for what they are) he lost me - this is collectively much more work for me as the sole developer than a simple Docker container setup for virtually all web app projects in my experience. If you understand these relatively complex tools, you can likely learn Docker well enough in about an hour or two, the payoff in time savings in the future will make this time well spent.<p>In my experience &quot;Dockerising&quot; a web app is much, much less time consuming than trying to script it in Ansible (or Chef, Puppet, &lt;name your automation tool&gt;) and of course much less error prone too. I&#x27;ve yet to meet an Ansible setup that didn&#x27;t become brittle or require maintenance eventually. If you are using straight forward technologies (Ruby, Java, Node, Whatever) your Dockerfile is often just a handful of lines at most. You can even configure it as a &quot;service&quot; without having to bother with Systemd service definitions and the like at all.
评论 #18143770 未加载
评论 #18150342 未加载
codegladiator超过 6 年前
Frankly the article is filled with FUD and the author justifies everything with &quot;i think&#x2F;what if&#x2F;my way is fine for me&quot;.<p>You don&#x27;t need to run a new cluster for every project. You can deploy multiple projects in a single cluster. I was running close to 5 different projects in a single cluster, backed by about 3-6 machines (machines added&#x2F;removed on demand).<p>Kubernetes is basically like your own heroku. You can create namespaces for your projects. No scripts. You can deduce everything (how is a service deployed, whats the config, whats the arch) from the config files (yml)<p>&gt; Is a single Nginx virtual host more complex or expensive than deploying a Nginx daemon set and virtual host in Kubernetes? I don&#x27;t think so.<p>Yes it is. I wonder if the author has actually tried setting this themselves. I do realise i had similar opinions before I had worked with kubernetes, but after working with it, I cannot recommend it enough.<p>&gt; When you do a change in your Kubernetes cluster in 6 months, will you remember all the information you have today?<p>Yes, why does the author think otherwise ? Or if this is a real argument why does the author think their &quot;ansible&quot; setup would be at the top of the head. I had one instance where I had to bring a project back up on prod (it was a collection of 4 services + 2 databases not including the LB) after 6-8 months of keeping it &quot;down&quot;. Guess what, I just scaled the instances from 0 to 3, ssl is back, all services are back, everything is up and running.<p>This is not to say you wont have issues, I had plenty during the time i started trying it out. There is a learning curve and please do try out the ecosystem multiple times before thinking of using it in production.
评论 #18139267 未加载
reilly3000超过 6 年前
Warning to those who think Fargate is green pastures: it has its own learning curve. Also, it costs about ~1.8-2.5X the price of standard EC2 for the convenience. Don&#x27;t waste your money on it for long-running containers that will rarely need to scale.
评论 #18138395 未加载
markbnj超过 6 年前
This whole line of debate is really getting tiresome. Kubernetes has proven its value in production use cases across a wide variety of application domains. That doesn&#x27;t mean everybody should be using it, any more than the proven value of containers means that everyone should be deploying in them. I&#x27;ve been working with k8s for three years and run multiple production clusters, but if I had some little thing I might very well toss it up on a paas like app engine, or just install it on a free micro instance as the OP suggests. Or... maybe I would create a cluster and run it there. Point is kubernetes is an alternative that I can take advantage of where it makes sense because I&#x27;ve gotten some experience with it. It might make sense for you, it might not, but it&#x27;s not essential that all developers immediately come to agreement on whether or not all software projects should migrate to k8s by tomorrow.
评论 #18141244 未加载
fcgravalos超过 6 年前
I can&#x27;t agree more with the author ;).<p>I work in my day to day 100% and fully dedicated automating Kubernetes cluster lifecycle, maintaining them, monitoring them and creating tools around it. Kubernetes it&#x27;s a production-grade container orchestrator, it solves really difficult problems but it brings some challenges though. All of their components work distributed across the cluster, including network plugins, firewall policies, the control plane, etc. So be prepared to understand all of it.<p>Don&#x27;t get me wrong, I love Kubernetes and if you want to have some fun go for it, but don&#x27;t use the HA features as an excuse to do it.<p>But overall saying &quot;NO&quot; to rsync or ansible to deploy your small project just because it&#x27;s not fancy enough it sounds to me like &quot;Are you really going to the supermarket by car, when there are helicopters out there?&quot;<p>Great article!
isugimpy超过 6 年前
For random toy projects, spinning up a whole Kubernetes cluster is absolutely overkill (unless part of the project is learning Kubernetes). The thing is as you get further along, for some applications, it becomes harder and harder to move to a container-based design as you have to unwind all the weird dependency mappings. I&#x27;ve got an app I&#x27;ve been involved with containerizing for a client at work, and they&#x27;re dead set on sticking with an Ubuntu 14.04 base container, because they legitimately don&#x27;t know if it&#x27;ll even function on a more modern base, and don&#x27;t feel they can spare the development cycles to figure it out. Thing is, it started as a toy application, deployed to a server by manually SSHing in and doing a git pull from the repo (not even rsync!) and restarting all the services, and that&#x27;s still how it&#x27;s deployed in production today.<p>Containers (and thus Kubernetes) aren&#x27;t the magical solution to every problem in the world. But they help, and the earlier you can get to an automated, consistent build&#x2F;deploy process with anything that&#x27;ll actually serve real customers, the better off you are. Personally, I&#x27;d rather design with containers in mind from day one, because it&#x27;s what I&#x27;m comfortable with. There&#x27;s nothing wrong with deploying code as a serverless-style payload, or even running on a standalone VM, but you need to start planning for how something should work in the real world as early as you can reasonably.
评论 #18143992 未加载
stuaxo超过 6 年前
The point about complexity is exactly right.<p>Every new thing that you add, adds complexity. If that thing interfaces with another, then there is complexity at the interfaces of both.<p>Modern tools that atomise everything reduce density (and thus complexity), but people aren&#x27;t paying attention to the amount of abstractions they are adding and their cost.
pawurb超过 6 年前
Dokku works quite well for personal projects and is easy to get started with even without much dev ops exp <a href="https:&#x2F;&#x2F;pawelurbanek.com&#x2F;rails-heroku-dokku-migration" rel="nofollow">https:&#x2F;&#x2F;pawelurbanek.com&#x2F;rails-heroku-dokku-migration</a>
cs02rm0超过 6 年前
I don&#x27;t even want to use it for commercial projects.<p>It needs a certain scale before the overheads are worth it.
评论 #18140565 未加载
tomc1985超过 6 年前
Why is there always this foregone conclusion that everyone is going to do their hobby projects on AWS or GCP or paid cloud platforms? You can get fast baremetal servers off the gray market super cheap, pay once and you&#x27;re set.
评论 #18141635 未加载
throw2016超过 6 年前
Containers can be easy to use, once you drop devops. Containers are simple, a much more flexible alternative to VMs.<p>Unfortunately the devops community always wanted to promote themselves as the only option for containers and even though they were based on the LXC project they did not explain the technical decisions and tradeoffs made as they did not want users to think there are valid alternatives. And this is the source of fundamental confusion among users about containers.<p>Why are you using single process containers? This is a huge technical decision that is barely discussed, a non standard OS environment adds significant technical debt at the lowest point of your stack. Why are you using layers to build containers? Why not just use them as runtime? What are the tradeoffs of not using layers? What about storage? Can all users just wish away state and storage? Why are these important technical issues about devops and alternative approaches not discussed? Unless you can answer these questions you cannot make an informed choice.<p>There is a culture of obfuscation in devops. You are not merely using an Nginx reverse proxy or Haproxy but a &#x27;controller&#x27;, using networking or mounting a filesystem is now a &#x27;driver&#x27;. So most users end up trying Kubernetes or Docker and get stuck in the layers of complexity when they could benefit from something straightforward like LXC.
doppel超过 6 年前
I feel that Kubernetes has a lot of &quot;upfront&quot; cost that needs to be tackled - containerization, manifests for all the pods you want to set up, potentially setting up the right persistent storage if needed, user access, logging, etc. And this is still if you use a &quot;hosted&quot; solution with Amazon&#x2F;Google&#x2F;Microsoft, if you set it up yourself there is a ton more complexity.<p>Using something you are familiar with, even if it&#x27;s just a 10-line bash script, a simple virtual private server and the adding an nginx config there, is usually faster than having to orchestrate everything. If you want to invest the time in setting up Kubernetes for <i>all</i> your personal projects, it would probably make sense.<p>Basically, is it worth it? <a href="https:&#x2F;&#x2F;xkcd.com&#x2F;1205&#x2F;" rel="nofollow">https:&#x2F;&#x2F;xkcd.com&#x2F;1205&#x2F;</a>
marenkay超过 6 年前
You could also have told that it is a very complex system where one still just runs Bash scripts to solve exactly the same problems as on bare metal, VMs, etc.
评论 #18141468 未加载
mcs_超过 6 年前
I start using Kubernetes with gitlab months ago with the free account. Today i&#x27;m using it for a side project. I never used kubectl since then. the project is very simple but still it is split into 3 different repos (all connected to the same cluster). Even if the documentation is not clear about how to connect different repos to the same cluster, after a couple of hours i had to click some buttons in the gitlab interface and auto devops is enabled in 3 projects.<p>in office we do not work with docker, containers, cloud etc, we run legacy asp.net 2.0 on-premise without any kind of automation (just a couple of us coordinating the releases and copying and pasting into the customer Windows Server 2008).<p>Kubernetes for personal projects? In my case, after 10 years of on-premise deployments, VM Ware, SQL Clusters, web.config, IIS, ARR and the rest of the things related, YES!<p>I absolutely want 3 hosts for less then 100$, a gitlab account for 4$, a free account in cloudflare, code and deploy.
评论 #18148413 未加载
tracker1超过 6 年前
I would say to the author that for most small&#x2F;personal projects that dokku is probably about as extreme as you want&#x2F;need. Use Docker for (Windows|Mac|Linux) locally as needed, and use dokku for your deploy target. A $40 DO&#x2F;Linode vm will go a long way for small scale. I&#x27;ve even setup round-robin load balanced deployments, where the app just deploys to two hosts with the exact same config. Works great on smaller things.<p>Of course, if you&#x27;re in a workplace on a project likely to see more than a few hundred simultaneous users in a given application, definitely look at what K8s offers.<p>Edit: as to deploys, get CI&#x2F;CD working from your source code repository. GitLab, Azure DevOps (formerly VSTS), CircleCI, Travis and so many others are free to very affordable for this. Take the couple hours to get this working, and when you want to update, just update your source repo in the correct branch.
thrower123超过 6 年前
Having to worry about redundancy and scaling out on a one-man personal project is a very enviable problem to have. Personally, I&#x27;m just going to stick with some kind of paas that gives me a managed IIS or Apache type webserver that I don&#x27;t have to frig with, and focus my energies on actually building the project.
tiangolo超过 6 年前
I don&#x27;t get why Docker Swarm mode is so underrated. Docker Compose is excellent for local development, and Docker Swarm mode uses the same file and is almost the same thing. Some minor additions in extra docker-compose files and it&#x27;s ready for production in a cluster. For the same $5 bucks in a full Linux VPS with Linode or DigitalOcean (or even the free tier in Google Cloud) you can get a full cluster, starting with a single node, including automatic HTTPS certificates, etc. Here&#x27;s my quick guide, with a Linux from scratch to a prod server in about 20 min. Including full-stack app: <a href="https:&#x2F;&#x2F;github.com&#x2F;tiangolo&#x2F;full-stack&#x2F;blob&#x2F;master&#x2F;docker-swarm-cluster-deploy.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tiangolo&#x2F;full-stack&#x2F;blob&#x2F;master&#x2F;docker-sw...</a>
djhworld超过 6 年前
What are people classing as personal projects here? I have a bunch of raspberry pi&#x27;s running docker that I throw some things on to run, and have some custom scripts to pull a new image and restart the container when I want to do an update.<p>But they&#x27;re tiny, tiny things that are very personal (i.e. they have 1 user - me)<p>If you&#x27;re getitng to the point where you need to scale things using a kubernetes cluster or whatever it seems to me like that thing has graduated from &quot;personal project&quot; to an actual product that needs the features of kubernetes like reslience and so on.<p>I mean, I&#x27;d love the idea of having a kubernetes cluster to throw some things onto but I really don&#x27;t have the patience to set it all up right now, it seems way too much cost and effort
hosh超过 6 年前
I have deployed by hand, with Capistrano, with Chef, with Heroku, with systemd, with Docker, with AWS EC2, and with Kubernetes.<p>Like everything, there are tradeoffs. If there were a fairly easy way to do a one-node Kubernetes setup (say, Minikube), I would probably just go that route. One doesn&#x27;t have to use the full feature set of Kubernetes to get one or two things that are advantageous.<p>As it is, I setup Minikube for the dev machines for the team I am on. I might consider Kubernetes for my personal side project if I knew Minikube would do well for machines under 1 GB of memory (it doesn&#x27;t really).<p>The pre-emptible VMs that cost less than $5 is interesting, and I might do something like that.
strzibny超过 6 年前
Good response. I agree with the intent of the article. For one I have a project where I just use Bash to set everything up (no containers what so ever). It&#x27;s simple and convenient. I have it set up with Let&#x27;s Encrypt, SELinux and git push deploy. The whole script is maybe like 100 lines of Bash + 2 configs (nginx and SELinux policy module).<p>For anybody who is interested in understanding this basic building blocks I decided to write <a href="https:&#x2F;&#x2F;vpsformakers.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;vpsformakers.com&#x2F;</a>.
kujaomega超过 6 年前
I read the article. I&#x27;m sorry, but my impression about it is the following: Why use Kubernetes in your personal projects when you have got no idea about it?. One think I have experimented after working with Docker for two years, is that once you know it, you will put every service inside a docker. It only takes 5 minutes to do it and the benefits are huge. Kubernetes might be an overkill, but containerize the apps is another thing.
beat超过 6 年前
Back when I was trying to do a startup full-time, I avoided Kubernetes because of the steep learning curve. Now that I&#x27;m back to being a regular employee, I&#x27;ve learned Kubernetes out of necessity, and it&#x27;s great. So if I go back to working on the startup, I&#x27;ll do it on Kubernetes, because it will save me time and ops grief. But it will save time and grief <i>because</i> I already know it now.
jitl超过 6 年前
I’m itching to replace my home server’s FreeBSD with Linux and Kubernetes. I use it (&amp; build dev tools for others) at work plenty so for me, the learning curve is in the past. I’m not sure if I would recommend this journey for others, but I also wouldn’t recommend FreeBSD to anyone, either. In both cases, you know what you’re getting in to - something complex, opinionated, powerful, and industrial strength.
评论 #18138787 未加载
评论 #18138714 未加载
chilicuil超过 6 年前
I agree with the idea the post is trying to do but not with the justifications, I think it&#x27;s wrong to compare Kubernetes vs rsync or ansible, it resolves a different problem, container cluster management, a more appropriate comparison would had been to compare with simpler solutions in the same domain, such as docker swarm or nomad.
评论 #18141160 未加载
评论 #18141312 未加载
z3超过 6 年前
kubernetes has more advantages than pure horizontal scaling capacity. there are services, secrets, networking etc, which are useful for small size projects at the same way as big ones. I agree that it can be over kill, but I would not throw away whole kubernetes only for assumptions base on the size of the projects.
gant超过 6 年前
I am sort of a kubernetes person at work, and I just wasted 3 hours trying to get a cluster up with Rancher. Everything worked fine, except somehow the network started isolating namespaces and the nginx ingress couldn&#x27;t reach my service.<p>So I&#x27;m calling it quits for now. Just running the cluster requires a small ops team.
dropmann超过 6 年前
For me also the overhead played a big role, to just get a bare kubernetes cluster you already need 3 nodes + 1-2 load balancers.<p>In case you are using GKE, you actually need two ingresses to support IPv6 + IPv4<p>This adds up to like 10 times the cost of an single droplet. For personal projects this seems kind of wasteful to me.
lazyant超过 6 年前
He makes some valid points but I think if you want to write a blog entry about why &quot;B&quot; is not good for a case and you rather use &quot;A&quot; (that you already know), then you should at least try &quot;B&quot; technology; it doesn&#x27;t seem the author has even tried k8s.
wwarner超过 6 年前
I absolutely love docker for development. It saves so much set up time, and of course is handy later.
hardwaresofton超过 6 年前
If you can devote some time and learn the underpinnings, Kubernetes is great for personal projects. I personally use it for 1 business website, 1 blog, 2 3 tier applications (backs are SQLite though) and 1 3-tier client project. Where kubernetes shines is that that it handles most things in a principled, and self-consistent manner -- once you&#x27;ve made your way up the learning curve, you can think <i>in terms</i> of kubernetes without having many hiccups.<p>I&#x27;d argue that a lot of the complexity people find in Kubernetes is <i>essential</i> when you consider what it takes to run an application in any kind of robust manner. Take the simplest example -- reverse proxying to an instance of an application, a process (containerized or not) that&#x27;s bound to a local port on the machine. If you want to edit your nginx config manually to add new upstreams when you deploy another process, then reload nginx be my guest. If you find and setup tooling that helps you do this by integrating with nginx directly or your app runtime that&#x27;s even better. Kubernetes solves this problem once and for all consistently for a large amount of cases, regardless of whether you use haproxy, nginx, traefik, or whatever else for your &quot;Ingress Controller&quot;. In Kubernetes, you push the state you want your world to be in to the control plane, and it makes it so or tells you why not.<p>Of course, the cases where Kubernetes might not make sense are many:<p>- Still learning&#x2F;into doing very manual server management (i.e. systemd, process management, user management) -- ansible is the better pick here<p>- Not using containerization (you really kinda should be at this point, if you read past the hype train there&#x27;s valuable tech&#x2F;concepts below)<p>- Not interested in packaged solutions for the issues that kubernetes solves in a principled way that you could solve relatively quickly&#x2F;well adhoc.<p>- Launching&#x2F;planning on launching a relatively small amount of services<p>- Are running on a relatively small machine (I have a slightly beefy dedicated server, so I&#x27;m interested in efficiently running lots of things).<p>A lower-risk&#x2F;simpler solution for personal projects might be something like Dokku[0], or Flynn[1]. In the containerized route, there&#x27;s Docker Swarm[2] +&#x2F;- Compose[3].<p>Here&#x27;s an example -- I lightly&#x2F;lazily run <a href="https:&#x2F;&#x2F;techjobs.tokyo" rel="nofollow">https:&#x2F;&#x2F;techjobs.tokyo</a> (which is deployed on my single-node k8s cluster), and this past weekend I put up <a href="https:&#x2F;&#x2F;techjobs.osaka" rel="nofollow">https:&#x2F;&#x2F;techjobs.osaka</a>. The application itself was generically written so all I had to do for the most part was swap out files (for the front page) and environment variables -- this meant that deploying a completely separate 3-tier application (to be fair the backend is SQLite), only consisted of messing with YAML files. This is possible in other setups, but the number of files and things with inconsistent&#x2F;different&#x2F;incoherent APIs you need to navigate is large -- systemd, nginx, certbot, docker (instances of the backend&#x2F;frontend). Kubernetes simplified deploying this additional almost identical application in a robust manner massively for me. After making the resources, bits of kubernetes got around to making sure things could run right, scale if necessary, retrieve TLS certificates, etc -- all of this is possible to set up manually on a server but I&#x27;m also in a weird spot where it&#x27;s something I probably won&#x27;t do very often (making a whole new region for an existing webapp), so maybe it wouldn&#x27;t be a good idea to write a super generic ansible script (assuming I was automating the deployment but not with kubernetes).<p>Of course, Kubernetes is not without it&#x27;s warts -- I have more than once found myself in a corner off the beaten path thoroughly confused about what was happening and sometimes it took days to fix, but that&#x27;s mostly because of my penchant to use relatively new&#x2F;young&#x2F;burgeoning technology (for example kube-router recently instead of canal for routing), and lack of business-value to my projects (if my blog goes down for a day, I don&#x27;t really mind).<p>[0]: <a href="http:&#x2F;&#x2F;dokku.viewdocs.io&#x2F;dokku" rel="nofollow">http:&#x2F;&#x2F;dokku.viewdocs.io&#x2F;dokku</a><p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;flynn&#x2F;flynn&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;flynn&#x2F;flynn&#x2F;</a><p>[2]: <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;swarm&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;swarm&#x2F;</a><p>[3]: <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;compose&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;compose&#x2F;</a>
billylindeman超过 6 年前
This seems like a grumpy and lame rationalization of not wanting to learn something new
jeremychone超过 6 年前
yes, there is a learning curve, but once you have your system in place (for local Kuberenetes Development as well as deployment), then, even of a web-sites, it is a breeze. But yes, still need to be organized.
barbecue_sauce超过 6 年前
What about using Kubernetes to manage several personal projects simultaneously? Different namespaces, but with a single point of administration.
michaelmior超过 6 年前
&gt; Of course, they won&#x27;t work for <i>any</i> project.<p>I assume &quot;any&quot; should be &quot;every&quot;?
评论 #18143660 未加载
mychael超过 6 年前
Thank you for writing this. We&#x27;ve reached peak Kubernetes fanboyism.
adamc超过 6 年前
Minor word nit: &quot;alright&quot; is not a word. Or shouldn&#x27;t be. It&#x27;s not &quot;all right&quot;.
amthna超过 6 年前
kubernetes for some, miniature american flags for others.
Annatar超过 6 年前
&quot;I think the point I&#x27;m trying to make is: do you actually need all of this?&quot;<p>Yep! For any thing which goes beyond the initial viability test, I make an OS package. SmartOS has SMF, so integrating automatic startup&#x2F;shutdown is as easy as delivering a single SMF manifest, and running svccfg import in the package postinstall. For the configuration, I just make another package which delivers it, edits it dynamically and automatically in postinstall if required, and calls svcadm refresh svc:&#x2F;&#x2F;...<p>it&#x27;s easy. It&#x27;s fast. The OS knows about all my files. I can easily remove it or upgrade it. It&#x27;s clean. When I&#x27;m done, I make another ZFS image for imgadm(1M) to consume and Bob&#x27;s my uncle.
Annatar超过 6 年前
&quot;Oh man, the original article went way over the author&#x27;s head.&quot;<p>No, the author of the Kubernetes article completely, so utterly missed the point that it&#x27;s not even funny: none of those Kubernetes complications are necessary if one runs SmartOS and optionally, as a bonus, Triton.<p>Since doing something the harder and more complicated way for the same effect is irrational, which presumably the author of the Kubernetes article isn&#x27;t, I&#x27;m compelled to presume that he just didn&#x27;t know about SmartOS and Triton, or that the person is just interested in boosting their resume rather than researching what the most robust and simplest technology is. If resume boosting with Kubernetes is their goal then their course of action makes sense, but the company where they work won&#x27;t get the highest reliability and lowest complexity that they could get. So good for them, suboptimal for their (potential) employer. And that&#x27;s also a concern, moreover, it&#x27;s a highly professional one. I&#x27;m looking through the employer&#x27;s eyes on this, but then again, I really like sleeping through entire nights without an incident. A simple and robust architecture is a big part of that. Resume boosting isn&#x27;t.
评论 #18141317 未加载
评论 #18139623 未加载
评论 #18139192 未加载