All Projects → aws-samples → Aws Xray Kubernetes

aws-samples / Aws Xray Kubernetes

Licence: apache-2.0
Code examples showing how to run AWS X-Ray on a Kubernetes cluster for deep application insights.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Aws Xray Kubernetes

Miteb Frontend
Online portal to book events and rooms for clubs of MIT, Manipal ✨
Stars: ✭ 18 (-30.77%)
Mutual labels:  aws
Localstack Spring Boot
Spring Boot AutoConfiguration for LocalStack
Stars: ✭ 22 (-15.38%)
Mutual labels:  aws
Lambda Layer Sharp
An AWS lambda layer with pre-built sharp node module optimised for minimal layer size
Stars: ✭ 25 (-3.85%)
Mutual labels:  aws
Lambdalogs
A CLI tool to trace AWS Lambda calls over multiple CloudWatch log groups.
Stars: ✭ 18 (-30.77%)
Mutual labels:  aws
Aws Step Functions Constructor
VSCode extension to visualize AWS step functions
Stars: ✭ 22 (-15.38%)
Mutual labels:  aws
Laravel Aws Sns
Laravel package for the AWS SNS Events
Stars: ✭ 24 (-7.69%)
Mutual labels:  aws
Ansible Modules
Custom ansible modules
Stars: ✭ 17 (-34.62%)
Mutual labels:  aws
Lambda Deployment Example
Automated Lambda Deployments with Terraform & CodePipeline
Stars: ✭ 25 (-3.85%)
Mutual labels:  aws
Awesome Cdk
A collection of awesome things related to the AWS Cloud Development Kit (CDK)
Stars: ✭ 915 (+3419.23%)
Mutual labels:  aws
Offensive Terraform.github.io
Offensive Terraform Website
Stars: ✭ 25 (-3.85%)
Mutual labels:  aws
Aws Lambda Workshop
Some incremental examples suitable to host an AWS Lambda Functions workshop
Stars: ✭ 18 (-30.77%)
Mutual labels:  aws
Opshell
DevOps Toolkit for Every Cloud on Every Cloud
Stars: ✭ 19 (-26.92%)
Mutual labels:  aws
Aws Elasticache Retail Dashboard
AWS ElastiCache for Redis driven real-time retail dashboard
Stars: ✭ 24 (-7.69%)
Mutual labels:  aws
S3 Permission Checker
Check read, write permissions on S3 buckets in your account
Stars: ✭ 18 (-30.77%)
Mutual labels:  aws
Aws Lambda Poppler Layer
AWS Lambda Poppler Layer
Stars: ✭ 25 (-3.85%)
Mutual labels:  aws
Serverless Aws Lambda Node Postgres
Serverless AWS Lambda with Node.js,Postgres Rest API with Sequelize.
Stars: ✭ 18 (-30.77%)
Mutual labels:  aws
Github To S3 Lambda Deployer
⚓️ GitHub webhook extension for uploading static pages to AWS S3 directly after commiting to master via Lambda written in Node.js
Stars: ✭ 23 (-11.54%)
Mutual labels:  aws
Cfn Generic Custom Resource
CloudFormation generic custom resource provider
Stars: ✭ 26 (+0%)
Mutual labels:  aws
Terraform Modules
Terraform Modules
Stars: ✭ 25 (-3.85%)
Mutual labels:  aws
Ansible Meta Dynamic Inventory
Naming is hard. This wrapper script allows you to use set notation with dynamic host groups.
Stars: ✭ 24 (-7.69%)
Mutual labels:  aws

aws-xray-kubernetes

Code examples showing how to run AWS X-Ray on a Kubernetes cluster for deep application insights. Please also see the acompanying blog post for background information.

Changelog

  • 04/05/2020 Clean up permissions for X-Ray daemon. Expose tcp and udp port.
  • 03/31/2020 Update deployment specs to latest k8s version. Use official AWS X-Ray Docker image.
  • 03/17/2020 Update sample app dependencies

Run AWS X-Ray on Kubernetes

The xray-daemon folder contains the code required to build and deploy an AWS X-Ray daemon Docker image and deploy this to an existing EKS or Kubernetes cluster.

Images have been built and pushed to Docker Hub for easier consumption of this project.

Deploying

Set up the correct permissions in AWS IAM so your pod can utilize. Utilize the EKS feature for IAM for Service Accounts. See the file xray-k8s-daemonset.yaml or EKS Userguide for setup instructions. Then run kubectl apply -f xray-k8s-daemonset.yaml to install the AWS X-Ray daemons on your Kubernetes cluster.

Fallback option is to attache the IAM policy named arn:aws:iam::aws:policy/AWSXRayDaemonWriteAccess to the worker nodes in your cluster.

Demo apps

Two simple demo applications are provided to showcase how AWS X-Ray enables deep application insights into a microservices architecture.

Simply run kubectl apply -f k8s-deploy.yml to install both services. Look up the endpoint for service-a and send a couple of requests against this endpoint. Switch to the AWS X-Ray console and see how the traces are showing up in the console.

License

This project is licensed under the Apache 2.0 License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].