263 points · by wallflower · 4y ago · 143 comments
Here's a better sketch for the story. It starts with Ruby, itself a game-changing language, that inspired a new culture of developer-centric best practices like Rspec's TDD and Bundler's lockfiles.
Ruby made the first PaaS possible, Heroku (a YC startup), which itself inspired a whole new way of thinking about software. I don't think enough people realise just how influential Heroku's 12 Factor App manifesto[1] was, in fact I'd argue it's the real hero in this whole story. The 12 Factors are just text, it's not even software or hard and fast requirements, they're merely best practices for the entire experience of writing, collaborating, testing, deploying, scaling and maintaining software. The 12 Factors aren't just about pushing your app on Kubernetes or whatever, they're just as much, if not more so, ideas that make _you_ a better engineer. Heroku made money for sure, but they did something beyond money, they upped the level of our craft as a whole.
The central concept in Heroku is the dyno. If you follow the 12 Factors, then you magically get almost infinitely scalable dynos. It plays right into the heart of the new gold rush world of startups, where anybody can have an app idea and leverage the global marketplace with the abstractions of datacentres and the cloud.
Docker is the open source dyno.
So many PaaS projects apart from Kubernetes have risen and fallen around Docker. Deis, Flynn, Dokku, Swarm, to name but a few. So many of the core concepts of Kubernetes were innovated and explored, and arguably mastered, before Kubernetes came on the scene. Kubernetes is a success not because of its innovation, but because it's backed by The Rich Kid. The world was already heading in this direction, Google just threw big numbers at it to make sure they took the biggest piece of the pie.
It's about efficient use of multiple machines, or as Google & ex-Google employees called it in a book released at similar time as Heroku went from private beta to GA, "Datacenter as a Computer".
12 factors were important, but they just as well can apply to noncontainerised software (arguably, they are just as valid in the ~2000 world of EJB java servers, except replace "environment variables" and the like with JNDI).
That said, Rails exploding in popularity around the same time as EC2 became an option heavily helped push the generic case out of the hell of PHP with occasional CGI (ASP usually meant you had more resources than shared hosting from hell)
Of course the technical lineage of Kubernetes is Borg and parents (which I admit I've never heard of), but I put it to HN that Kubernetes' lineage is not what created the market fit. In fact I think it's disingenuous of the documentary to imply that (in fairness it does give time to Docker), hence why I'm so keen to give my version of events.
Your point about how The 12 Factors apply just as well to non-containerised software is exactly the beauty of them! The 12 Factors don't come from management, they're not an attempt (at least directly) to capture profit from a market. They are somehow fundamental axioms about writing software in this current era, they're maybe even self-evident, universal truths. It turns out that there is a fundamental connection between the ability for a piece of software to be efficiently scaled and for that piece of software to be collaborated on. 2 or more developer machines share essential characteristics with 2 or more scaled containers, which share requirements with 2 or more CI instances ― reproducibility, behaviour guaranteed by tests, ease of downloading, security, configurability through ENV.
You see how we felt like Heroku understood us the humble developer, it made us DevOps, all whilst helping us satisfy the bottom line of managers? Kubernetes is truly an extraordinary piece of software, but it hasn't, nor do I believe it ever will, achieve anything of The 12 Factors' lasting legacy.
What my point is that while Heroku might be a very applicable relation to some, it's very explicitly a Platform as a Service, in a way pushing a bit back towards the model that we were escaping from (by invoking Rails name) in mid-2000 to cheap full-OS machines, from the confines "PaaSsy" LAMP.
Kubernetes didn't capture a zeitgeist by introducing any of the features (though it definitely pushed containers up into enterprise world a lot). It was in no way first, or even second, despite coming from home of linux containers. It doesn't even force you to use 12 factors - I should know something about it, having done what many called stupid, as in I did "lift and shift" of over 60 "classical" applications that in no way fit 12 factors onto it.
Now, trodding a bit further away from concrete facts and into more a world of personal opinion...
Kubernetes captured the zeitgeist by working. There was immense desire across all kinds of business, developments, etc. for something that fit nebulous label of "private cloud". Often with local deployments involved. And to do it cheaper (or at least, easier to automate) than existing "heavy" virtualisation stacks. Not everyone could use at all, or just burn money on AWS, many VPS providers were more like classic VMware virtualization clusters in experience. Some had money to burn on Heroku and actually fit running on it (or were lucky to fit in the cheap band of usage).
Thus you had OpenStack and the dwarfs: CloudStack, Eucalyptus, OpenNebula, Ganeti, with more adventurous ones building on Mesos or fully custom.
All tackling the problem of, essentially, providing simpler and faster (in turnaround time) way of handling users access to resources.
The most moneyed and successful (at least from pov of Ops) was OpenStack. And it was a hot mess. Upgrading an openstack cluster was a meme, and not a nice one. Meanwhile containers gain steam, for good or bad, and people start to move from moving from the quite bad "single app VM instances", to containerised approach (12 factors already hit harder due to the single-app VM approach popularised by AWS ASGs coupled with cloud-init).
Into this enters kubernetes. Yes, it might seem hard to setup - but it's no OpenStack, it brings no licensing purchasing mess of VMware, it initially kills one of the more annoying aspects (though it will return) which is the overlay networking. It brings unified API, simple operating model (wish I kept the old 1.0-1.4 presentations on hand that went bottom up!). We can deploy stateless services in somewhat sensible way (and if you know how, they can be stateful too). The saner internal design and API commonality can be arguably compared to the effect of the original "heroku" command that allowed you to just deploy from a git repo - just from the point of Ops team.
By next year, we move from simple ReplicationController to ReplicaSets + Deployments, as well as gaining Ingress beta and first rush of "pluggable" componentry in the form of Ingress Controllers. It's arguably the time where you can start dealing with K8s as simplistic replacement for Heroku - except it's not some closed magic operated by the Wizard of Oz, but something you can deploy on bunch of Raspberry Pi in middle of presentation at a conference after suffering a long trip (we even forgot, iirc, to bring our planned kube-master machine and had to improvise). Early versions of TPRs (priors of CRDs) make me give what were probably some of the first talks about operators (before CoreOS people coined the term) - but I used the same terminology as K8s used (Controllers).
By 2017, the recommended way to deploy openstack starts to be "deploy openstack on top of k8s", and DC/OS starts to visibly lose. K8s makes certain things forced upon you, but you find that it doesn't matter and tends to make sense (Pods having one IP, etc.). Secondary/Tertiary adoption follows, bad memes start about kubernetes (like you only need it for scale, that it's cloud specific, etc. etc.) but it doesn't really matter. Soon, operators start flowing in, thanks to simplicity of the API model (this evolves later to things like Crossplane and even separating kube-apiserver into standalone program, to run without rest of k8s). K8s manifests might feel like JCL, but you don't care because of how bloody more complex the same things used to be before.
Heroku might have provided easy way to deploy constrained application for a developer, but, at least in my experience, k8s became the lever with which I could move a lot of servers with little effort, whether to run large batch jobs, complex meshes of microservices, CI build jobs, or build a heroku-style PaaS. As developers learnt to follo 12 factors, the job became easier.
P.S. Funnily enough, probably because accidents of history kept me on the Ops side, but IME kubernetes adoption always had push from the sysadmin side, not necessarily developer side.
P.P.S. As nice as Heroku is, there's a reason why it's my main example of burning money, especially contrasting how it's billed as "cheaper than paying for an Ops engineer". In the world of global pricing, what works as cheap in Silicon Valley is... not cheap in most of the world.
P.P.P.S This kinda went ranty, I guess I should maybe write a blog post on this perspective...
While the entire comment could be contradicted, a quick example is that google’s SRE book details much more developer strategies, including from a massive scale and enterprise perspective, than 12 factor web app. This book was assembled but industry experts with experience from Borg, with borg emerging from the global work queue — decades before heroku existed.
I would argue that's precisely the problem. Google are clearly capable of doing complex things, but inspiring and nurturing an entire cultural shift is a different category of "complexity", which in the story of Paas, Google did not achieve, they merely exploited it.
I think you're arguing that that's a bad thing. But it's a thing that very much did happen, because kubernetes is successful.
The pattern that you see often with PaaS is that they work great until they don’t. When you want to do something that doesn’t fit the patterns that the PaaS was built for you are out of luck and pretty much have to drop down to VMs.
We aimed to have k8s be something that was in the middle. Generic enough to work with a large number of workloads while providing significant advantages above raw VMs (and a level of consistency across infra providers).
The tradeoff is that it is more complicated than the typical PaaS. That is the tradeoff. The goal then was to build kubernetes to be built upon. We never claimed to be solving the whole problem in one system.
This is similar, in some ways, to the design of Mesos. But to do something new with Mesos requires an entirely different “framework” that exposes its own API. You see this with things like Marathon or Aurora or Chronos. While the underlying scheduler was shared across these there was no common API and so it was difficult for users to mix/match across these.
By focusing on a consistent IaaS-ish API for k8s (and eventually, with CRDs, building extension mechanisms) we aimed to create an ecosystem of things building on k8s.
Whereas PaaS are often a framework where you put your code in and a lot of decisions were made for you, I always viewed k8s as a toolkit where you get a lot of powertools that you can use in various ways. It is a very different philosophy.
12 factor and Docker obviously play a big part of this. And those built on experience and systems that came before them. We are all standing on the shoulders of those that came before us.
For me, this API design experience was informed by my time at Microsoft. Things like VB and IE/web were very much, at that time a framework (the web is turning into a toolkit over time now). I saw, multiple times, how those things were super useful but were limited. Things like the CLR and the C# ecosystem evolved the VB model to be much more of a toolkit.
We see this also in the Java world. I’m not an expert there, but the move from app servers to things like Spring Boot also show the shift from framework to toolkit.
AWS itself is a toolkit. And IMO, the difference between something like lambda/faas and a PaaS is that lambda/faas only works when it is in context of the larger toolkit that is IaaS cloud.
(I’m one of the founders of k8s and ended up with quite a bit of screen time in the documentary. My only regret is that more people that were so important in the k8s community couldn’t be featured!)
I actually wrote my own complete PaaS from scratch once[1], and contributed to a number of other PaaS projects. I totally agree that PaaS projects work great until they don't. The reality is that a PaaS has to also be a Iaas, and yes Kubernetes really hits that middle ground. Thank you so much for your part in that.
Having ridden the heyday of Java application servers, I see Kubernetes as LanguageAgnosticEE, just way more complex than dealing with WebSphere or WebLogic ever was.
> My only regret is that more people that were so important in the k8s community couldn’t be featured!
Would you like to list some of those individuals here? Perhaps they have homepages/blogs we can check out?
I very much enjoy it and I'm glad whether I see someone mention it or I can spread and teach its wisdom.
This is absolutely true, you can build a well factored app with intent to run it on 1 server. I would say it's very much worth it because adhering to these best practices will not only make maintenance of your app easier but it'll make things SO much easier to move from 1 server to multiple servers later on if you need to where "servers" in this case could be a Kubernetes cluster, Heroku or anything in between.
If anyone is curious I recently put out a 90 minute ad-free video going over how to create a 12 factor app with a Dockerized app at https://nickjanetakis.com/blog/creating-a-twelve-factor-app-.... It goes over the whole original 12 factor guide from start to finish and applies it to a code base.
Even now 10+ years after the 12 factor guide was originally released it still very much applies today because the guidelines transcend technology.
I remember reading this guide so many years ago and thinking "yep, this is it, they nailed it". So much goodness has come out of the Ruby community, especially around the idea of creating high quality services and tools built from really successful applications. In this case, the 12 factor guide is an extraction of best practices after running hundreds of thousands of apps on Heroku and Rails is an extraction of building Basecamp.
Moreover, Kubernetes and Heroku aren't even in the same class of tools. Kubernetes is an orchestrator for containers, which obviously can be used as the foundation for a PaaS, but Kubernetes isn't itself a PaaS even when you consider the various managed Kubernetes offerings which include some higher level abstractions built atop Kubernetes primitives.
Further still, it's not like Google marketed Kubernetes to any significant degree prior to its own adoption of Kubernetes as its official container orchestration offering for its cloud (which was after the writing had been on the wall for a while that Kubernetes would become the de facto container orchestrator).
TL;DR: Just because other tools and technologies predated Kubernetes didn't imply that it was significantly impacted by them.
I think it's fairer to say that Google _repurposed_ Borg, in order not to be left out of the changing landscape. Borg may be the technical predecessor to Kubernetes, but my point is that Borg is very much not the spiritual ancestor of the new containerised paradigm.
(This is describing a book that would be interesting to read).
Chapter 1 - Cobol on the Mainframe
A description of how the world's financial infrastructure ran on mainframes from the 1970s onward.
Chapter 2 - The rise of the Internet
A quick description of the take off the internet and how companies would scale on the internet. Ops teams of hundreds and Solaris machines in data centers.
Chapter 3 - Containerization, Virtualisation and Separation of process/progams
The technological routes of virtualisation and containerisation, from the Mainframe to jails to containers.
Chapter 4 - Scaling by the majors
A description of Google, Microsoft, Yahoo and others scaled their own operations in the early 2000s.
Chapter 5 - Selling Scale
Heroku and then the birth of AWS.
Chapter 6 - Everyone in the Cloud
The growth of Cloud Computing with AWS, Azure, GCP, OCP, Hetzner, Digital Ocean etc, etc.
And, ya know, invented cgroups and everything.
I knew app engine and other things for much longer.
I would not subscribe to your interpretation.
The next paradigm is composability and simplification. I should be able to define an application, its configuration, what it needs to talk to, and level of desired spend for which availability/performance SLO and it should mostly just work. Security should just work and each perimeter is automatically configured - without managing separate configuration for admin APIs, end user auth, peer auth, k8 network policies, firewall policies, etc. I shouldn't have to care about runtime - GKE vs Cloud Run vs Lambda or optimizing Node shapes or whatever new product launched yesterday. If I push a production change there should be a consistent way of simulating, canarying, and slowing rolling that change out across all products.
Ideally, it should basically be a marketplace of commodity network/compute/storage and the providers are dynamically bidding for my business. If you can run my application as fast or as reliable with less spend, you get the business - if not the app magically moves the provider that can.
Also, it's drastically simpler than the software it heavily pushed out, and provides a lot of composability and simplification in fact compared to what was there before - but due to needs of flexibility and not being a magical genie (or Sufficiently Advanced Orchestrator) it leaves certain things on the table.
What you describe is closer to goals of TOSCA and similar, which are supposed to be parsed by service providers implemented for example on top of Kubernetes or OpenStack or <insert your imagined platform here>.
It turns out it's non-trivial, though kubernetes pushing simple standard API interaction led to interesting development in that area.
I feel like I probably should trust the people working on these products more than I trust me securing a Linux box, but... I dunno if I'm there yet.
what, exactly, do you think kubernetes is? what is the central design philosohy of it? how does it work? can you name anything about kubernetes that makes it better or different than Heroku or AppEngine? nothing you've said gives me confidenc you can identify the most basic strengths or competencies here, that you can identify how kubernetes is different from the more prosaic & narrow platforms which came before it &nehat that meams. kis is a different take than just an app delivery platform, but i dont see that recognizance here.
to me, you are propoing we should all switch from planes to bicycles because bicycles are simpler & all folks need. this reductionism is a misservice to real debate over what & where we should go.
endless consumerization of computing, treating all computing workloads as services for petty end-users, who need dumb simple integrated ways to continue shipping legacy software platforms, bundled into fancier containers, is a dead end shithole future. by themselves, simplicity & composability buy us nothing but low-ended-ness. they reduce our ability to think & integrate & fins better cloud patterns to make software with.
thankfully i see little potential threat out there from this proposal that we make ourselves more naive. tbis beleif that we can just somehow snap our fingers & simplify & the complexity goes away doesnt seem to ne enough. what i do have faith in are better management tools & practices taht emerge atop & integrating with existing full-blooded clous platforma like kunernetes. folks like ArgoCD or Flux provide a pretty reasonable seveloper experience somewhere reasonably between Herokus bramch-based deployment model & the modern open source cloud platform.
last, but definitely not least: what specifically does your comment have to do with this link that was shared? i dont see any direct connection to the link. it seems like you just wanted to dump a generic opinion on us, to neg kubernetes broadly. how if at all have you engaged the material in thia video in your negging?
edit: very quickly to -2. im not playing kind but i think silicon deserved heavily to be challenged. if you disagree, i think words are appropriate.
You should take the comment at its highest and assume the person understands K8s, rather than introducing doubt about the person's competency to speak on the subject by, in effect, cross-examining them.
Many of the people in this documentary have been on the show before; I recommend episodes with Brian Grant, Dawn Chen, Tim Hockin and Clayton Coleman.
(The documentary also touches various interesting point, such as open-source in the eyes of upper management, and so on... surely there is some better source/book/article, but I found the format pretty chill and easy to absorb)
I think this is good, but it makes me wish for an even broader-scoped documentary on the history of cloud technologies.
Honestly I would love for there to be more documentaries on the more “boring” computing related stuff too, like what are the origins of VMs.
There’s a lot of pop culture material on the founding of the big tech but very little on the boring stuff without which none of this would have been possible. And my assumptions about who invented what when are always changed by talking with people who have been around for long enough.
If there were a dedicated field of Academic History dedicated to computing that would be amazing. Just having a timeline that explains the lineage of computer technologies without it being a short paragraphs in the introduction chapter in books on more specific tools, that would be great.
The top comment links to a bunch of papers.
first there was docker. but we didn't know how to use it. a tiny team of google engineers spread out across various teams saw a way to mock up something more like their internal system, to allow larger scale control, but leveraging docker-ish containers. the small disassembled team fought & was semi-surprised to see it make it through the gauntlet of corporate, to get executive approval. it shares the context of why this was so important: AWS was the 900 lbs gorilla, and the world had nothing to compete with, couldn't make a dent going it alone. the tiny assemblage of folks were still basically shocked they got approval to go ahead with kubernetes, and just in time to show it off in front of DockerCon 2014, where they released what they had & started trying to build a bigger community.
from there there's a long lesson in coallition building. it becomes a classic tale in creating more value than you capture, in not trying to be winner take all. it's a lesson in creating community to fight the existential threat of winner takes all (AWS). it's a lesson in helping a team go from pioneer stage to town planner stage, in long term planning for success.
this is a wonderful historical analysis. it is packed with countless lessons & pieces of wisdom, about software, about organizations, about open source. these engineers have such great insight into where the market was, what was happening at the time, can talk eloquently about how we were in the midsts of a "rise of devops" movement but disunified & lacking in common platforms.
this isn't a practical hands on lesson. it doesn't go into what kubernetes is, it's architecture. this is a lesson to help understand the context of how Kubernetes came about. it's here to share context. it's rare insight into a rare project that happened at a just the right moment, & was released in just the right ways. we need these kind of landmark analysis to really understand software: not just what it is, but how it came about, the world in which it came to be, and to understand how & where success comes from.
Additionally, the “two pizza teams” style of Amazon’s development was more amenable to the AWS model of development where each piece of Amazon could run effectively in AWS [1]. Google is structured differently, and it’s only recently that both AWS and GCP could even approach running the largest systems from a company like Google.
[1] Yes I know that AWS wasn’t built specifically for Amazon engineers, but the fact that it could accommodate them over time has been a boon for their cloud, and it gives enterprises confidence that of AWS’s strategic importance and desire to make it world class. There isn’t a large hidden layer of services that Amazon has access to that the general public doesn’t.
Steve Yegge talks about it on his podcast: https://youtu.be/9v4z46Ea35Q
Amazon actually works backwards like they say - they ask customers what they want, and build it.
Google thinks they're smarter than everyone else so they can't comprehend that developers out there in the world want different things than the developers inside Google.
You can see this permeate even in this documentary, which is ostensibly about a success - when Google actually did launch something that developers really liked - K8S.
They didn't start from developer needs or wants. They started by noticing AWS was eating their lunch, and wanting to compete with them, but realizing they couldn't win by doing it directly.
Also, while Amazon does work backwards from customers, part of them working backwards is how to translate customer requirements into a successful business. Amazon is doing this as a for profit company, not spending money on altruistic initiatives.
E.g. purely for the benefit of customers, having AWS services be multi-cloud and open source or reducing egress cost would be best.
To the point that k8s is base operating system for... Chick-Fil-A restaurants, deployed locally, controlling the industrial kitchen hardware.
They had years of headstart on most infrastructure technology that’s ubiquitous now, but didn’t bother to offer it to others. Perhaps they thought only Google should benefit from it, while Amazon saw a business opportunity with AWS.
The empirical evidence seems to point that way, a lot of people were noticing that many of the Google stuff became open source or got open source equivalents from Google (Borg/Kubernetes, Blaze/Bazel, etc.) only after a critical mass of former Google employees left Google and since they liked Google tooling started replicating it as open source software outside of Google. In some cases that open source software got traction and Google seemed to be falling behind in some areas.
Which basically tells me that in the software world, you can't really have trade secrets. I could be wrong, though.
They protect this aggressively, and the tech is impressive.
I remember the first time I accidentally saw a custom google node when I went there to pick a friend up from there, and I had gone to his desk and I saw a really nice looking PCB on his desk he forgot about, and I exclaimed "WHATs that' -- I was pretty familiar with a wide range of server boards, and I knew that was custom immediately...
He panicked covered it and we didnt really talk about it much, but it was known really early that they were building a lot of custom kit.
~2005 maybe?
Amazon didn't try - they just knew that they were good at building high scale distributed systems, and thought they could build services for others. That's what S3 and SQS and EC2 were - built from scratch, not trying to figure out how to externalize the internals.
Not actually the case. AWS was a completely independent stack (from hardware on up) - we couldn't use it internally for quite some time (years); and even then, only in a limited fashion (e.g. only S3 for some time)
Is this true? There was the story about the resources they need for Christmas shopping that went unused for the rest of the year.
But recently somebody mentioned here (I don't remember where) that AWS was a separate business and that Amazon itself initially didn't use any resources from AWS.
so while there’s the ideal state of running amazon on a large multi tenant cloud, there was absolutely no safe and reasonable path to making that happen by extending the existing infra. it would’ve also hampered aws by forcing them to focus way too large way too early.
But they're the least diversified, after Facebook, agreed.
A lot of people used to think that Amazon.com was subsidising AWS. Financials from other VPS providers suggested this to be the case.
Google app engine was definitely NOT competing with AWS. They were not selling to enterprises.
A traditional FOSS project is not limited in this way. The developers often just start a new major version and overhaul everything. But they don't have to answer to "the business" or huge institutional users. Commercially driven open source will always be a product beholden to stakeholders, rather than technology designed to operate as well as it can.
And regular users hate this.
Jamie Zawinski describes this funnily, eloquently and also offensively:
https://www.jwz.org/doc/cadt.html
> This is, I think, the most common way for my bug reports to open source software projects to ever become closed. I report bugs; they go unread for a year, sometimes two; and then (surprise!) that module is rewritten from scratch -- and the new maintainer can't be bothered to check whether his new version has actually solved any of the known problems that existed in the previous version.
But he's right, and that's why:
* regular application developers who don't care about ideology
* and mass market users
hate desktop Linux.
i think the interesting thing is that while you’d think that is the ideal everyone should strive for, the reality is that’s inapplicable or detrimental to run most businesses that way.
I'm confused, did you mean "without" instead of "with"?
Also:
> i think the interesting thing is that while you’d think that is the ideal everyone should strive for, the reality is that’s inapplicable or detrimental to run most businesses that way.
Why would you say that is?
AWS being the dominant player means that if they make any silent changes there will be a SO/GitHub issue/HN thread about it. But with GCP without their pricy professional tier support you can feel a bit unsure and lost all the time about your understanding of it.
I don't know about you, but in 48 hours I've usually already built a workaround and moved on to other projects.
Not saying that AWS support is worse or even equal to GCP support, but just commenting that cloud support in general feels pretty useless and an afterthought at best.
And let's not even get started on the horrible, awful UI in AWS console.
I've had this happen multiple times for multiple services and the person's i was able to work with had enough knowledge and access to either see detailed logs and walk me through some undocumented feature or file a bug report by days end.
I'm spoiled in that regard but I've never had non-enterpise support with anything other than the 4 hour sla.