mathieu-benoit / myakscluster

How to setup a secure Kubernetes cluster on Azure
http://alwaysupalwayson.com/private-aks-and-acr/
11 stars 10 forks source link

Multiple Node Pools #47

Closed mathieu-benoit closed 4 years ago

mathieu-benoit commented 4 years ago

Learnings and Gotchas:

Taints and tolerations are used to logically isolate resources with a hard cut-off - if the pod doesn't tolerate a node's taint, it isn't scheduled on the node. An alternate approach is to use node selectors. You label nodes, such as to indicate locally attached SSD storage or a large amount of memory, and then define in the pod specification a node selector. Kubernetes then schedules those pods on a matching node. Unlike tolerations, pods without a matching node selector can be scheduled on labeled nodes. This behavior allows unused resources on the nodes to consume, but gives priority to pods that define the matching node selector.

mathieu-benoit commented 4 years ago
mathieu-benoit commented 4 years ago

https://github.com/mathieu-benoit/myakscluster/commit/da5897cf1727ad4360193b9e51ee729a07bf4ec7