-
Fixed: Duplicated Cluster IPs in a Kubernetes Cluster
A Cluster IP is an IP address allocated in the cluster’s virtual LAN, usually allocated to Kubernetes Services. As a user nobody should care about which cluster IP a service would get because we will use the service-name.namespace-name DNS name which will map to that IP automatically. In my case, some services in a GKE…
-
The Upgrade of Kubernetes Ingress Nginx
The ingress-nginx container image I’ve been using was v0.25, and that’s more than 1 year old. The recent release is v0.44 but it’s a big leap from 25 to 44 and I’ve found some major differences between the 2 versions. Version 0.25 implemented API version of networking.k8s.io/v1beta1 while version 0.44 has networking.k8s.io/v1. Here are samples…
-
一时冲动,入手特斯拉二代电墙(PowerWall 2)
特斯拉(Tesla)电墙二代(PowerWall2)已经上市一段时间了。我早就想装一个,因为家里太阳能发电系统已经用了很多年,省钱效果显著,但早晚高峰时段依旧要依赖电网,而家用电池系统可以弥补太阳能系统的这个缺点,用自家发的电供应早晚高峰家用。 但是获得老婆的赞同票相当不容易。 首先当然是钱!在猫本电墙2 + 备电网关 + 材料 + 人工要14k,这是我比较多家供应商后找到的最好价格。这不是个小数目。 虽然我用电磁炉取代了煤气炉,但是按照自家的用电规律,指望电墙在十年内把自己身价省出来是不现实的 自家所处位置电网还算稳定,一年停电一次两次而已,所以应付断电这个借口也很勉强 关键时刻还得感谢土澳总理,他不停的说,只有火电(烧煤/油/天然气)才能保证家里的灯能点亮。老婆对此很是反感,投资太阳能发电后家里从电网取电量下降了60%左右,再努力一下99%能源自己并不是很遥远的。而像我们一样在屋顶安装太阳能PV板的家庭已经很普遍,只是安装家用电池的还少。况且,感谢COVID这一年没花什么钱在旅游上,于是老婆同意了这笔花销! 然而,貌似和我们有一样想法的家庭还真不少,这是2020年11月的事情。我交了定金后被告知还要等至少二个月才能轮到安装。然后,在漫长的等待中,突然我接到电话说附近有一家取消了安装,所以那个名额可以转给我,幸福来的很突然,我也懒得去想为啥有人会取消安装。 安装日那天电工天刚亮就来了,午饭前完成安装。 由于安装位置会晒到下午的太阳,我用木材和遮阳布给电墙做了个罩子,感觉土洋结合的很好。电墙是不怕淋雨的,但高温肯定会折寿的。几周以后再看看我家用电报告,轻松拿到榜首 几点心得: 电墙二代充满后有13.5度电可用,一般保留10%应急后有12度电 所以除了连日阴雨,一般家庭基本可以自给自足的 虽然瞬间最大功率有7KW,但持续最大功率5KW,所以家里总功率避免超过5KW 如果白天因为阴雨充电不足,只要“熬”过晚高峰,即使用电网的电也是相对便宜的 保证电墙联网,否则特斯拉会缩短质保期 🙂
-
Remove GPS Coordinates From Images Before Uploading to SNS
The recent events(I meant around NYD 2021) in US are quite shocking to me. Trump and his supporters were banned from major SNS platforms The one which didn’t ban them, Parler, got banned from the cloud platforms which Parler runs on, eg. AWS, iOS, Android Parler’s data got scraped by a group of hackers All…
-
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…