Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 474 Bytes

concepts.md

File metadata and controls

9 lines (5 loc) · 474 Bytes

Node affinity

You may need to deploy your pods on specific node. This can be related to resources (cpu/memory), hardware or whatever reasons. Node affinity is a property that is added at the container level to specify which node it has to run inside. Basically, the node is targeted based on the label previouslyadded.

Use the command kubectl label nodes <nodename> disk=ssd to label the node with the attribute "disk"