Create Kubernetes cluster on Amazon Elastic Kubernetes Service (EKS)¶
Before creating an EKS cluster, make sure to:
Install the AWS Command Line Interface (AWS CLI) for interacting with the different parts of AWS.
Install eksctl to simplify cluster creation on EKS.
Install kubectl to manage and deploy applications on Kubernetes.
Configure AWS CLI with your credentials.
Create the EKS cluster¶
To run a 3-node pxc cluster, you will need at least a 3-node cluster with 2vCPUs available. The database will not be created if you attempt to create a database cluster in a Kubernetes cluster without sufficient resources.
To create the EKS cluster, do the following steps:
Settled the required cluster details:
- name of your EKS cluster
- AWS region in which you wish to deploy your cluster
- the number of nodes you would like to have
- the desired ratio between on-demand and spot instances in the total number of nodes.
spot instances are not recommended for production environment but may be useful for testing purposes.
Create your EKS cluster following the official cluster creation instructions.
- Install the Amazon EBS CSI driver on your cluster. See the official documentation on adding it as an Amazon EKS add-on.