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
ChengHao Yang
April 10, 2026
Technology
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
20260729 - KubeCon + CloudNativeCon Japan 2026 - How Community Infrastructure Helped Grow Taiwan’s Open Source Contributors
tico88612
0
7
20260726 - iPlayground 2026 - Contributing to Apple Container Without Writing Swift: A Cloud Native Engineer's Open Source Journey
tico88612
0
21
20260313 - Grafana & Friends Taipei #1 - Kubernetes v1.36 的開發雜記:那些困在 Alpha 加護病房太久的 Metrics
tico88612
0
320
20260113 - NKP Tour Taipei 2026 - 雲端原⽣標準的商業價值:從開源中立到企業 AI 轉型之路
tico88612
0
69
20251023 - KubeSummit 2025 - Kubespray and IaC Practice Automating On-Premise Kubernetes Deployment
tico88612
0
250
20251020 - Cathay Open Source Meetup #2 - Cloud Native Ecosystem in Taiwan
tico88612
0
61
20250810 - CNTUG Meetup #69 / COSCUP 2025 - Non-Code Contributions for Beginners: Introduction to the Kubernetes Release Team
tico88612
0
140
20250429 - CNTUG Meetup #67 / DevOps Taiwan Meetup #69 - Deep Dive into Tetragon: Building Runtime Security and Observability with eBPF
tico88612
0
480
20241128 - CNTUG Meetup - Recap: KubeCon + CloudNativeCon North America 2024
tico88612
0
130
Other Decks in Technology
See All in Technology
Digitization部 紹介資料
sansan33
PRO
2
7.7k
え?フロントエンドエンジニアの ワイがインフラも!?
puku0x
1
550
グローバル基準のSREは、運用現場でどう機能したか:成熟度アセスメントの実践 / SRE NEXT 2026
sorawatanabe
0
220
Genie Codeハンズオン基礎編
taka_aki
1
120
ラジオの科学
frievea
0
310
猫付きpingコマンドを自作
uyuki234
0
230
Invisible to AI? Making TYPO3 Sites Quotable by AI Search Systems
wolfgangwagner
0
200
【CEDEC2026】『Relink』を拡張せよ - 『GRANBLUE FANTASY: Relink - Endless Ragnarok』の開発速度と品質を守るCI運用
cygames
PRO
0
160
トヨタ⽣産⽅式(TPS)⼊⾨
recruitengineers
PRO
3
760
サイバー捜査員研修(前半)
nomizone
1
2k
Forza Horizon 6 のテレメトリ機能で 自動運転に使えそうな学習データを集める話
henjin0
0
170
ホームラボ紹介
y_sera15
0
160
Featured
See All Featured
A Tale of Four Properties
chriscoyier
163
24k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.2k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.3k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
420
RailsConf 2023
tenderlove
30
1.5k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
200
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
200
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
860
HDC tutorial
michielstock
2
790
Code Review Best Practice
trishagee
74
20k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
520
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!