Config - Node Selectors Flashcards

1
Q

What do NodeSelectors do?

A
  • specify the kind of node a pod should run on
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do we create NodeSelectors?

A

pod-yaml:

spec:
 containers:
   - name:
    image:
 nodeSelector:
  size: Large

size: large -> are lables assigned to the nodes to match and identify the right node

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do we label nodes?

A

‘kubectl label nodes < node-name> < label-key>=< label-value> ‘

kubectl label nodes node01 size=Large

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the problem with NodeSelectors?

A
  • more complex requirements cannot be implemented
  • Large OR Medium
  • NOT Small
How well did you know this?
1
Not at all
2
3
4
5
Perfectly