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 b25908df
authored
Aug 05, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pv pvc 设置改为三副本,并设置模板
1 parent
44b67545
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
2 deletions
autodl_kpl_base/autodl-nfs/4-pv_pvc.yaml
autodl_kpl_base/autodl-nfs/4-pv_pvc.yaml
View file @
b25908d
...
@@ -5,9 +5,9 @@ metadata:
...
@@ -5,9 +5,9 @@ metadata:
name
:
adl-pv
name
:
adl-pv
spec
:
spec
:
nfs
:
nfs
:
path
:
NFS_PATH
##########模板变量,nfs的目录
path
:
NFS_PATH
_1
##########模板变量,nfs的目录
server
:
NFS_SERVER
#############模板变量,nfs的ip
server
:
NFS_SERVER
_1
#############模板变量,nfs的ip
accessModes
:
accessModes
:
-
ReadWriteMany
-
ReadWriteMany
capacity
:
capacity
:
...
@@ -25,3 +25,59 @@ spec:
...
@@ -25,3 +25,59 @@ spec:
resources
:
resources
:
requests
:
requests
:
storage
:
100Gi
storage
:
100Gi
########################2####################
---
apiVersion
:
v1
kind
:
PersistentVolume
metadata
:
name
:
adl-pv2
spec
:
nfs
:
path
:
NFS_PATH_2
##########模板变量,nfs的目录
server
:
NFS_SERVER_2
#############模板变量,nfs的ip
accessModes
:
-
ReadWriteMany
capacity
:
storage
:
500Gi
---
kind
:
PersistentVolumeClaim
apiVersion
:
v1
metadata
:
name
:
adl-pvc2
namespace
:
autodl
spec
:
accessModes
:
-
ReadWriteMany
resources
:
requests
:
storage
:
100Gi
########################3####################
---
apiVersion
:
v1
kind
:
PersistentVolume
metadata
:
name
:
adl-pv3
spec
:
nfs
:
path
:
NFS_PATH_3
##########模板变量,nfs的目录
server
:
NFS_SERVER_3
#############模板变量,nfs的ip
accessModes
:
-
ReadWriteMany
capacity
:
storage
:
500Gi
---
kind
:
PersistentVolumeClaim
apiVersion
:
v1
metadata
:
name
:
adl-pvc3
namespace
:
autodl
spec
:
accessModes
:
-
ReadWriteMany
resources
:
requests
:
storage
:
100Gi
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