This code is used to demostrate usage of TopologyAwareHints
introduced on Kubernetes 1.27.
- An Amazon EKS cluster
- AWS Distro for OpenTelemetry (ADOT) Operator
- Sample Application
- 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 installedkubectl
, andhelm
client installed
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.