Kiwi leeazuredevops pipeline 的基礎工作元件介紹最近在接觸 azure devops 的 pipeline,做個學習的紀錄!此篇只會簡單的介紹工作單位元件,不會講到變數 (ex. Parameters, Variables, Resources) 的內容~14 min read·2 days ago----
Kiwi leeAzureDevops 中的 continueOnError , condition=succeededOrFailed(), task.complete透過這幾個參數,可以決定我們使用 shell step 遇到錯誤時,該採取的行動。可以將自身的 step 標記為永遠的成功,避免干擾其他 step;可以忽略其他 step 的成功或失敗,將須執行;可以自行設定檢查,並且宣告失敗。以上雖然可以寫在 shell step…8 min read·2 days ago----
Kiwi leeGunicorn 管理 workers 的 arbiter.py 機制從 source code 追查一下 gunicorn 是如何透過 arbiter 物件來管理 worker 的 life cycle,甚至是 rolling update。將介紹 initialize, loop, signal handling, spawn/kill…16 min read·Apr 18, 2024----
Kiwi lee如何處理 Containerd 的 snapshots 佔據過的 disk已經把 image 清除掉,但仍然佔用很大空間時,該如何找到 root cause 並且成功的釋放空間6 min read·Apr 2, 2024----
Kiwi leeContainerd 的 image/content/snapshot 在檔案系統的連結介紹如何從檔案系統,看到 image 下載到 content 後,並且解壓縮到 snapshot,預備 container 的啟動。5 min read·Mar 21, 2024----
Kiwi leeContainerd 的 image 儲存機制到 content, snapshot 的概念介紹從 containerd 的 metadata 說起,再講到 image 是如何從 remote registry 拉下來,與 containerd 是如何用 content 記錄 image 的資訊,最後帶到真正運作的實體檔案 snapshot。大概介紹了 image 到預備…15 min read·Mar 19, 2024----
Kiwi leecontainerd 的 CLI - ctrcontainerd 的 CLI,一般可能比較常聽到 nerdctl ,一款仿照 docker 做的 CLI。實際上用 ctr 指令,可以更好的操作 containerd 的功能4 min read·Mar 15, 2024----
Kiwi leeetcd 啟動 cluster 概述etcd 建立 cluster,有三種方式,static/etcd discovery/dns discovery,在我們自建的 k8s 中,是用 systemd 搭配 static 的方式長出來 etcd cluster,相對起來比較方便~8 min read·Jan 25, 2024----
Kiwi leeETCD 的備份還原與 cluster id mismatch在 k8s 中 etcd 扮演極度重要的角色,當要在 cluster 做些手術,確保 etcd 的備份是極度重要,因此這篇將介紹如何備份還原 etcd,及在這過程中遇到的 clusterID mismatch 的原因9 min read·Jan 25, 2024----