Skip to content

troytop/susecap-tf-eks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automated Deployment of SUSE Cloud Application Platform onto AWS EKS

Deploy EKS with terraform

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)

Client PC setup (linux, mac, windows)

  • 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

Setup cloudflare

  • 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>

Create EKS cluster on your AWS

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

Setup helm repo for SUSE CAP

After the above step is finished, run the following script to get your helm chart ready.

./02-config-helm.sh

Install SUSE CAP (uaa + scf + stratos)

(Working in progress)

./03-install-susecap.sh

Install metrics

(Working in progress)

./04-install-metrics.sh

Install minibrokers

(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

Tear down SUSE CAP and EKS cluster on AWS

To tear down the entire SUSE CAP and EKS cluster on AWS, run the following command:

./10-clean-up.sh

notes

  1. skip ssl validation when registering kubernetes endpoints in stratos
  2. enter "susecap-eks" as name of cluster

About

Deploy SUSE CAP onto AWS EKS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 54.8%
  • HCL 45.2%