Kubernetes in 100 Days
0/100

Kubernetes · 100-day challengeKubernetes · ความท้าทาย 100 วัน

Kubernetes in 100 Days

One concept, one lab, one quiz a day — from your first pod to running productionวันละหนึ่งแนวคิด หนึ่งแล็บ หนึ่งแบบทดสอบ ตั้งแต่พอดแรกจนถึงการใช้งานจริงบนโปรดักชัน

A hundred days, ten phases. Each day is about twenty minutes: a concept explained plainly, a lab you run on your own cluster, and a couple of questions to check it stuck. By day 100 you will have touched every part of Kubernetes a production engineer is expected to know. หนึ่งร้อยวัน สิบเฟส แต่ละวันใช้เวลาประมาณยี่สิบนาที ประกอบด้วยแนวคิดที่อธิบายแบบตรงไปตรงมา แล็บที่คุณลงมือทำบนคลัสเตอร์ของตัวเอง และคำถามสองสามข้อเพื่อตรวจว่าเข้าใจจริง เมื่อถึงวันที่ 100 คุณจะได้สัมผัสทุกส่วนของ Kubernetes ที่วิศวกรระดับโปรดักชันควรรู้

Vanilla Kubernetes is the spine. Amazon EKS and Azure AKS run alongside it: most days end with a short box showing what changes on each managed platform, because the object you write is the same and the thing underneath it is not. Kubernetes มาตรฐานคือแกนหลัก ส่วน Amazon EKS และ Azure AKS จะเดินคู่ไปด้วย โดยส่วนใหญ่จะมีกล่องสั้น ๆ ท้ายวันที่บอกว่าแต่ละแพลตฟอร์มแบบจัดการต่างกันอย่างไร เพราะออบเจ็กต์ที่คุณเขียนเหมือนกัน แต่สิ่งที่อยู่ข้างใต้ไม่เหมือนกัน

Before day 1: get a clusterก่อนวันที่ 1: เตรียมคลัสเตอร์

Every vanilla lab here was run on a three-node kind cluster on a laptop — the same one whose output you will see throughout. Install Docker, then: แล็บมาตรฐานทุกอันในหน้านี้ถูกรันบนคลัสเตอร์ kind สามโหนดบนแล็ปท็อป ซึ่งเป็นเครื่องเดียวกับที่คุณจะเห็นผลลัพธ์ตลอดทั้งหน้า ติดตั้ง Docker แล้วรัน:

brew install kind kubectl helm

cat > kind.yaml <<'EOF'
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: k8s100
nodes:
  - role: control-plane
  - role: worker
  - role: worker
EOF

kind create cluster --config kind.yaml --wait 180s
kubectl get nodes
real outputผลลัพธ์จริง
NAME                   STATUS   ROLES           AGE   VERSION
k8s100-control-plane   Ready    control-plane   60s   v1.37.0
k8s100-worker          Ready    <none>          46s   v1.37.0
k8s100-worker2         Ready    <none>          46s   v1.37.0

A note on honesty: every command marked real output was actually run and the output pasted in. EKS and AKS boxes are marked not run here — they are written from documentation and production experience, not executed against a live cloud account, so treat the exact strings as illustrative. หมายเหตุเรื่องความซื่อตรง: ทุกคำสั่งที่ติดป้าย ผลลัพธ์จริง ถูกรันจริงและคัดลอกผลลัพธ์มาวาง ส่วนกล่อง EKS และ AKS จะติดป้าย ไม่ได้รันที่นี่ เพราะเขียนจากเอกสารและประสบการณ์ใช้งานจริง ไม่ได้รันกับบัญชีคลาวด์จริง ดังนั้นให้ถือว่าข้อความที่แสดงเป็นเพียงตัวอย่าง