Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
使用 Kubernetes CSI 與 Ceph 實現 Trustzone
Search
chun wang
July 20, 2019
Technology
450
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
使用 Kubernetes CSI 與 Ceph 實現 Trustzone
chun wang
July 20, 2019
Other Decks in Technology
See All in Technology
WasmをRustにする
sansantech
PRO
0
280
パッチ更新でterraform initが落ちた日
grimoh
1
140
Refining Active Record
shugo
0
160
Classmethod Company Deck
satoshi7
1
730
Rustuna: Rustによる高速なOptuna実装
pfn
PRO
0
200
Webの常識が通じないHTMLメールのダークモード
teamlab
PRO
0
130
hackers_champloo_2026_tidb
makocchi
0
170
PHPカンファレンス関西の招待状 / Invitation to PHP Conference Kansai
ykanoh
0
210
Rust で関数型ドメインモデリング
takonda
0
170
AI コーディングと人間の認知スループット / CTO Night & Day 2026 Morning Session / AI Coding and Human Cognitive Throughput
prog893
5
1.3k
How to Design Configuration for Rails Applications
willnet
1
830
フロントエンドカンファレンス関西2026 - 速すぎるUIに、待ち時間を
teamlab
PRO
0
190
Featured
See All Featured
Claude Code のすすめ
schroneko
67
230k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Exploring anti-patterns in Rails
aemeredith
4
540
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
The Cost Of JavaScript in 2023
addyosmani
55
10k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
BBQ
matthewcrist
90
10k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Raft: Consensus for Rubyists
vanstee
142
7.8k
Building AI with AI
inesmontani
PRO
1
1.3k
Transcript
使用Kubernetes CSI與Ceph 實現Trustzone 林春旺@NUTC 1
Agenda Why need CSI What is CSI How to use
CSI with Kubernetes What is Trustzone How to implement Trustzone Summary 2
Why need CSI 3
Kubernetes - Volume(emptyDir) 4
Kubernetes - Volume(hostPath) 5
Kubernetes - Persistent Storage Persistent Volume(PV) Persistent Volume Claim(PVC) StorageClass
6
Kubernetes - In-Tree Volume Plugin 7 External Storage https://medium.com/google-cloud/understanding-the-container-storage-interface-csi-ddbeb966a3b
What is CSI 8
Kubernetes - Out-Tree Volume Plugin 9 External Storage https://medium.com/google-cloud/understanding-the-container-storage-interface-csi-ddbeb966a3b
How to use CSI with Kubernetes 10
Deploy Ceph-CSI Services Deploy RBACs for sidecar containers and node
plugins kubectl create -f csi-provisioner-rbac.yaml kubectl create -f csi-nodeplugin-rbac.yaml Deploy CSI sidecar containers: kubectl create -f csi-cephfsplugin-provisioner.yaml Deploy CSI CephFS driver: kubectl create -f csi-cephfsplugin.yaml 11 https://github.com/ceph/ceph-csi/blob/master/docs/deploy-cephfs.md
Deploy the Storage Class kubectl create -f secret.yaml kubectl create
-f storageclass.yaml kubectl create -f pvc.yaml kubectl create -f pod.yaml 12
Secret 13
StorageClass 14
PersistentVolumeClaim(PVC) 15
Pod 16
What is Trustzone 17
Trustzone 18 https://www.microcontrollertips.com/embedded-security-brief-arm-trustzone-explained/ 在ARM Cortex手 機處理器中分隔 出沒有安全性要 求的執行區域和 可信任的安全區 域。
How to implement Trustzone 19
Ceph - Architecture 20 http://docs.ceph.com/docs/mimic/architecture/
Ceph - Placement Groups 21 http://docs.ceph.com/docs/mimic/rados/operations/placement-groups/ 1.pg_id = hash(obj_id) mod
pg_num 2.CRUSH(pg_id)取得對應OSD
Ceph - CRUSH Maps 22 http://docs.ceph.com/docs/mimic/rados/operations/crush-map/
Ceph - CRUSH Maps 23 host normal { id -2
alg straw2 hash 0 item osd.1 weight 0.910 item osd.2 weight 0.910 item osd.3 weight 0.910 } host secret { id -3 alg straw2 hash 0 item osd.4 weight 0.910 item osd.5 weight 0.910 item osd.6 weight 0.910 }
Ceph - CRUSH Rule 24 rule normal { id 1
type replicated min_size 1 max_size 10 step take normal step chooseleaf firstn 0 type host step emit } rule secret{ id 2 type replicated min_size 1 max_size 10 step take secret step chooseleaf firstn 0 type host step emit }
Ceph - File Layouts (Extended Attributes) ceph osd pool create
normal_data 128 normal ceph osd pool create secret_data 128 secret setfattr -n ceph.dir.layout -v “pool=normal_data" /mnt/normal/ setfattr -n ceph.dir.layout -v “pool=secret_data” /mnt/secret/ 25 http://docs.ceph.com/docs/jewel/cephfs/file-layouts/
Summary 26