Kubernetes Course Labs

Lab Hints

The syntax for affinity rules is tricky, especially when you want to apply multiple rules. For node affinity:

The order that you do things is important too - typically you want all your nodes labelled correctly before you deploy, so the scheduler has all the information it needs.

And finally, preferences mean the scheduler can make a judgement, so you may not be able to get the exact results (5-1 spread on the agent nodes).

Need more? Here's the solution.