Live data from Hacker News

Kubernetes for personal projects? No thanks

carlosrdrz.es

111–120 of 278 posts

Re: Kubernetes for personal projects? No thanks

#111

Earlier quoted context omitted.

This doesn't make sense, and it's really the opposite of what you're saying. K8s is hard, but for large scale you need something robust that's tested at that scale. A collection of shell scripts is more like a beginner tool set. Yes, it's easy to learn, but it will break when you get serious.

For large scale you have to first make your application capable of scaling. That's a bit that's missing from most of these conversations. Only the simplest programs can "scale up" by just adding more programs - most have to be re-architected to move all the state in the program to some other service. That is to say, if scaling is your primary concern, you have a dozen other things more important to fix than your choi…

I think you mean "scale out" [1]? These days, it shouldn't really require a rearchitecting of a system. Almost all modern web frameworks are designed to be stateless anyway, externalizing ownership of state to databases and other services (themselves stateless APIs to databases).

[1] https://en.wikipedia.org/wiki/Scalability#Horizontal_and_ver...

Re: Kubernetes for personal projects? No thanks

#112
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't mean everybody should be using it, any more than the proven value of containers means that everyone should be deploying in them. I'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've gotten some experience with it. It might make sense for you, it might not, but it's not essential that all developers immediately come to agreement on whether or not all software projects should migrate to k8s by tomorrow.

Re: Kubernetes for personal projects? No thanks

#113
post #95

Earlier quoted context omitted.

There’s been a bit of a full circle going on in the industry. PaaS like Heroku were rejected by many because they couldn’t tinker inside the box. Docker and Kubernetes changes that, and there will be new Heroku-like experiences built on them. But for now we are in this weird mode where the Kubernetes momentum is eclipsing even Docker, even though raw K8s reminds me of Linux in the Slackware days. there is so much FOM…

As someone that knew how to set up a server before hand I found Heroku a real pain in the arse to use.

To learn, or to utilize on an ongoing basis? I'm curious what you found difficult, because since remapping my mind to 12-factor years ago, I still haven't found anything as simple as just using Heroku.

Re: Kubernetes for personal projects? No thanks

#114
post #5

I totally agree with this article. I'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. 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 d…

Did you try preconfigured Dokku images on Digital Ocean?

I've heard of Dokku as a "run your own Heroku" solution. Is there a good guide for this combo?

Re: Kubernetes for personal projects? No thanks

#115

Earlier quoted context omitted.

Ok, great... I have a bunch of simple projects like that, one web instance running on a single host. How do I safely upgrade it without downtime? Ensuring that the new version starts up properly and can receive traffic before sending it requests and stopping the old one? With k8s: kubectl set image deployment/my-deployment mycontainer=myimage:1.9.1 (or just use kubectl apply -f) With your nginx config: ????

That moves the goalposts a bit. We've gone from a simple service to a fleet of highly available services on multiple hosts with zero downtime requirements. At which point, sure, use Kubernetes.

No.. I didn't move the goalposts at all.

Still A single service on a single machine, how do I safely upgrade it?

A rolling deployment in k8s does work the same way on a single host with minikube as it does on a 1000 node cluster, but I'm still just asking about the single host case.

Re: Kubernetes for personal projects? No thanks

#116

Earlier quoted context omitted.

"Don't waste your time, he's a troll that pops up on every thread that has anything to do with things like docker or k8s." Thank you for an off-topic opinion. Yes, I do "pop up" on every Kubernetes and Docker topic because both are nothing but hype and bullshit (this topic with "no thanks" is a rare exception, and I wholeheartedly agree with the author of it, even though I vehemently disagree with some of his methods…

> he doesn't have the slightest clue what k8s does, but is completely certain that smartos somehow does "the same thing" better. I stand by this statement. You don't have any idea what k8s does. If you actually cared about convincing people that you don't need k8s and smartos is better, you'd write your own article describing in detail how you can easily use smartos for running personal projects on a 3 node cluster.…

"If you actually cared about convincing people that you don't need k8s and smartos is better, you'd write your own article describing in detail how you can easily use smartos for running personal projects on a 3 node cluster."

How about you read the documentation, where it's already documented? You know, that thing called manual pages? On illumos-based operating systems we have manual pages which are actually useful. With detailed examples in the EXAMPLES section! And lots of them! So, how about you "warm up the chair" and read some docs for a change? Thanks. If you need some pointers, I can help you where to start.

"Put up or shut up."

You or anyone else may not tell me what to do, nor will I listen to you unless I feel like it. Which I don't.

Re: Kubernetes for personal projects? No thanks

#117
post #75

Earlier quoted context omitted.

i set up a kubernetes cluster 1 year ago at work and a private one last weekend. last year took, i think 2 days. my private one was up and running within ~1h, including writing the ansible role to first install binaries/dependencies and join the cluster as a worker node. either you didn't use kubeadm to set it up or ... i have no idea how you could've possibly failed. its pretty much (all) ${packagemanager} install d…

Jeff Geerling even wrote an Ansible role to do all of the heavy lifting for you. I've used it alongside vagrant to spin up a three node cluster in ~15 minutes. https://github.com/geerlingguy/ansible-role-kubernetes

He's written so many useful and maintained ansible roles.

Re: Kubernetes for personal projects? No thanks

#118
post #77
post #49

Earlier quoted context omitted.

> using it for anything less than dozens of machines is overkill The question isn't really whether you need dozens of machines, it's whether you can foresee eventually maybe needing dozens of machines. Remember the bad old days when people said that relational databases were worthless because they "don't scale", that using Mongo and other NoSQL databases were practically a necessity for doing anything modern and "web…

> A lot of engineers have this tendency to worry about scalability long before it's ever a problem. "Premature optimization is the root of all evil" -- Donald Knuth Translating the old suggestions [1] to the realm of devops, I think the point really is: if you are fairly certain that your optimization (k8, docker and so on) will result in "better" code and practices right away , then you should do it. If not, you sho…

100% agreed. If a dev thinks they might want to put something in Kubernetes eventually, there are a few best practices that they could adopt early on to make that easy. But basic hygiene aside, the should wait.

The number of projects that might scale up is much, much smaller than the number of projects that do. If I actually want my project to serve a zillion users, the right place for me to focus my effort is not on Kubernetes, but on user context interviews, user tests, and fast iteration based on the results of experiments.

Re: Kubernetes for personal projects? No thanks

#119
post #95

Earlier quoted context omitted.

As someone that knew how to set up a server before hand I found Heroku a real pain in the arse to use.

To learn, or to utilize on an ongoing basis? I'm curious what you found difficult, because since remapping my mind to 12-factor years ago, I still haven't found anything as simple as just using Heroku.

I only used it once or twice, so to learn.

Every time I have had an EC2, Rackspace equivalent or other server I knew what I was doing and other than what felt like some minor stuff. I guess its kind of related to the comment that people didn't like not being able to tinker with the box. (It kind of felt like a black box to me, far more difficult to debug than a "normal" server).

Re: Kubernetes for personal projects? No thanks

#120
post #24

"Oh man, the original article went way over the author's head." No, the author of the Kubernetes article completely, so utterly missed the point that it's not even funny: none of those Kubernetes complications are necessary if one runs SmartOS and optionally, as a bonus, Triton. Since doing something the harder and more complicated way for the same effect is irrational, which presumably the author of the Kubernetes a…

If you go to joyent.com you'll see "Multi-Cloud Kubernetes" is on their homepage above the fold and listed in their products & services category. SmartOS is an operating system. Triton is a data center for running container instances. Kubernetes is a container orchestration tool. These are all solving separate problems...

Triton can orchestrate containers[1] (they're actually Solaris zones[2], to which constraints in terms of project definitions[3] can optionally be applied, and those constraints are actually containers).

[1] https://www.joyent.com/content/11-containerpilot/chart.15076..., https://docs.joyent.com/private-cloud

[2] http://illumos.org/man/1M/zonecfg

[3] http://illumos.org/man/1M/projadd

Post reply on HN