# Overview

In this self-paced exercise, you will learn how to configure and deploy an Amazon EKS cluster with Spot Instances using the controller. Spot instances are great options to use in order to reduce operating costs. On average, most spot instance types can **reduce costs by over 70%** compared to on-demand instances.

Important

Spot instances can be interrupted, which could impact your running workloads. This is a rare occurrence and normally has a **frequency of interruption of under 5%**. For additional information, check out AWS's [Spot Instance Advisor](https://aws.amazon.com/ec2/spot/instance-advisor/)

* * *

## What Will You Do by Part

| Part | What will you do? |
| --- | --- |
| 1 | [Provision](https://docs.rafay.co/learn/quickstart/eks/spot/provision/) an Amazon EKS Cluster with spot instances |
| 2 | [Deprovision](https://docs.rafay.co/learn/quickstart/eks/spot/deprovision/) the EKS cluster |

* * *

## Architecture & Design

- It is recommended to create a "dedicated managed node group" for system level resources while then using a managed node group with spot instances to run non-system level workloads.
- This configuration allows system level resources to take advantage of the consistency of on-demand or reserved instances while optimizing workload cost with performance.

In this exercise, we will create an EKS cluster that contains two (2) managed node groups, one for system resources and the other with "spot instances" for workloads. A visual representation of this cluster design is shown below.

EKS Data Plane

Spot Node Groups

Workloads

System Node Group

Rafay Operator

EKS Control Plane

* * *

## Assumptions

- You have access to an [Amazon AWS account](https://aws.amazon.com/) with privileges to create an IAM Role with the default [Full IAM Policy](https://docs.rafay.co/clusters/eks/full_iam_policy/) to allow provisioning of resources on your behalf as part of the EKS cluster lifecycle.
- You have downloaded the [RCTL CLI](https://docs.rafay.co/cli/overview/)
- You have initialized the [RCTL CLI](https://docs.rafay.co/cli/config/)

Note

The instructions describe the process using a combination of the RCTL CLI and the web console. The same steps can be performed using the REST APIs or a [Terraform provider](https://registry.terraform.io/providers/RafaySystems/rafay/latest) for automation.

* * *
