Alan Zhan Blog

Live for nothing, or die for something

Building a Private GKE Cluster with Terraform

Let’s spend about ten minutes together — I’ll walk you through using Terraform to build a private GKE Cluster step by step! Setting Up GCP Create a Service Account First, go to the Google …

Mindset: The New Psychology of Success

Mindset Types Imagine you took a course that was very important to you and that you really enjoyed. Your professor announces the midterm results, and you only scored 60. You’re very …

Kubernetes Core Component: Kubelet

Kubelet Architecture As shown in the kubelet internal component structure diagram below, Kubelet is composed of many internal components: Kubelet API: Including the authenticated API on port 10250, …

Plain English Leetcode - 25 Reverse Nodes in k-Group

25. Reverse Nodes in k-Group https://leetcode.com/problems/reverse-nodes-in-k-group/ HardGiven the head of a linked list, reverse the nodes of the list k at a time, and return the modified list. k is …

The Forrest Gump Investment Method

I remember about three years ago, when I was a complete stock market beginner. Right after learning about the Taiwan stock market, I jumped straight into trading. My first stock was CTBC Financial …

Kubernetes Core Component: Controller Manager

Controller Manager is the automation control center of a Kubernetes cluster, containing over 30 controllers that manage Pod-related, network-related, storage-related operations, and more. Most …

Plain English Leetcode - 70 Climbing Stairs

70. Climbing Stairs https://leetcode.com/problems/climbing-stairs/ EasyYou are climbing a staircase. It takes n steps to reach the top. Each time you can either climb 1 or 2 steps. In how many …

Kubernetes - Node Maintenance and Pod Migration

Our company recently discovered machines on GKE with particularly low resource utilization. Those unused resources are still costing money, so we created a new Node Pool with lower and cheaper …

Plain English Leetcode - 69 Sqrt(x)

69. Sqrt(x) https://leetcode.com/problems/sqrtx/ EasyGiven a non-negative integer x, compute and return the square root of x. Since the return type is an integer, the decimal digits are …

Plain English Leetcode - 433 Minimum Genetic Mutation

433. Minimum Genetic Mutation https://leetcode.com/problems/minimum-genetic-mutation/ MediumA gene string can be represented by an 8-character long string, with choices from 'A', 'C', 'G', and 'T'. …