Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
20260410 - CNTUG meetup #72 - DiskImage Builder...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
ChengHao Yang
April 10, 2026
Technology
160
0
Share
20260410 - CNTUG meetup #72 - DiskImage Builder 介紹:以 Kubespray CI 打造 RockyLinux 10 Cloud Image 為例
ChengHao Yang
April 10, 2026
More Decks by ChengHao Yang
See All by ChengHao Yang
20260313 - Grafana & Friends Taipei #1 - Kubernetes v1.36 的開發雜記:那些困在 Alpha 加護病房太久的 Metrics
tico88612
0
280
20260113 - NKP Tour Taipei 2026 - 雲端原⽣標準的商業價值:從開源中立到企業 AI 轉型之路
tico88612
0
46
20251023 - KubeSummit 2025 - Kubespray and IaC Practice Automating On-Premise Kubernetes Deployment
tico88612
0
210
20251020 - Cathay Open Source Meetup #2 - Cloud Native Ecosystem in Taiwan
tico88612
0
46
20250810 - CNTUG Meetup #69 / COSCUP 2025 - Non-Code Contributions for Beginners: Introduction to the Kubernetes Release Team
tico88612
0
120
20250429 - CNTUG Meetup #67 / DevOps Taiwan Meetup #69 - Deep Dive into Tetragon: Building Runtime Security and Observability with eBPF
tico88612
0
430
20241128 - CNTUG Meetup - Recap: KubeCon + CloudNativeCon North America 2024
tico88612
0
90
20241024 - CNTUG meetup - Kubernetes v1.31 簡單雜談
tico88612
0
150
20220904 - SITCON 2022 - 從 0 到 GitHub Actions,以 Hexo Blog 為例設計專屬的 CI/CD Pipeline
tico88612
0
83
Other Decks in Technology
See All in Technology
R&D 祭 2024 UE5で絵コンテ・作画の制作支援ツールをつくる話
olmdrd
PRO
0
190
オライリーイベント登壇資料「鉄リサイクル・産廃業界におけるAI技術実応用のカタチ」
takarasawa_
0
420
AI Agent に“攻略本”を渡したら、150フォームの移行が回り始めた話/登壇資料(高橋 悟生)
hacobu
PRO
0
150
AI時代に、 データアナリストがデータエンジニアに異動して
jackojacko_
0
1.1k
10サービス以上のメール到達率改善を地道に継続的に進めている話 / Continue to improve email delivery rates across multiple services
yamaguchitk333
6
2.2k
Databricks 月刊サービスアップデートまとめ 2026年04月号
tyosi1212
0
130
The Making of AI Chips
pfn
PRO
0
310
AI-Assisted Contributions and Maintainer Load - PyCon US 2026
pauloxnet
1
180
AWS WAFの運用を地道に改善し、自社で運用可能にするプラクティス
andpad
1
580
Swift Sequence の便利 API 再発見
treastrain
1
290
20260516_SecJAWS_Days
takuyay0ne
2
520
実践 TanStack Start ― 新規プロダクトを開発して確立した、サーバーとクライアント境界の設計パターン / Practical TanStack Start Server-Client Boundary Patterns
kaminashi
1
120
Featured
See All Featured
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
44k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
530
Music & Morning Musume
bryan
47
7.2k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
510
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
150
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
A Soul's Torment
seathinner
6
2.8k
The Invisible Side of Design
smashingmag
302
52k
How to Ace a Technical Interview
jacobian
281
24k
Typedesign – Prime Four
hannesfritz
42
3k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
180
Transcript
ChengHao Yang @ CNTUG meetup #72 DiskImage Builder 介紹 以
Kubespray CI 打造 RockyLinux 10 Cloud Image 為例 1
2 • CNCF Ambassador • Co-organizer @ CNTUG • Lead
organizer @ KCD Taipei 2025 • Maintainer @ Kubespray • Release Team @ Kubernetes v1.32~v1.36 • Contributor @ Kubernetes • Contributor @ Container $ whoami ChengHao Yang (tico88612)
3 • 這不是單純的 DiskImage Builder 介紹。 • 要介紹問 AI 就好,真正使
用 的話......。 • 本場演講沒什麼技術含量,單純 PR 作者菜雞 一 枚。 • 調查了半年都沒結果(實際上調查 1 個 月 ,沒共識 5 個 月 ) • 直到有 人 來問 Rocky Linux 10 為什麼還沒寫 支 援。 • 調查細節真的太多,時間也算久,漏掉還請 見 諒。 • 部分知識點是 PR 合併後整理和 AI 辯論的結果,錯誤請直接糾正。 免責聲明 Disclaimer
I. Kubespray CI 簡介 4
5 https://github.com/kubernetes-sigs/kubespray/commit/4aa588e48151ca3fac055a33c5a65640c35f025e
Kubespray Initial Commit 2015/10/04 • GitHub Actions GA ———— 2019/11/11
• GitLab 8.0 整合並發布 GitLab CI ———— 2015/09/22 • Prow (test-infra) First commit ———— 2015/08/21 • Kubernetes First commit ———— 2014/06/07 6
7 Fastfail CI GitLab CI E2E KubeVirt VM E2E KubeVirt
VM E2E KubeVirt VM GitHub PR Contributor
嗯?以前沒有 KubeVirt 啊? 8
GCE + Ansible create VM 9
Equinix Packet + Terraform 10
Oracle VM + (ELASTX + Terraform) 11
12 https://github.com/kubernetes-sigs/kubespray/pull/11132
II. Rocky Linux 10 的問題 13
14 https://gitlab.com/kargo-ci/kubernetes-sigs-kubespray/-/jobs/11089189222
15 https://docs.cilium.io/en/stable/operations/system_requirements/#linux-kernel
16
17 https://github.com/kubernetes-sigs/kubespray/pull/12355#discussion_r2217751129
18 https://github.com/kubernetes-sigs/kubespray/pull/12513/ fi les
19 https://github.com/kubernetes-sigs/kubespray/commit/d2029c1640bb71f01595ef406b425d4abb936727
20 https://github.com/kubernetes-sigs/kubespray/pull/12513/ fi les
21 https://github.com/kubernetes-sigs/kubespray/pull/12355
22 https://github.com/kubernetes-sigs/kubespray/pull/12355
III. 建立 OS Image 23
建立 OS Image • DiskImage Builder 可以做 Rocky Linux 10
• 加入套件 kernel-module-extra • 匯出並打包成 Docker Image • 完成? 24
25
Package Installs • 原本 目 錄上,有 package-installs.yaml 就會 自 動安裝和解除安裝套件
26
27 https://gitlab.com/kargo-ci/kubernetes-sigs-kubespray/-/jobs/12589789892
Image 容量不夠? • DIB_IMAGE_EXTRA_SIZE 可以加上空間,預設 DIB_IMAGE_SIZE 的 60% • 還是會出現容量不夠的問題?
• 實際 用 KubeVirt 載入後,發現 VM 並沒有把擴充的容量吃進去。 • 缺少 cloud-init-growpart 套件讓 Cloud Init 自 動擴充。 28
29
30 https://gitlab.com/kargo-ci/kubernetes-sigs-kubespray/-/jobs/12590831511
連線不到?Firewalld 搞 鬼 • Firewalld 內建在 Rocky Linux 10 當中,預設會擋連線。
• 解除安裝 fi rewalld! • 但發現解除安裝沒有執 行 到 • 自己 寫! 31
32
33
IV. Takeaway 34
Takeaway • Cilium 依功能有需要的 Kernel Module • DiskImage Builder 可以客製化
Cloud Image • Cloud Image 並不會 自 動擴張硬碟,是因為有套件 (cloud-init-growpart) • Rocky Linux 有預載 Firewalld,由於是 CI 環境,可以選擇關閉 35
每 月 聚會 + Call for Speaker • 官 方
網站:https://cloudnative.tw • Cloud Native Taiwan User Group 是 CNCF 認可的在地社群。 • 活動皆免費*限額報名參與。 • 投稿後並完成演講,我們將會贈 送 CNCF Store 一 件禮物! CNTUG meetup 36 徵稿連結 Telegram 群組 Facebook 社團 * 僅收場地費
37 • Website: https://tico.tw • Facebook: @tico88612 • Instagram: @__tico88612__
• GitHub: @tico88612 • LinkedIn: in/tico88612 • Telegram: @tico88612 Thank You! Please feel free to contact me!