Author: jpuyy
-
《excellent advice for living》读书笔记
to-do list VS have-done list 把最关键的做完即可 每年进步一点点 Draw to discover what you see (看看自己看到的和画出来的是不是一样) Write to discover what you think(一直打字,写字,把想的表达出来) Assume they are like you: busy, occupied, distracted. Try again later. It’s amazing how often a second try works. 假设他们和你一样:忙碌、忙碌、心烦意乱。 稍后再试。 第二次尝试的成功率令人惊讶。 habit 习惯 ,都是习惯了,就不用商量了,just do it Good habits can range from the truth of…
-
Local K8s cluster: kind
Use kind to spin up a new cluster brew install kind Create an ha cluster, 3 control-plane, 3 nodes $ mkdir kind-cluster $ cd kind-cluster $ bash -x ha-bootstrap.sh kubectl cluster-info –context kind-ha-dev It’s not stable after docker desktop restarted $ kubectx Switched to context “kind-ha-dev”. $ kubectl get pods E0515 09:10:08.836178 38742 memcache.go:265] couldn’t…
-
心爱的单词本 2023-05-07
quantitative [英] · /ˈkwɒntətətɪv/ [形] 定量的,数量的 conserve [英] · /kənˈsɜːv/ [v] 保存;保护;节约 thrash [英语] · /θræʃ/ [v.] 打,鞭打;猛烈抨击;彻底击败 deque [英] /dɛk/ [n.] 双端队列,双向队列 A deque is a double-ended queue. dominant [英] · /ˈdɒmɪnənt/ [形] 占优势的;支配的;显性的 non-dominant 不占主要的 leap [英] /liːp/ [n] 跳跃;飞跃 [vi] 跳,跃;猛冲 [vt] 使跳过;使超越 keep grinding 保持努力 remainder [英] · /rɪˈmeɪndə(r)/ [n] 剩余物;余数…
-
K8s metrics server
To get the metrics of nodes $ kubectl top nodes error: Metrics API not available We should install metrics-server https://github.com/kubernetes-sigs/metrics-server https://github.com/kubernetes-sigs/metrics-server/issues/1025 E0502 00:40:51.819552 1 scraper.go:140] “Failed to scrape node” err=”Get \”https://192.168.49.2:10250/metrics/resource\”: x509: cannot validate certificate for 192.168.49.2 because it doesn’t contain any IP SANs” node=”minikube” 192.168.49.2 is the node ip
-
心爱的单词本 2023-04-10
From OneNote stereo 立体声 Registrant 注册人 squirrel 松鼠 painstaking “孜孜不倦的 deduction 税收扣除 liability 责任 负债 excerpt 摘要 flat tire 爆胎 caveat [英] · /ˈkæviæt/[n.] 警告,告诫 emphasis 强调 cordless 无线的 menance “威胁”、”恐吓”、”危险”,指某种可能会对他人造成伤害、损失或困扰的情况或行为。 “Bio” 可以作为 “biography” 的简称,指某人的传记或者传记式介绍。比如说,一个音乐家的 “bio” 可能会介绍他的音乐生涯、音乐风格和成就等。 “Hustle” 可以指快速行动或工作,通常表示紧张、忙碌的状态。比如说,”I need to hustle to finish this project before the deadline” 表示需要加快工作速度以在截止日期前完成项目。 “Starkest” 是形容词 “stark” 的最高级形式。”Stark” 的意思是…
-
K8s lifecycle preStop for nginx pod
Trigger pre stop, to let the nginx pod consume the transactions while no new incoming connections lifecycle: preStop: exec: command: – /bin/sh – -c – curl test.xxx.com/prestop-sleep –resolve test.xxx.com:80:127.0.0.1; sleep 60; /wait-shutdown