Category: Opensource

  • [ Solved ] WiFi Kept Disconnecting in Arch Linux

    Since my home WiFi 6e upgrade, my Alienware laptop running Arch Linux couldn’t connect to WiFi anymore. To be precise, it could connect but just kept disconnecting. I didn’t have the appetite to troubleshoot it until recently. When I looked into the system logs, I saw a lot of things going on but basically iwd…

  • Resource Optimisation Made Simple in Kubernetes Clusters

    TL; DR: I made a shell script which prints out the CPU and memory usage vs allocation for each pod in a Kubernetes cluster. Then it’s easy to tell where to optimise. Here it is: Just in case, you need the metrics-server for the kubectl top command to function. 🙂

  • Unit Testing in Jsonnet

    For the time being(April 2025), there doesn’t seem to be a de facto Jsonnet framework for unit testing. Yet with simple assert statements it’s very helpful to have tests for shared functions, etc. 🙂

  • Slow Refresh in ArgoCD? Scale It Up

    TL; DR: I merged a few ArgoCD clusters together into a central ArgoCD last week, just to have 1 ArgoCD to manage multiple GKE clusters. Obviously this will cause some performance issue – the more apps I have, the longer it takes to refresh in ArgoCD. Here’s a simple way to scale it up. For…

  • A Deep-merge Function for Jsonnet

    TL; DR: As of March 2025, there’s no deep merge function in Jsonnet’s standard library yet. So I wrote something myself. Not sure if I should do a PR to contribute but my last attempt was still there hanging 🙂

  • An Anatomy of an ArgoCD ApplicationSet

    TL; DR: Here’s a working ArgoCD Application Set in YAML with probably all popular features + comments. I wouldn’t expect anyone got theirselves here without knowing what an ArgoCD ApplicationSet is for but just in case. A good reference: https://medium.com/@geoffrey.muselli/argocd-at-scale-with-applicationset-go-template-7f326d8a61f3 🙂

  • Solved: Kustomize Unable to Parse SM or JSON Patch

    Recently I noticed that my ArgoCD manifests I used to patch using kustomize don’t work with latest version of kustomize anymore. The error I got looks like: My patch.yaml had something like this: There’s no syntax error in my files as this worked before. I tried to remove sections from the patch file and see…

  • Solved: Jsonnet Language Server in Zed Failed to Start

    Since some update recently my Zed editor on my Macbook had trouble to start the Jsonnet language server, so the syntax validation and auto-complete are gone. I had a look at the error message but it didn’t really hinted anything: At least it told me where the server’s binary is located. So I went to…