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
140
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
260
20260113 - NKP Tour Taipei 2026 - 雲端原⽣標準的商業價值:從開源中立到企業 AI 轉型之路
tico88612
0
39
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
44
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
330
20241128 - CNTUG Meetup - Recap: KubeCon + CloudNativeCon North America 2024
tico88612
0
86
20241024 - CNTUG meetup - Kubernetes v1.31 簡單雜談
tico88612
0
140
20220904 - SITCON 2022 - 從 0 到 GitHub Actions,以 Hexo Blog 為例設計專屬的 CI/CD Pipeline
tico88612
0
81
Other Decks in Technology
See All in Technology
CyberAgent YJC Connect
shimaf4979
1
170
AIエージェントの支払い基盤 AgentCore Payments概要
kmiya84377
1
150
[Oracle TechNight#99] 生成AI時代のAI/ML入門 ~ AIとオラクルデータベースの関係 (前半)
oracle4engineer
PRO
2
240
Swift Sequence の便利 API 再発見
treastrain
1
210
GKE Agent SandboxでAIが生成したコードを 安全に実行してみた
lamaglama39
0
210
ServiceによるKubernetes通信制御ーClusterIPを例に
miku01
1
160
試作とデモンストレーション / Prototyping and Demonstrations
ks91
PRO
0
200
新卒エンジニア研修、ハンズオンの設計における課題と実践知/ #tachikawaany
nishiuma
2
140
AI 時代の Platform Engineering
recruitengineers
PRO
1
120
20260513_生成AIを専属DSに_AI分析結果の検品テクニック_ハンズオン_交通事故データ
doradora09
PRO
0
210
QAエンジニアはどうやって プロダクト議論の場に入れるのか?
moritamasami
2
410
古今東西SRE
okaru
1
150
Featured
See All Featured
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
220
The Limits of Empathy - UXLibs8
cassininazir
1
320
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.6k
sira's awesome portfolio website redesign presentation
elsirapls
0
230
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
230
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.5k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
190
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Thoughts on Productivity
jonyablonski
76
5.1k
Are puppies a ranking factor?
jonoalderson
1
3.4k
Making Projects Easy
brettharned
120
6.6k
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!