파드와 워크로드 실습
학습 목표
사전 요구 사항
실습 1: Pod 생성과 관리
단계
cat > /tmp/nginx-pod.yaml << 'EOF'
apiVersion: v1
kind: Pod
metadata:
name: nginx-lab
labels:
app: nginx
env: lab
spec:
containers:
- name: nginx
image: nginx:1.25
ports:
- containerPort: 80
resources:
requests:
memory: "64Mi"
cpu: "100m"
limits:
memory: "128Mi"
cpu: "200m"
EOF
kubectl apply -f /tmp/nginx-pod.yaml검증
실습 2: Deployment 배포
단계
검증
실습 3: 롤링 업데이트
단계
검증
실습 4: 롤백
단계
검증
정리
다음 단계
마지막 업데이트