Nodes affinity configuration
There are multiple reasons to want to separate applications on different nodes pools :
- To have ones with mensual billings and others in auto-scalling way
- To separate security or base infrastructure from user's applications
- To separate environments
More information on official documentation
Pre-requisites
First of all, you need to have 2 nodes pools with different names like infrastructure
for everything relative to infrastructure and test
for the CI running jobs for example.
Naming convention for node pools:
infrastructure
for classic node poolscompute
for node-pool requiring lot of resourcesgpu
for node pool requiring GPU resources
Nodes selection management
Most of Helm Charts allow to select nodes like that:
Sometimes nodeSelector
is not available so can refer to official documentation.