Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
k8s
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b19723ae
authored
Aug 06, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通过设置不同容量匹配让pv pvc按照序号顺序一一对应
1 parent
605e4ff9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
15 deletions
autodl_kpl_base/kpl-nfs/4-pv_pvc.yaml
autodl_kpl_base/kpl-nfs/4-pv_pvc.yaml
View file @
b19723a
##################1#################
---
apiVersion
:
v1
apiVersion
:
v1
kind
:
PersistentVolume
kind
:
PersistentVolume
metadata
:
metadata
:
name
:
kpl-pv
name
:
kpl-pv
spec
:
spec
:
nfs
:
nfs
:
path
:
NFS_PATH
path
:
NFS_PATH
##########模板变量,nfs的目录
server
:
NFS_SERVER
server
:
NFS_SERVER
#############模板变量,nfs的ip
accessModes
:
accessModes
:
-
ReadWriteMany
-
ReadWriteMany
capacity
:
capacity
:
storage
:
500Gi
storage
:
500Gi
---
---
kind
:
PersistentVolumeClaim
kind
:
PersistentVolumeClaim
apiVersion
:
v1
apiVersion
:
v1
...
@@ -22,20 +24,23 @@ spec:
...
@@ -22,20 +24,23 @@ spec:
-
ReadWriteMany
-
ReadWriteMany
resources
:
resources
:
requests
:
requests
:
storage
:
100Gi
storage
:
500Gi
##################2#################
########################2####################
---
apiVersion
:
v1
apiVersion
:
v1
kind
:
PersistentVolume
kind
:
PersistentVolume
metadata
:
metadata
:
name
:
kpl-pv2
name
:
kpl-pv2
spec
:
spec
:
nfs
:
nfs
:
path
:
NFS_2_PATH
path
:
NFS_2_PATH
##########模板变量,nfs的目录
server
:
NFS_2_SERVER
server
:
NFS_2_SERVER
#############模板变量,nfs的ip
accessModes
:
accessModes
:
-
ReadWriteMany
-
ReadWriteMany
capacity
:
capacity
:
storage
:
500Gi
storage
:
400Gi
---
---
kind
:
PersistentVolumeClaim
kind
:
PersistentVolumeClaim
apiVersion
:
v1
apiVersion
:
v1
...
@@ -47,20 +52,23 @@ spec:
...
@@ -47,20 +52,23 @@ spec:
-
ReadWriteMany
-
ReadWriteMany
resources
:
resources
:
requests
:
requests
:
storage
:
100Gi
storage
:
400Gi
##################3#################
########################3####################
---
apiVersion
:
v1
apiVersion
:
v1
kind
:
PersistentVolume
kind
:
PersistentVolume
metadata
:
metadata
:
name
:
kpl-pv3
name
:
kpl-pv3
spec
:
spec
:
nfs
:
nfs
:
path
:
NFS_3_PATH
path
:
NFS_3_PATH
##########模板变量,nfs的目录
server
:
NFS_3_SERVER
server
:
NFS_3_SERVER
#############模板变量,nfs的ip
accessModes
:
accessModes
:
-
ReadWriteMany
-
ReadWriteMany
capacity
:
capacity
:
storage
:
500Gi
storage
:
300Gi
---
---
kind
:
PersistentVolumeClaim
kind
:
PersistentVolumeClaim
apiVersion
:
v1
apiVersion
:
v1
...
@@ -72,4 +80,4 @@ spec:
...
@@ -72,4 +80,4 @@ spec:
-
ReadWriteMany
-
ReadWriteMany
resources
:
resources
:
requests
:
requests
:
storage
:
100Gi
storage
:
300Gi
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment