Config - Node Selectors Flashcards
1
Q
What do NodeSelectors do?
A
- specify the kind of node a pod should run on
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
3
Q
How do we label nodes?
A
‘kubectl label nodes < node-name> < label-key>=< label-value> ‘
kubectl label nodes node01 size=Large
4
Q
What is the problem with NodeSelectors?
A
- more complex requirements cannot be implemented
- Large OR Medium
- NOT Small