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.

'STUDY > Data Engineering' 카테고리의 다른 글
| [kodekloud] 02 Scheduling : Taints and Tolerations 풀이 (0) | 2023.01.23 |
|---|---|
| [kodekloud] 02 Scheduling : Labels and Selectors 풀이 (0) | 2023.01.22 |
| [kodekloud] 01 Core Concepts : Imperative-Commands 풀이 (0) | 2023.01.21 |
| [kodekloud] 01 Core Concepts : Service 풀이 (0) | 2023.01.21 |
| [kodekloud] 01 Core Concepts : Namespaces 풀이 (0) | 2023.01.21 |