FILE: materi-21.module

Kubernetes Orchestration

Container di skala. Pod, deployment, service. K8s adalah backbone cloud-native modern.

RUNTIME: 32m LEVEL: advanced STATUS: ACTIVE
CONTROL PLANE: API SERVER + ETCD + SCHEDULER NODE 1 POD POD POD NODE 2 POD POD NODE 3 POD POD KUBERNETES CLUSTER

1. Mengapa Kubernetes

Punya 100 container manual? Mustahil. K8s otomasi deployment, scaling, healing. Self-healing: container crash, K8s restart. Lahir dari Borg Google. De facto standar cloud-native.

2. Komponen Utama

Cluster: kumpulan node. Node: VM atau physical machine. Pod: smallest deployable unit, biasanya 1 container. Deployment: declarative untuk Pod. Service: networking abstraction. Ingress: route HTTP.

3. kubectl Commands

kubectl get pods. kubectl describe pod NAME. kubectl logs POD. kubectl exec -it POD bash. kubectl apply -f manifest.yaml. Master ini, akan dipakai harian.

4. Helm Charts

Package manager untuk K8s. Helm chart bundle manifest YAML, plus templating. Install application kompleks dengan 1 command. Repository populer di Artifact Hub.

5. Production K8s

Managed: AWS EKS, GCP GKE, Azure AKS. Self-hosted lebih murah tapi maintenance heavy. Best practice: liveness probe, readiness probe, resource limit, network policy, RBAC strict.

Practical Mission

  1. Setup minikube atau kind di laptop
  2. Deploy nginx dengan kubectl
  3. Buat manifest Deployment dan Service
  4. Install Helm dan deploy chart
  5. Pelajari Kubernetes Up and Running book

Recap Module