GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AndrzejKomarnicki/awscdk-eks-fargate-cluster: Boilerplate CDK code for deploying Express.js using Amazon EKS on AWS Fargate

BranchesTags
Open more actions menu

Latest commit

 

History

29 Commits
29 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
lib
lib
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
cdk.json
cdk.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

awscdk-eks-fargate-cluster

Serverless Kubernetes deployment with Amazon EKS on Fargate using AWS CDK v2 (Cloud Development Kit).


This CDK app boilerplate will deploy a 'nodeless' EKS cluster and default Fargate profile that matches all pods from the "kube-system" and "default" namespaces. It's also configured to run CoreDNS on Fargate.

The Kubernetes resource currently added is an Express.js "Hello World" API.

Also comes equipped with the following:

  • AWS Load Balancer Controller with annotations in Ingress and Service K8s resources
  • Kubernetes Secrets Encrypted with AWS KMS via EKS Encryption Provider
  • AdminRole that can be assumed and provides EKS Console viewer access
  • A VPC with two AZs and NAT GWs

When you cdk deploy this app you will notice that an output will be printed with the update-kubeconfig command, copy and paste it in your shell in order to connect to your EKS cluster with the "masters" role.

*** Note: You have to specify your AWS account # under /bin.


Troubleshooting

If you have issues with the CoreDNS deployment, validate that the pod template has the following Annotations: eks.amazonaws.com/compute-type: fargate

$ kubectl describe deployment coredns --namespace kube-system

Trigger a rollout of the coredns Deployment:

$ kubectl rollout restart -n kube-system deployment coredns

About

Boilerplate CDK code for deploying Express.js using Amazon EKS on AWS Fargate

Topics

awsaws-cdkboilerplatecdkcloud-development-kitdevopsdockerekseks-clusterexpressfargateinfrastructure-as-codekubernetesserverlessserverless-kubernetes-cluster

Resources

Readme
Activity

Stars

8 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.