Live data from Hacker News

Ask HN: What is the fastest way to ramp up on DevOps, k8 and GCP?

news.ycombinator.com

61–70 of 82 posts

Re: Ask HN: What is the fastest way to ramp up on DevOps, k8 and GCP?

#61
post #55

Earlier quoted context omitted.

Here's a quick question: has anyone made a single page reference for the entirety of the Kubernetes manifest spec? E.g. everything that should come out of the box, except CRDs? For example, for Docker Swarm and the Compose format, you have this: https://docs.docker.com/compose/compose-file/compose-file-v3...

I'm curious of other answers as well, but one place that kind of does what I think you ask for is [0]. Also you can get nice info from kubectl [1] [0] https://kubernetes.io/docs/reference/generated/kubernetes-ap... [1] kubectl explain deploy --recursive

That's a really nice documentation page, however what's missing in my eyes is an example or two for each parameter in YAML format. Personally, when attempting to use Docker Swarm, things like that were immensely useful, even more so for Hashicorp Nomad and its somewhat niche HCL.

I know that people like to use something like Kustomize (https://kustomize.io/) and Helm (https://helm.sh/) at least last i checked, but it's also really nice to be able to read up on everything without necessarily following tutorials and such, or using specialized tools.

For example, with Docker Swarm, if i want to change how restarts would be handled, i have a really easy reference available: https://docs.docker.com/compose/compose-file/compose-file-v3...

But with Kubernetes, in the first linked page i find a short description (just scroll down a bit or CTRL+F "restartPolicy") which doesn't offer further parameters: https://kubernetes.io/docs/reference/generated/kubernetes-ap...

To its credit, there is a link to another page as well which contains more information: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifec...

That said, usability wise i'd have to spend more time to figure out how to get my containers/pods restarting just once every 1 minute as opposed to whatever the default is (say, low end cluster with limited resources) with Kubernetes instead of other technologies, due to this difference.

Re: Ask HN: What is the fastest way to ramp up on DevOps, k8 and GCP?

#62

Earlier quoted context omitted.

While I agree generally, this isn't helpful for someone trying to expand their knowledge. Helm is a popular tool, and it's important to understand it, when it's useful, and when it's not.

Care to elaborate on the three points you mentioned with more specificity?

I can, I suppose.

With regards to "understanding it," I mean knowing what it's doing under the hood. It's all well and good to know that you can install something by doing "helm install," but you should really know what helm install actually does.

With regards to "when it's useful," I mean when you have a very complex system that needs a high level of abstraction to make manageable.

With regards to "when it's not [useful]," I mean various scenarios. For example, when you really only need a single pod running with no configuration and no ingress, Helm is not only overkill, but also a negative, as it abstracts without adding any value.

Re: Ask HN: What is the fastest way to ramp up on DevOps, k8 and GCP?

#63
Im very much a bottom up sort of learner so I wanted to post something I haven’t seen yet in any of these comments. Go through and build Linux from scratch https://www.linuxfromscratch.org/

You don’t have to do all of it, just enough to feel comfortable with the problem space that containers in part are trying to solve for. In doing so you will learn about the fundamentals of the stacks you are working with. Then go learn about cgroups at the lowest level. Again you don’t need to master these things but setting up a container from scratch will then give you a more intuitive understanding of what container apis like docker are trying to solve for. Install a hypervisor on your local workstation and set up a few vms networked to each other. Use a tool like netcat to talk across them. Once you have these basics, and yes it is a long and round about way, I think the cloud stuff becomes a lot easier and more approachable since you will have a more in depth understanding of what cloud providers are actually giving you in terms of configurations and managed services. I came into software development from doing sysadmin work at a NOC during a graveyard shift. So I had a lot of time on my hands to mess around with this stuff. I don’t think that tools like docker should be a substitution for the fundementals, but rather something you add to your tool belt later to make these sorts of configurations easier to set up.

Yeah this isn’t going to be a 1-2 day crash course but if you are diligent you can get a basic understanding of what these tools do in under a month. Only after you have a complete understanding of single node use case (e.g. multiple containers running on a single host) would i recommend starting to learn k8. Good luck!

* edit to fix small typos

Re: Ask HN: What is the fastest way to ramp up on DevOps, k8 and GCP?

#64
post #55

Earlier quoted context omitted.

I'm curious of other answers as well, but one place that kind of does what I think you ask for is [0]. Also you can get nice info from kubectl [1] [0] https://kubernetes.io/docs/reference/generated/kubernetes-ap... [1] kubectl explain deploy --recursive

That's a really nice documentation page, however what's missing in my eyes is an example or two for each parameter in YAML format. Personally, when attempting to use Docker Swarm, things like that were immensely useful, even more so for Hashicorp Nomad and its somewhat niche HCL. I know that people like to use something like Kustomize ( https://kustomize.io/ ) and Helm ( https://helm.sh/ ) at least last i checked, bu…

I can relate to all your experiences. Swarm has such a nice learning curve and I wish it would still be used widely.

With K8s I guess we are between a really decent (!) documentation that doesn't work very well as a "tutorial", and third party resources that does that.

It does make things harder at the beginning, but is still much better then, say, Hashicorps docs: "here is a cool starting tutorial that covers basics you'll need for the first 30 minutes. That is all, look other things up in the code". For a longer while I felt this was the case with Vault or Consul.

Re: Ask HN: What is the fastest way to ramp up on DevOps, k8 and GCP?

#65
post #39

I would look at these topics and in this order: 1. Containerisation - can you build a hello world web app in any language then Dockerise it. 2. Now break it into two containers - one is the original hello world but now it calls an API on a 2nd container that responds with hello world in one of 10 different languages. Just hard code this the point is that it’s now 2 containers for your “app”. 3. Create a Docker reposi…

16. Avoid helm.

[deleted]

Re: Ask HN: What is the fastest way to ramp up on DevOps, k8 and GCP?

#66
post #39

I would look at these topics and in this order: 1. Containerisation - can you build a hello world web app in any language then Dockerise it. 2. Now break it into two containers - one is the original hello world but now it calls an API on a 2nd container that responds with hello world in one of 10 different languages. Just hard code this the point is that it’s now 2 containers for your “app”. 3. Create a Docker reposi…

16. Avoid helm.

17. Avoid kustomize even more than Helm.

Re: Ask HN: What is the fastest way to ramp up on DevOps, k8 and GCP?

#67
post #31

I don't think there's going to be a shortcut to learning Kubernetes to the point where you'll be comfortable setting up a production-grade cluster. I recently went down the path of learning it. Even with 6 years of experience using Docker and ~10 years of general deployment / Linux / sysadmin'y experience it took something like 180 hours of no screwing around time to get to the point where I was comfortable putting u…

This entirely.

And even then, I think it took our org a solid year of work from 3 dedicated engineering teams to be comfortably deploying on GKE & EKS.

And still after that investment, we ditched K8s in favor of Nomad.

Kubernetes is kind of like a steamroller where most of us are looking for a hammer.

People joke about Google releasing Kubernetes into the wild to slow down their competition. It's really not that far off from reality though.

Re: Ask HN: What is the fastest way to ramp up on DevOps, k8 and GCP?

#68
post #31

I don't think there's going to be a shortcut to learning Kubernetes to the point where you'll be comfortable setting up a production-grade cluster. I recently went down the path of learning it. Even with 6 years of experience using Docker and ~10 years of general deployment / Linux / sysadmin'y experience it took something like 180 hours of no screwing around time to get to the point where I was comfortable putting u…

This entirely. And even then, I think it took our org a solid year of work from 3 dedicated engineering teams to be comfortably deploying on GKE & EKS. And still after that investment, we ditched K8s in favor of Nomad. Kubernetes is kind of like a steamroller where most of us are looking for a hammer. People joke about Google releasing Kubernetes into the wild to slow down their competition. It's really not that far…

Would you say, for someone starting in the same place as OP, that it's better to skip K8s entirely and just go with Nomad?
Post reply on HN