Skip to content

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 pools
  • compute for node-pool requiring lot of resources
  • gpu for node pool requiring GPU resources

Nodes selection management

Most of Helm Charts allow to select nodes like that:

my-application:
    nodeSelector: 
        nodepool: infra

Sometimes nodeSelector is not available so can refer to official documentation.