TL;DR, CDN Cache is not easy. Context: I have a S3 bucket for all my site’s static contents. It’s fronted by Akamai and served through edge.tomking.xzy. It all started with a simple question: is edge.tomoking.xyz set to cache or not? But after one Akamai property lookup, the…
Tom Tech Notes
Recent content on Tom Tech Notes
- Website
- tomking.xyz · all feeds from this site
- Feed URL
https://tomking.xyz/index.xml
Read it in your FeedListing reader
Or add to: Feedly Inoreader Raw feed
Latest posts
-
CDN Cache is Easy, Right?
-
About
I’m Tom, and this is where I write down the stuff I’d otherwise forget by next Tuesday. I started out in IT admin work, mostly knowing which button to click, then figuring out PowerShell was a much faster way to click it for me. That snowballed. Exchange automation turned into…
-
How to Survive This Crazy Ai World
Lets admit it, this is not best time to be a software engineer or for anyone whose job is basically sitting in front of a computer. AI is moving so fast these days, and it’s so overwhelming to a lot of us. Earlier this year, I buried my head in the sand. I convinced myself it…
-
How to Set Up AWS MCP in VS Code with AWS SSO
The AWS MCP examples are straightforward when you use the default AWS credential chain. My setup was a little different because I sign in with AWS SSO through a script that writes credentials to a named AWS profile. The missing piece was telling the AWS MCP server which profile…
-
How to debug Python script with uv in VS Code
Under .vscode folder: Configure your launch.json as below: { "version": "0.2.0", "configurations": [ { "name": "Python: My uv Debug Test", "type": "debugpy", "request": "launch", "program": "./path/to/python/script.py", "console": "integratedTerminal", "args": ["--arg1",…
-
Setup Meross Smart Garage Door Opener with Merlin Roller door
Instead of talking about Kubernetes and Observability, this post is all about home automation. I have long been wanting to make my garage door control a bit smarter than using the usual remotes. Recently I was finally able to found a cheap and easy solution! It all started with…
-
How to monitor Python app in Kubernetes with New Relic APM
Running a Python Flask web app on Kubernetes without monitoring is like driving without a dashboard: you won’t know when things go south until they do! Here’s how to set up New Relic APM for your app with minimal fuss (and a little fun). Pre-requisites Python and Docker ready to…
-
My Cka Experience
Recently I was able to tick CKA off my TODO list. It’s a interesting and unique exam in compare to other certs I have done in my career. Below are some points I want to share to help out folks who plan to take the exam. Was it hard? The exam is not super difficult in my opinion.…
-
Fix Ubuntu APT Update Error After Kubernetes Package Repo Change
Kubernetes legacy package repositories (apt.kubernetes.io and yum.kubernetes.io) have been deprecated and frozen starting from September 13, 2023. It is strongly recommended to use the new package repositories hosted at pkgs.k8s.io. It is also required in order to install…
-
Fix Docker Container Golang Execute Format Error
Bumped into error Exec format error when tried to run a Go binary within a Docker container. The Go binary is compiled from my M2 Macbook. M2 Macbook uses ARM CPU arch. As a result the Go binary was by default complied with ARM CPU arch, which is different from the Docker…
-
Kubernetes Cluster Fail to Start with Error: Error getting node
After a recent power outage, my Kubernetes cluster failed to come back online. I cannot connect to kube-apiserver through kubectl anymore. Upon checking the controller node, I can see these errors with kubelet service. Feb 03 00:43:06 tom-lab1 kubelet[3475]: E0203…
-
Deploy Metrics-server in Kubernetes with TLS enabled
Metrics-server is one of the most common service deployed in their Kubernetes clusters. It is designed to be used for autoscaling purposes. In my case, I simply want to have a way to easily check my nodes status with kubectl top node. In this post I will walk you through the…
-
Run Pihole on Kubernetes
In this post I will show how I deployed Pihole onto my local Kubernetes cluster. In compare with some other online tutorials, this deployment saves Pihole configuration onto persistent volumes, so you won’t need to reconfigure everything after pod recreation. By using…
-
How to remove NotReady Pods from Kubernetes
Problem You got a pod left in NotReady status due to failed helm chart installation or resource deployment. ➜ ✗ kubectl get pods NAME READY STATUS RESTARTS AGE release-0.11-kube-promethe-admission-create-7j7fz 1/2 NotReady 2 8m1s Tried to remove the pod with kubectl delete pod…
-
Build Full Stack Webapp Using Cloudflare Worker and Github Pages
I have been following the COVID situation in Shanghai lately. Intentionally or not, it is surprisingly hard to find a daily chart to reflect the proper case numbers overthere. To solve this problem, I decided to build a webapp just does exactly that: a simple chart the displays…
-
Setup Kubernetes Cluster from scratch
This post I will try to go through the steps I took to build a Kubernetes cluster from scratch. The physcial host is an old Dell Latitude laptop with 8GB memory, which runs VMware ESXi 6.7. The plan is to run 3 nodes on it with one of the VM set as master. Each server runs…
-
I wrote a Cloudflare CLI tool
I just wrote a Cloudflare CLI tool called flare 🔥! Check it out from my GitHub repo git@github.com:tomkingchen/cloudflare-cli.git. The tool does some basic queries to Cloudflare API and retrieves information based on the parameters provided. The reason for creating the tool is…
-
Bye Bye Google Blogger🖐, Hello Cloudflare Pages😘
I had enough of Google Blogger! It has terrible editing UI for and I constantly receiving SPAM comments for my posts😤. Time to move my blog off to somewhere better! I was thinking to run a Wordpress server. Though I think it’s way cooler to run my blog simplely without worrying…
-
Setup Cloudflare for S3 Bucket
One way to improve website performance is to use CDN to distribute the static contents of your site. S3 is a common place to host such type contents. In this post, I will show you how to publish a S3 bucket using Cloudflare. In fact, the screen shots used in this blogpost is…
-
Setup Cloudflare for AWS API Gateway
In this post I will show how to setup Cloudflare for a Serverless app built with AWS API Gateway and Lambda. For demonstration, I use a simple web app I built (rona.tomking.xyz). The app is hosted in AWS Sydney region. It displays daily Victoria COVID case and that’s it. To use…