Menu

How to Learn Kubernetes (Without Drowning in YAML)
📰

How to Learn Kubernetes (Without Drowning in YAML)

DEV Community: beginners·Spartan Rich·17 days ago
#xZjpdrpt
#devtobeginners#devto#dev#kubectl#pods
Reading 0:00
15s threshold

The first Kubernetes tutorial I tried handed me a 140-line YAML file and told me to kubectl apply it. Something called a Deployment appeared, then a ReplicaSet I never asked for, then three Pods with random suffixes. It worked. I had no idea why.

I tried that same approach for a few weeks, copying manifests from blog posts and tweaking values until things went green. When a Pod got stuck in CrashLoopBackOff at work, I couldn't tell whether the problem was my app, the image, the config or the cluster. So I started over and learned it in a smaller, slower order. This is that order.

Get a cluster you can break

You don't need a cloud account. Install kind or minikube and run a cluster on your laptop. kind create cluster takes about a minute, and kind delete cluster throws it away. Being able to wreck it and start fresh in two commands made me far less careful, which is exactly what you want while learning.

Start with one Pod, by hand

Skip Deployments at first.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.