This script will deploy an EKS cluster in the following region with these instance sizes.
- region: us-east-1
- instance size: 3 xlarge (8GB RAM) worker nodes across different AZs
- The above configuration will cost around $0.6 per hour (or around $432 per month)
- Open AWS Account (may require credit card verification)
- Setup admin user with programmatic and console access
- IAM > Add group > admin (with AdminAccess Policy)
- IAM > Add user > enable prog and console access and associate with admin group
- Download credentials CSV
- Install AWS CLI
- Download and install
- Run
aws configure
(input API keys wiith default region to us-east-1) - Validate aws cli installation with
aws ec2 describe-instances
and expect some output without errors.
- Install kubectl and helm
- Install aws-iam-authenticator
- Install terraform
- Install flarectl
- Register a domain and transfer the domain to cloudflare
- Obtain cloudflare global API token and save it into ~/.cloudflare/credentials
Here's the example of the ~/.cloudflare/credentials
file:
#! /bin/bash -e
export CF_API_KEY=<Cloudflare Global API token>
export CF_API_EMAIL=<Your Email Address for Cloudflare>
Run the build script to create your EKS cluster on your AWS.
git clone https://github.com/dsohk/susecap-tf-eks.git
cd susecap-tf-eks
cd eks
./01-build-eks.sh
After the above step is finished, run the following script to get your helm chart ready.
./02-config-helm.sh
(Working in progress)
./03-install-susecap.sh
(Working in progress)
./04-install-metrics.sh
(Working in progress)
./05-install-minibroker.sh
Refer to SUSE CAP doc to continue the deployment of CAP on your EKS https://www.suse.com/documentation/cloud-application-platform-1/singlehtml/book_cap_guides/book_cap_guides.html#sec.cap.install-uaa-prod
To tear down the entire SUSE CAP and EKS cluster on AWS, run the following command:
./10-clean-up.sh
- skip ssl validation when registering kubernetes endpoints in stratos
- enter "susecap-eks" as name of cluster