nerdexam
Linux_Foundation

CKA · Question #39

Schedule a pod as follows: • Name: nginx-kusc00401 • Image: nginx • Node selector: disk=ssd

The task requires creating a Kubernetes Pod with a specific name, image, and node selector, by editing a YAML file in a web terminal and applying it.

Submitted by emma.c· May 4, 2026Workloads and Scheduling

Question

Schedule a pod as follows: • Name: nginx-kusc00401 • Image: nginx • Node selector: disk=ssd

Explanation

The task requires creating a Kubernetes Pod with a specific name, image, and node selector, by editing a YAML file in a web terminal and applying it.

Approach. The question asks to 'Schedule a pod' with specific attributes (Name: nginx-kusc00401, Image: nginx, Node selector: disk=ssd). This requires creating a Kubernetes Pod object, not modifying or creating a Deployment. The most direct approach in the given web terminal environment is to modify the existing app.yaml file to contain a Pod definition, or create a new YAML file for the Pod, and then apply it using kubectl.

Common mistakes.

  • common_mistake. Common mistakes include modifying the existing Deployment instead of creating a Pod object. For example, changing the Deployment's Pod template to include nodeSelector and modify the image. This is incorrect because the question specifically asks for a 'pod', implying a standalone kind: Pod object, not a deployment that manages pods. Additionally, a Deployment's pod names are generated, not directly set by metadata.name in its template to match the specific nginx-kusc00401. Other mistakes include incorrect YAML syntax (indentation, spelling, case sensitivity), placing nodeSelector at the wrong YAML level (e.g., directly under metadata or containers), using the nginx:1.11.10-alpine image from the original app.yaml instead of nginx, or forgetting to save and apply the changes.

Concept tested. Kubernetes Pod creation, YAML manifest structure (apiVersion, kind, metadata, spec), container definition (name, image), and node scheduling using nodeSelector for targeted placement of pods on specific nodes based on labels.

Reference. https://kubernetes.io/docs/concepts/workloads/pods/ and https://kubernetes.io/docs/concepts/scheduling-and-priority/assign-pod-node/

Topics

#Pod scheduling#Node selector#Pod creation

Community Discussion

No community discussion yet for this question.

Full CKA Practice