Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 394 Bytes

07.Scheduling.md

File metadata and controls

20 lines (16 loc) · 394 Bytes
kubectl get pod -o wide

kubectl run -generator run-pod/v1 --image nginx nginx --dry-run -o yaml > nginx.yaml
kubectl apply -f nginx.yaml

kubectl delete pod nginx

    apiVersion: v1
    kind: Pod
    metadata:
      name: nginx
    spec:
      nodeName: {nodeName}
      containers:
      -  image: nginx
         name: nginx

스케줄러 고장났을 때 지정해서 배포 가능