Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 543 Bytes

File metadata and controls

31 lines (20 loc) · 543 Bytes

WebService construct simple example

Represents a web application exposed via an AWS Application Load Balancer.

It includes:

  • Deployment,
  • Service,
  • Ingress.

Usage

In order to synthesize the example to Kubernetes YAML, you need to run the following command:

npx cdk8s synth

This will produce dist/app.k8s.yaml file which you can then apply to your cluster:

kubectl apply -f dist/app.k8s.yaml

Testing

You can run the tests with the following command:

npm test -- examples/simple-web-service