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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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
2 months, 2 weeks 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 1 times
...
abu7midan
5 months, 1 week 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 2 times
skywalker
5 months, 1 week 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
Stargazer11
3 months, 3 weeks ago
No it's Not. Question mentions disk=spinning. So we have to label the node first as disk=spinning.
upvoted 3 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 ...