mirror of
https://github.com/thejimnicholson/jenkins.git
synced 2025-12-06 03:30:43 +00:00
35 lines
619 B
YAML
35 lines
619 B
YAML
---
|
|
apiVersion: v1
|
|
kind: PersistentVolume
|
|
metadata:
|
|
name: jenkins-pv
|
|
namespace: jenkins
|
|
labels:
|
|
app: jenkins
|
|
spec:
|
|
storageClassName: "local-path"
|
|
capacity:
|
|
storage: 50Gi
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
persistentVolumeReclaimPolicy: Retain
|
|
mountOptions:
|
|
- nolock
|
|
nfs:
|
|
server: 10.0.96.14
|
|
path: "/mnt/data/jenkins-home"
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: jenkins-storage
|
|
namespace: jenkins
|
|
annotations:
|
|
spec:
|
|
storageClassName: "local-path"
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 50Gi
|
|
volumeName: jenkins-pv |