by paxys · 5y ago · 0 comments
However, behind this simple and intuitive API there is still a massively complex and mostly unintuitive system which cannot be reduced to "just make some curl calls and you are good to go". While it is easy to do things in Kubernetes, figuring out what to do and why to do it is anything but.
I wish i could start with the concepts of distributed systems, play around in something meant for learning and then map that knowledge to the kubernetes world.
But nothing i could find was even remotely helpful. Most content around this originates in research or academia making it harder to apply and learn on real problems -- the way I'm used to learning.
Having the ingress controller already preconfigured meant it was much easier to get up and running with a deployment and service.
And that's a good thing! You can't expect such a complex use case to be resolved by something simple.
Having such an easy, consistent and coherent API to abstract away all that complexity is truly a godsend.
K8S on single node cluster, or hundreds of nodes, it just work the same. Moving from one company to another, you don't have to relearn everything. What works on your local kind cluster will most likely work on GKE.
What other system do that? And would that system be "simple"?
My problem is that in today's "devops" world developers are more and more just expected to be familiar with Kubernetes as another tool in their belt. Speaking from experience at my own workspace, that is a recipe for disaster.
As long as the learning curve (which could be weeks or even months) is acknowledged and factored in, Kubernetes can be a very powerful weapon to wield.
At my previous job, the developers were only expected to provide a Docker image with a list of requirements to run it (volumes, environment, configuration). Then it was my job to write the Helm chart and CI/CD pipeline. It was also my job to teach the developers to be autonomous on that aspect.
I never got a job where developers were expected to know how to deal with (pre)production servers. Except maybe in startups where everyone is expected to do everything because you never got enough people with the right skill.
I even got a developer in my team who didn't even know that Kubernetes existed while the company was migrating from on-premise to Kubernetes (and probably still does not).
Every object has a kind, metadata, and spec.
If that doesn't lead to some intuition on how to use it...
This car has tires, you create, delete and patch them. It also has an axels, gas tank, etc.
This truck has tires, axels, has tank
This motorcycle has tires, axels, etc
sounds like kubernetes?