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
200
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
12
20260726 - iPlayground 2026 - Contributing to Apple Container Without Writing Swift: A Cloud Native Engineer's Open Source Journey
tico88612
0
30
20260313 - Grafana & Friends Taipei #1 - Kubernetes v1.36 的開發雜記:那些困在 Alpha 加護病房太久的 Metrics
tico88612
0
330
20260113 - NKP Tour Taipei 2026 - 雲端原⽣標準的商業價值:從開源中立到企業 AI 轉型之路
tico88612
0
75
20251023 - KubeSummit 2025 - Kubespray and IaC Practice Automating On-Premise Kubernetes Deployment
tico88612
0
260
20251020 - Cathay Open Source Meetup #2 - Cloud Native Ecosystem in Taiwan
tico88612
0
65
20250810 - CNTUG Meetup #69 / COSCUP 2025 - Non-Code Contributions for Beginners: Introduction to the Kubernetes Release Team
tico88612
0
150
20250429 - CNTUG Meetup #67 / DevOps Taiwan Meetup #69 - Deep Dive into Tetragon: Building Runtime Security and Observability with eBPF
tico88612
0
490
20241128 - CNTUG Meetup - Recap: KubeCon + CloudNativeCon North America 2024
tico88612
0
140
Other Decks in Technology
See All in Technology
markdown-poster Introduction
kazamori
0
450
Master Dataグループ紹介資料
sansan33
PRO
1
4.9k
Genie Code ワークショップ 基礎編 / Genie-Code-Workshop-fundamental
databricksjapan
PRO
0
240
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.5k
When Token Pruning is Worse than Random: Understanding Visual Token Information in VLLMs
sansantech
PRO
0
210
20260903 Tokyo Jazug Night #62 | Azure エンジニアよ、 その環境は本当にセキュアか?
olivia_0707
0
150
Self Healing Rollouts: Automating Production Fixes with Agentic AI
kdubois
0
120
APIセキュリティを組織で実現するには~注力する点と設計・実装に入れたい対策~
riiimparm
3
840
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
5k
現場の暗黙知を継承するAIエージェント — 対話から生まれる長期記憶と Skills
atsukish
0
200
Bet AI Day 2026丨Production-Ready AI Agents — エンタープライズの実務を任せるための設計と運用
layerx
PRO
1
780
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
12
87k
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
My Coaching Mixtape
mlcsv
0
300
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.9k
Darren the Foodie - Storyboard
khoart
PRO
3
3.8k
ラッコキーワード サービス紹介資料
rakko
1
4.6M
The agentic SEO stack - context over prompts
schlessera
0
880
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
260
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
700
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Believing is Seeing
oripsolob
1
200
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!