Skip to content

Commit

Permalink
Create pv.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
romeokienzler authored Apr 17, 2023
1 parent 498885e commit 6fa6b64
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions kubespray/pv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: localpv
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storageClassName: local-storage
local:
path: /pairsdatafs04/kubernetes
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- node1
- node2
- node3
- node4

0 comments on commit 6fa6b64

Please sign in to comment.