Skip to content

Commit 2265bee

Browse files
committed
feat: add share-storage template and update README for shared network storage
1 parent dd9e564 commit 2265bee

3 files changed

Lines changed: 44 additions & 0 deletions

File tree

template/share-storage/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 共享网络存储

template/share-storage/index.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 }}

template/share-storage/nfs.png

2.15 KB
Loading

0 commit comments

Comments
 (0)