-
Fixed gsutil OSError: Permission Denied
When trying to run gsutil in a kubernetes Job as nobody to backup stuff to Google Cloud Storage(GCS), I encountered simple error messages like But it didn’t say where or how the permission was denied! It worked fine if the container was run as root user so the problem is not with Google Cloud. I…
-
Ethereum(Crypto) Mining with Nvidia 3070(Ampere) on Ubuntu 20.04 with Renewable Energy
I’ve done Crypto mining before and since the price is now almost all time high I’ll do that again, but only with my solar energy. Mining with dirty coal power isn’t ethical any more as the climate change has accelerated in the past few years. To start ETH mining here are some prerequisites: Energy efficient…
-
Kubernetes: How to Use Affinity
Affinity is a great feature in Kubernetes to assign pods to nodes based on labels. In my case, I have a hybrid Kubernetes cluster with half nodes are of X86 architecture and other half of ARM architecture, and I need to deploy the X86 only containers to the X86 nodes. Of course I can build…
-
Atom Won’t Start in OS X
I’ve updated Atom.io editor on MacBook Pro from 1.52 to 1.54 earlier today. Strange thing is that after the update Atom got stuck when starting up — only menu is shown and can’t open any docs. By my experience on Linux, when something doesn’t work I run in in a terminal and see what error…
-
Kubernetes and GitOps with Flux CD V2.0
GitOps could be the next big thing in cloud automation so I’d give it a try with my in house hybrid Kubernetes cluster. I was recommended to try Flux CD and there’s a good reference project initiated by my colleage: k8s-gitops. However, in order to fully understand how to use Flux CD, I chose to…
-
Google Nest Wifi: A Speaker With Mesh Wifi
I have been using a NetGear Nighthawk R7000 for many years, time for an upgrade. The Google Nest Wifi is very easy to setup, only need to connect the Nest Wifi router to existing router/modem and the rest can be done on a phone with Google Home app. Here are some good stuff I got…
-
Build Multi-arch Docker Images on Ubuntu Linux
Since I’ve made my Raspberry PI Kubernetes cluster hybrid, now I have good reasons to build multi-arch(which means multi CPU architecture) Docker images so I don’t care if my pod is deployed to a Raspberry PI node or a X86 node. I followed a lot of instructions from this guide and finally made it work…