Setting up ALB Access Logs in EKS using Terraform

My objective is to troubleshoot 502 errors in my load balancer. The first step is to set up access logs. That says to create an S3 bucket, create a policy for it, and then configure the load balancer. I refuse to do this in the console; I’m using terraform to create resources and kubernetes to … Read moreSetting up ALB Access Logs in EKS using Terraform

Run the OpenTelemetry Collector in Kubernetes for Front-End Tracing

TL;DR: Run the OpenTelemetry Collector helm chart with –values=values.yaml pointing to the values.yaml in this gist. Use kubectl get services to find the collector’s URL. The rest of this blog post walks through the whole process of setting this up. This will teach you the why and how of each step, so that you can adjust it to your needs. There’s also … Read moreRun the OpenTelemetry Collector in Kubernetes for Front-End Tracing

PowerShell equivalent of find

TL;DR: gci -r -fi <filename-pattern> My favorite use of find in bash is to find files whose name matches a pattern. For instance, find all the jar files under this directory: bash# find . -name ‘*.jar’ In PowerShell, there’s a program called “find” but it ain’t the same program. Short Answer Instead, use Get-ChildItem. The … Read morePowerShell equivalent of find

Cropping a bunch of pictures to the same dimensions

Ah, command line tools, they’re so fast. And so easy to use on a Mac. Given a bunch of image files in the same dimensions, that you want to crop to a fixed portion of the image: 1) Install imagemagick brew install imagemagick 2) put all the images in a directory by themselves, and cd … Read moreCropping a bunch of pictures to the same dimensions