Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam CKA All Questions

View all questions & answers for the CKA exam

Exam CKA topic 1 question 21 discussion

Actual exam question from CNCF's CKA
Question #: 21
Topic #: 1
[All CKA Questions]

SIMULATION
-






Task
-

Schedule a pod as follows:

• Name: nginx-kusc00401
• Image: nginx
• Node selector: disk=spinning

Show Suggested Answer Hide Answer
Suggested Answer: apiVersion: v1 kind: Pod metadata: name: nginx-kusc00401 spec: containers: - name: nginx-kusc00401 image: nginx nodeSelector: disk=spinning

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
fc146fc
8 months ago
kubectl label nodes <your-node-name> disk=spinning and then create the below nginx.yaml file apiVersion: v1 kind: Pod metadata: name: nginx labels: env: test spec: containers: - name: nginx image: nginx imagePullPolicy: IfNotPresent nodeSelector: disktype: spinning and finally Kubectl create -f nginx.yaml
upvoted 2 times
...
abu7midan
10 months, 3 weeks ago
k label node node01 disk=spanning apiVersion: v1 kind: Pod metadata: name: nginx-kusc00401 labels: env: test spec: containers: - name: nginx image: nginx imagePullPolicy: IfNotPresent nodeSelector: disk: spinning
upvoted 3 times
skywalker
10 months, 3 weeks ago
Should be ssd as disk.. --- apiVersion: v1 kind: Pod metadata: creationTimestamp: null labels: run: nginx-kusc00401 name: nginx-kusc00401 spec: containers: - image: nginx name: nginx-kusc00401 nodeSelector: disk: ssd
upvoted 1 times
testingspeedz214
4 weeks, 1 day ago
Wrong. nodeSelector shouled be disk=spinning as specified in the question
upvoted 1 times
...
Stargazer11
9 months ago
No it's Not. Question mentions disk=spinning. So we have to label the node first as disk=spinning.
upvoted 4 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...