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 60ccdf4d
authored
Aug 06, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pv lable selector
1 parent
b19723ae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
autodl_kpl_base/autodl-nfs/4-pv_pvc.yaml
autodl_kpl_base/autodl-nfs/4-pv_pvc.yaml
View file @
60ccdf4
...
...
@@ -3,6 +3,8 @@ apiVersion: v1
kind
:
PersistentVolume
metadata
:
name
:
adl-pv
labels
:
pv
:
adl-pv
spec
:
nfs
:
path
:
NFS_PATH
##########模板变量,nfs的目录
...
...
@@ -24,12 +26,17 @@ spec:
resources
:
requests
:
storage
:
500Gi
selector
:
matchLabels
:
pv
:
adl-pv
########################2####################
---
apiVersion
:
v1
kind
:
PersistentVolume
metadata
:
name
:
adl-pv2
labels
:
pv
:
adl-pv2
spec
:
nfs
:
path
:
NFS_2_PATH
##########模板变量,nfs的目录
...
...
@@ -51,12 +58,18 @@ spec:
resources
:
requests
:
storage
:
400Gi
selector
:
matchLabels
:
pv
:
adl-pv2
########################3####################
---
apiVersion
:
v1
kind
:
PersistentVolume
metadata
:
name
:
adl-pv3
labels
:
pv
:
adl-pv3
spec
:
nfs
:
path
:
NFS_3_PATH
##########模板变量,nfs的目录
...
...
@@ -78,3 +91,7 @@ spec:
resources
:
requests
:
storage
:
300Gi
selector
:
matchLabels
:
pv
:
adl-pv3
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