Skip to content

redcom/topology-aware-routing-tf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Topology aware hints demo

This code is used to demostrate usage of TopologyAwareHints introduced on Kubernetes 1.27.

What's included

  • An Amazon EKS cluster
  • AWS Distro for OpenTelemetry (ADOT) Operator
  • Sample Application

Prerequisites

  • Basic understanding of Linux operating systems and Kubernetes.
  • An AWS account.
  • Administrator or equivalent access to deploy the required resources.
  • AWS Command Line Interface (AWS CLI) (v2.6.3+) installed and configured.
  • Terraform CLI installed
  • git CLI installed
  • kubectl, and helm client installed

Deploy

Run the following command to deploy the cluster. Replace ap-southeast-1 to your Region. This process may take 20–30 minutes.

export AWS_REGION="ap-southeast-1"
terraform init
terraform plan
terraform apply -auto-approve

Once the Terraform has completed, then you can set up kubectl by running this command:

aws eks --region $AWS_REGION update-kubeconfig --name tar-demo-cluster

Run the following command to deploy the sample application:

cd ../kubernetes
kubectl apply --server-side -f common.yaml
kubectl apply --server-side -f simple.yaml

Get the endpoint for user interface (UI) component by running the following command:

kubectl get svc ui-lb -n ui -o jsonpath={.status.loadBalancer.ingress[0].hostname}

You can access the demo application by accessing http://<link>/home. This displays an example online shopping site.

About

Topology aware routing demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%