Skip to main content

Scale a Kubernetes Cluster

ocne lab tutorial ocne-install
Table of Contents

Links

🌙 Lab

🗒 Tutorial

Details

This tutorial demonstrates how to scale an existing Kubernetes cluster in Oracle Cloud Native Environment.

Scaling up a Kubernetes cluster means adding nodes; likewise, scaling down occurs by removing nodes. Nodes can be either control plane or worker nodes. Oracle recommends against scaling the cluster up and down at the same time. Instead, perform a scale up and then down in two separate commands.

We recommend scaling the Kubernetes cluster control plane or worker nodes in odd numbers to avoid split-brain scenarios and maintain the quorum. For example, 3, 5, or 7 control plane or worker nodes ensure the reliability of the cluster.

We start with an existing Highly Available Kubernetes cluster running on Oracle Cloud Native Environment that consists of the following:

The starting deployment consists of the following:

  • 1 Operator Node
  • 3 Control Plane Nodes
  • 5 Worker Nodes

It builds upon the labs:

Objectives

At the end of this tutorial, you should be able to do the following:

  • Add two new control plane nodes and two new worker nodes to a cluster
  • Scale down the cluster by removing the same nodes from the cluster

Prerequisites

Note: If using the free lab environment these prerequisites are provided as the starting point.

  • A Highly Available Kubernetes cluster running on Oracle Cloud Native Environment

  • 4 additional Oracle Linux instances to use as:

    • 2 Kubernetes control plane nodes
    • 2 Kubernetes worker nodes
  • Access to a Load Balancer such as OCI Load Balancer

  • The additional Oracle Linux instances need the following: