Skip to content

Part 2: Provision

What Will You Do

In this part of the self-paced exercise, you will provision an Amazon EKS cluster based on a declarative cluster specification using the default blueprint. This EKS cluster will be used to manage the pipeline.

Step 1: Cluster Spec

  • Open Terminal (on macOS/Linux) or Command Prompt (Windows) and navigate to the folder where you cloned the Git repository
  • Navigate to the folder "/getstarted/eks-gitops/cluster"

The "cluster.yaml" file contains the declarative specification for our Amazon EKS Cluster.

The following items may need to be updated/customized if you made changes to these or used alternate names.

  • project: "defaultproject"
  • cloudprovider: "aws-cloud-credential"
kind: Cluster
  name: gitops-eks-cluster
  project: defaultproject
  blueprint: default
  cloudprovider: aws-cloud-credential
  clusterConfig: null
  cniprovider: aws-cni
  proxyconfig: {}
  type: eks
- us-west-2a
- us-west-2b
kind: ClusterConfig
  name: gitops-eks-cluster
  region: us-west-2
  version: "1.20"
- amiFamily: AmazonLinux2
  - us-west-2a
  - us-west-2b
  desiredCapacity: 1
      albIngress: true
      autoScaler: true
  instanceType: t3.large
  maxSize: 1
  minSize: 1
  name: managed-ng1
  version: "1.20"
  privateNetworking: true
  volumeSize: 80
  volumeType: gp3
    privateAccess: true
    publicAccess: true
    gateway: Single

Step 2: Provision Cluster

  • Type the command below to provision the EKS cluster
rctl apply -f cluster.yaml

If there are no errors, you will be presented with a "Task ID" that you can use to check progress/status. Note that this step requires creation of infrastructure in your AWS account and can take ~20-30 minutes to complete.

Cluster: gitops-eks-cluster
  "taskset_id": "pk0xz7k",
  "operations": [
      "operation": "NodegroupCreation",
      "resource_name": "managed-ng1",
      "operation": "ClusterCreation",
      "resource_name": "gitops-eks-cluster",
  "comments": "The status of the operations can be fetched using taskset_id",
  • Navigate to the "defaultproject" project in your Org
  • Click on Infrastructure -> Clusters. You should see something like the following

Provisioning in Process

  • Click on the cluster name to monitor progress

Provisioning in Process

Step 3: Verify Cluster

Once provisioning is complete, you should see the cluster in the web console

Provisioned Cluster

  • Click on the kubectl link and type the following command
kubectl get nodes

You should see something like the following

NAME                                           STATUS   ROLES    AGE   VERSION   Ready    <none>   14m   v1.20.11-eks-f17b81


Congratulations! At this point, you have successfully provisioned an Amazon EKS cluster with the default blueprint in your AWS account using the RCTL CLI.