STUDY/Data Engineering
[kodekloud] 02 Scheduling : Manual Scheduling 풀이
wonpick
2023. 1. 21. 20:57
Q1. A pod definition file nginx.yaml is given. Create a pod using the file.
k create -f nginx.yaml
Q2. What is the status of the created POD?
Q3. Why is the POD in a pending state?
위 내용을 봤을 때 스케쥴이 없어서 그러하다..
Q4. Manually schedule the pod on node01
controlplane ~ ➜ ls
nginx.yaml sample.yaml
controlplane ~ ➜ vi nginx.yaml
controlplane ~ ✖ k get pods
NAME READY STATUS RESTARTS AGE
nginx 0/1 Pending 0 26m
controlplane ~ ➜ k replace --force -f nginx.yaml
pod "nginx" deleted pod/nginx replaced
controlplane ~ ➜ k get pods
NAME READY STATUS RESTARTS AGE
nginx 0/1 ContainerCreating 0 7s
Q5. Now schedule the same pod on the controlplane node.