Lesson  in  CKA Mock Exam

Question 1: Namespace and Pod

Create a namespace and a pod in it, with a specific image and label.

Create a namespace called dev-lab.

In that namespace, create a Pod named web-01 using image nginx:1.25, with the label app=web.

The Pod must reach the Running state.

Hint 1

Two resources needed here: one for the namespace, one for the pod.

Hint 2

kubectl create namespace --help and kubectl run --help — both support --dry-run=client -o yaml if you want to check before applying.