Files
Carsten Schafer e616156663 Install new cluster for OWLS testing
Signed-off-by: Carsten Schafer <Carsten.Schafer@kinarasystems.com>
2024-04-10 09:39:49 -04:00

2.0 KiB

EKSCTL Based Cluster Installation

The script and associated files should make it possible to deploy an EKS cluster and a few nodes. It sets up the EKS cluster bsaed on provided environment variables. The scripts should work on MacOS and Linux (as of yet untested).

Requirements

MacOS

  • Homebrew
  • gettext for envsubst (via Homebrew v0.21.1)

General

  • eksctl (v0.175.0+)
  • aws-cli (v2.15.34+)

Setup

  • Prepare an environment file - see env_example.
  • Make sure all required utilities are installed.
  • Make sure that you can run "aws --version" and "eksctl version"
  • Make sure that any AWS SSO environment variables are set.

Installation

  • Run "source env_FILE ; ./installer" (using the env file you created above)
  • If the identity check succeeds the installer will create the following resources:
    • EKS cluster
    • Policy and service accounts for EBS, ALB and Route 53 access.
    • EBS addon and OIDC identity providers
  • Reads cluster config into a temporary file.
  • Shows some information about the created cluster.
  • Shows how to run "aws eks update-kubeconfig" command to update your .kube/config file in place.

Scaling nodegroups

Set CLUSTER_NODES in your env_FILE and run:

source env_FILE
./scaleit

Next Steps

After creating the cluster proceed to helmfile/cloud-sdk to install shared services.

Cleanup

  • Run "source env_FILE ; ./cleaner" (using the env file you created above)

Note that sometimes AWS has trouble cleaning up when things are or appear in-use. The eksctl command to delete the cluster may thus fail requiring chasing down the noted resources. One of the resources that seems to always linger are LBs. Deleting these manually and restarting cleanup, sometimes works. Other times inspecting the CloudFormation resource for this cluster for errors will lead to discovery of the problematic resources. After you delete these resources manually, you may retry deletion of the CloudFormation stack. That should take care of deleting any remaining resources.