GithubHelp home page GithubHelp logo

cdk-eks-fargate's Introduction

CDK with EKS on Fargate

This repo contains code sample demonstrating how to leverage cdk, cdk8s and cdk8s+ to provision an EKS cluster with Fargate node groups, deploy workloads and expose Kubernetes services.

High Level Architecture

Prerequisites

In addition to an AWS account with permissions to create and manage Amazon EKS cluster, S3 bucket, AWS fargate and the Application Load Balancer, the following tools are also required:

  • AWS CDK >= 1.93.0 and cdk bootstrap is already done.
  • Kubernetes command line tool kubectl.
  • A current version of nodejs.

What is being deployed

  • VPC with private subnets.
  • EKS cluster with Fargate nodegroup.
  • Application Load Balancer.
  • S3 bucket for K8s workloads.

Usage

Simply deploy the stack with AWS CDK

git clone [email protected]:aws-samples/cdk-eks-fargate.git
cd cdk-eks-fargate
npm install
npm run build
cdk deploy

Please note the dployment will fail if your AWS account is not CDK bootstrapped yet. In the case, simply run "cdk bootstrap" then re-run "cdk deploy" again.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

cdk-eks-fargate's People

Contributors

amazon-auto avatar dependabot[bot] avatar floknip avatar jasperw01 avatar jasperw02 avatar johnbradley avatar van-vothanh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cdk-eks-fargate's Issues

No ALB created

cdk deploy went through successfully but seems like there is not ALB created.

$ kubectl get ingress -A     
NAMESPACE   NAME          CLASS    HOSTS   ADDRESS   PORTS   AGE
nginx       api-ingress   <none>   *                 80      20m

Did not reference an existing VPC. Pods seem to be ok and created. Any idea where to look at? Many thanks in advance

deploy failed due to missing bucket

[0%] start: Publishing 50e10880d134a01b440991fc77d217f39f01c2d56945215ee9a3b81187c6f3b1:current
[10%] fail: No bucket named 'cdktoolkit-stagingbucket-1mdu5a7avdvjg'. Is account xxxacou bootstrapped?
[10%] start: Publishing c691172cdeefa2c91b5a2907f9d81118e47597634943344795f1a844192dd49c:current
[20%] fail: No bucket named 'cdktoolkit-stagingbucket-1mdu5a7avdvjg'. Is account xxxacou bootstrapped?
[20%] start: Publishing bafd50ae9f214e496ff8c72c6425f93dca3ccd590e20963706d5d610d9c75757:current
[30%] fail: No bucket named 'cdktoolkit-stagingbucket-1mdu5a7avdvjg'. Is account xxxacou bootstrapped?
[30%] start: Publishing e9882ab123687399f934da0d45effe675ecc8ce13b40cb946f3e1d6141fe8d68:current
[40%] fail: No bucket named 'cdktoolkit-stagingbucket-1mdu5a7avdvjg'. Is account xxxacou bootstrapped?
[40%] start: Publishing 844c1a4b13479b359ea0e607dccb4a04b73e22cf88cf9b64feed2c5f0de213c0:current
[50%] fail: No bucket named 'cdktoolkit-stagingbucket-1mdu5a7avdvjg'. Is account xxxacou bootstrapped?
[50%] start: Publishing ff8d00f9cedcafaf1ab299446ed2500b61b0b88ab40f066d05b26ff66bd58b15:current
[60%] fail: No bucket named 'cdktoolkit-stagingbucket-1mdu5a7avdvjg'. Is account xxxacou bootstrapped?
[60%] start: Publishing 10e0d4bba7ae4b96280b39e3351d41c9fd4487d0e005c1e18f2d50bf056b1608:current
[70%] fail: No bucket named 'cdktoolkit-stagingbucket-1mdu5a7avdvjg'. Is account xxxacou bootstrapped?
[70%] start: Publishing 9538b0f34da5dcc6443d0939a62235f47d615b962b7007a77b9387a3d50fc71b:current
[80%] fail: No bucket named 'cdktoolkit-stagingbucket-1mdu5a7avdvjg'. Is account xxxacou bootstrapped?
[80%] start: Publishing f0cbf17adc8139095eb0b4ef3c4292042f21d8c1a89620d1d0d8e8566ad0481d:current
[90%] fail: No bucket named 'cdktoolkit-stagingbucket-1mdu5a7avdvjg'. Is account xxxacou bootstrapped?
[90%] start: Publishing a57dd698fd3a2c2946468534f2e7d2d6094e9dc6597561ba0e17b8c4b48f6643:current
[100%] fail: No bucket named 'cdktoolkit-stagingbucket-1mdu5a7avdvjg'. Is account xxxacou bootstrapped?
x k8s-app-on-eks-fargate-stack failed: Error: Failed to publish one or more assets. See the error messages above for more information.
at Object.publishAssets (/usr/lib/node_modules/aws-cdk/lib/util/asset-publishing.ts:25:11)
at Object.deployStack (/usr/lib/node_modules/aws-cdk/lib/api/deploy-stack.ts:232:3)
at CdkToolkit.deploy (/usr/lib/node_modules/aws-cdk/lib/cdk-toolkit.ts:180:24)
at initCommandLine (/usr/lib/node_modules/aws-cdk/bin/cdk.ts:209:9)
Failed to publish one or more assets. See the error messages above for more information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.