File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # 共享网络存储
Original file line number Diff line number Diff line change 1+ apiVersion : app.sealos.io/v1
2+ kind : Template
3+ metadata :
4+ name : share-storage
5+ spec :
6+ title : ' 共享存储'
7+ url : ' https://github.com/labring-sigs/templates'
8+ gitRepo : ' https://github.com/labring-sigs/templates'
9+ author : ' Sealos'
10+ description : ' Any share storage'
11+ readme : ' https://raw.githubusercontent.com/labring-sigs/templates/main/template/share-storage/README.md'
12+ icon : ' https://raw.githubusercontent.com/labring-sigs/templates/main/template/share-storage/nfs.png'
13+ templateType : inline
14+ categories :
15+ - storage
16+ defaults :
17+ app_name :
18+ type : string
19+ value : share-storage-${{ random(8) }}
20+ inputs :
21+ SHARE_STORAGE_SIZE :
22+ description : ' share storage size'
23+ type : number
24+ default : ' 1'
25+ required : true
26+ STORAGE_CLASS :
27+ description : ' storage class name'
28+ type : string
29+ default : ' nfs-csi'
30+ required : true
31+
32+ ---
33+ apiVersion : v1
34+ kind : PersistentVolumeClaim
35+ metadata :
36+ name : ${{ defaults.app_name }}
37+ spec :
38+ accessModes :
39+ - ReadWriteMany
40+ resources :
41+ requests :
42+ storage : ${{ inputs.SHARE_STORAGE_SIZE }}Gi
43+ storageClassName : ${{ inputs.STORAGE_CLASS }}
You can’t perform that action at this time.
0 commit comments