Schedule a pod as follows:
Name: nginx-kusc00101
Image: nginx
Node selector: disk=ssd
Suggested Answer: A
Get Premium CKA Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
33 comments · newest first
VE
Veda
11 months ago
Wait, does the node really need to have an SSD label? Seems odd.
DA
Dallas
11 months ago
Totally agree, that’s the right command!
CO
Colton
11 months ago
Yup, that's how you schedule it!
ED
Edelmira
11 months ago
I thought nginx was just for web serving, not for specific nodes.
PA
Patrick
11 months ago
Just use `kubectl run nginx-kusc00101 --image=nginx --overrides='{"apiVersion": "v1", "spec": {"nodeSelector": {"disk": "ssd"}}}'`
DE
Dell
12 months ago
I feel like I practiced this, but I can't recall if the node selector goes under the pod spec or somewhere else.
KA
Kanisha
12 months ago
Wasn't there something about ensuring the node has the right labels? I hope I remember that part correctly.
IL
Ilene
1 year ago
I remember a similar question about scheduling pods based on node selectors. I think we just need to include the image and name in the spec.
RO
Romana
1 year ago
I think we need to specify the node selector correctly, but I'm not entirely sure how to format it in the YAML.
VI
Vincent
1 year ago
This looks like a good opportunity to practice my pod creation skills. I'll start by writing out the YAML for the pod, making sure to include all the required fields. Then I'll double-check my work before applying it to the cluster.
RO
Rory
1 year ago
Okay, I think I've got this. I'll create a pod manifest file and include the name, image, and node selector as specified. Then I can apply that manifest to the cluster. Shouldn't be too tricky as long as I get the syntax right.
CA
Carlee
1 year ago
Hmm, I'm not entirely sure how to approach this. The node selector part is throwing me off a bit. I'll need to review my notes on how to properly specify node selectors in a pod definition.
DI
Dino
1 year ago
This looks like a straightforward pod scheduling question. I'll start by reviewing the requirements - a pod named nginx-kusc00101 using the nginx image, and a node selector for 'disk=ssd'. Shouldn't be too difficult to set this up.
DE
Delmy
1 year ago
Wait, is this a trick question? There has to be a catch somewhere. I'll scrutinize this solution like a hawk before submitting my answer.
JA
Jacob
1 year ago
User 2
GI
Gianna
1 year ago
User 1
MA
Martin
1 year ago
This is a piece of cake! I could create this pod with my eyes closed. Well, maybe not literally, but you get the idea.
JU
Junita
1 year ago
Hmm, I wonder if the node selector is case-sensitive. Better double-check that 'disk=ssd' is the correct format.
RO
Rodrigo
1 year ago
User 4: Got it, thanks for confirming.
AH
Ahmed
1 year ago
User 3: The correct format is 'disk=ssd'.
RO
Royal
1 year ago
User 2: Let's double-check that 'disk=ssd' is the correct format.
JO
Johnetta
1 year ago
Catarina: Good idea. It's always best to verify to avoid any issues.
HO
Howard
1 year ago
User 1: I think the node selector is case-sensitive.
CA
Catarina
1 year ago
User 2: Thanks for the heads up. I'll double-check the format before scheduling the pod.
DO
Dottie
1 year ago
User 1: Yes, the node selector is case-sensitive. Make sure it's 'disk=ssd'.
DA
Dannie
1 year ago
Yes, that would ensure the pod runs on nodes with SSD storage.
EZ
Ezekiel
1 year ago
Should we also set the node selector to disk=ssd?
CA
Casey
1 year ago
I agree, we need to specify the image as nginx.
EZ
Ezekiel
1 year ago
I think we should schedule the pod nginx-kusc00101.
MI
Mila
2 years ago
The solution looks good to me. Scheduling a pod with the specified name, image, and node selector seems straightforward.
DE
Deandrea
1 year ago
I agree, the solution provided makes it clear how to schedule the pod with the specified configurations.
AL
Allene
1 year ago
Yes, it's crucial to ensure all the details are correct to avoid any issues with the pod.
JU
Justa
1 year ago
Great choice! It's important to specify the name, image, and node selector when scheduling a pod.