MCPcopy Index your code
hub / github.com/aws-samples/cdk-eks-fargate

github.com/aws-samples/cdk-eks-fargate @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,567 symbols 2,616 edges 8 files 420 documented · 27%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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 git@github.com: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.

Extension points exported contracts — how you extend this code

CdkEksFargateStackProps (Interface)
(no doc)
lib/cdk-eks-fargate-stack.ts
AwsLoadBalancerControllerProps (Interface)
(no doc)
lib/aws-loadbalancer-controller.ts
NginxServiceProps (Interface)
(no doc)
lib/nginx-service.ts
KubeMutatingWebhookConfigurationProps (Interface)
(no doc)
imports/k8s.ts
HelmValues (Interface)
(no doc)
lib/aws-loadbalancer-controller.ts
KubeMutatingWebhookConfigurationListProps (Interface)
(no doc)
imports/k8s.ts
KubeValidatingWebhookConfigurationProps (Interface)
(no doc)
imports/k8s.ts
KubeValidatingWebhookConfigurationListProps (Interface)
(no doc)
imports/k8s.ts

Core symbols most depended-on inside this repo

toJson
called by 139
imports/k8s.ts
toJson_ObjectMeta
called by 78
imports/k8s.ts
toJson_ListMeta
called by 66
imports/k8s.ts
toJson_LabelSelector
called by 26
imports/k8s.ts
toJson_ObjectReference
called by 11
imports/k8s.ts
toJson_LocalObjectReference
called by 10
imports/k8s.ts
toJson_SecretReference
called by 10
imports/k8s.ts
toJson_PodTemplateSpec
called by 7
imports/k8s.ts

Shape

Method 430
Interface 424
Function 420
Class 292
Enum 1

Languages

TypeScript100%

Modules by API surface

imports/k8s.ts1,551 symbols
lib/aws-loadbalancer-controller.ts5 symbols
lib/nginx-service.ts4 symbols
lib/cdk-eks-fargate-stack.ts4 symbols
lib/eks-fargate-logging.ts3 symbols

For agents

$ claude mcp add cdk-eks-fargate \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact