here is the answer, but you can also add labels on metadata
apiVersion: v1
kind: Pod
metadata:
name: nginx-kusc00401
spec:
containers:
- name: nginx-kusc00401
image: nginx
nodeSelector:
disk: spinning
Why do you need to label a node? How do you know which node to label? I think the label already exists, and all you need to do is create a pod with a node selector referring to this label.
upvoted 2 times
...
...
...
...
Log in to ExamTopics
Sign in:
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.
2211094
3 months, 1 week agofc146fc
11 months, 2 weeks agoabu7midan
1 year, 2 months agoskywalker
1 year, 2 months agotestingspeedz214
4 months, 2 weeks agoStargazer11
1 year agoNasser_Sam
1 month, 4 weeks ago