Skip to content

Commit

Permalink
Merge pull request #454 from bgraef/main
Browse files Browse the repository at this point in the history
update ocne affinity post
  • Loading branch information
bgraef authored Oct 4, 2024
2 parents eaf3af1 + df8e5da commit ad09d3d
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions content/posts/ocne/post-26/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: "Use Affinity"
date: 2024-04-16
date: 2024-10-03
draft: false
summary: "This tutorial shows how to use Affinity and Anti-affinity with Oracle Cloud Native Environment."
tags: ["ocne", "lab", "tutorial", "ocne-k8s"]
summary: "Learn to use affinity and anti-affinity with Oracle Cloud Native Environment."
tags: ["ocne", "ocne2", "lab", "tutorial", "ocne-k8s"]
showDate: true
---

Expand All @@ -15,26 +15,18 @@ showDate: true

## Details

The ability to influence how Kubernetes schedules Pods to provide the best performance, reduce running costs and simplify cluster management is an important skill for an administrator to master.
The ability to influence how Kubernetes [schedules](https://kubernetes.io/docs/concepts/scheduling-eviction/) 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 and Pod Affinity/Anti-affinity help by providing flexible rules that govern how the Kubernetes scheduler deploys pods to nodes in the cluster. This tutorial covers using Affinity and Anti-Affinity.
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

You will learn:
In this tutorial, you will learn:

- How to use Affinity.
- How to use Anti-Affinity.
- How to use affinity
- How to use anti-affinity

### Prerequisites

- 6 Oracle Linux systems to use as:
- Operator node (ocne-operator-01)
- Kubernetes control plane node (ocne-control-01)
- Kubernetes worker nodes (ocne-worker-01, ocne-worker-02, ocne-worker-03 & ocne-worker-04)

- Each system should have the latest Oracle Linux 8 (x86_64) installed and configured with:

- An Oracle user account (used during the installation) with sudo access
- Key-based SSH, also known as password-less SSH, between the hosts
- Installation of Oracle Cloud Native Environment
- Installation of Oracle Cloud Native Environment
- a single control node and four worker nodes

0 comments on commit ad09d3d

Please sign in to comment.