Use Affinity
ocne
ocne2
lab
tutorial
ocne-k8s
Table of Contents
Links
🌙 Lab
🗒 Tutorial
Details
The ability to influence how Kubernetes schedules Pods to provide the best performance, reduce running costs, and simplify cluster management is an essential skill for an administrator to master.
But what happens if you have several applications deployed to your Kubernetes cluster that would run more efficiently on some nodes rather than others? Administrators use several ways to influence how the Kubernetes scheduler assigns application Pods to specific nodes within your cluster. Node Affinity, Pod affinity, and Pod anti-affinity help by providing flexible rules that govern how the Kubernetes scheduler deploys Pods to nodes in the cluster.
Objectives
In this tutorial, you will learn:
- How to use affinity
- How to use anti-affinity
Prerequisites
- Installation of Oracle Cloud Native Environment
- a single control node and four worker nodes