mirror of
https://github.com/thejimnicholson/jenkins.git
synced 2025-12-06 03:30:43 +00:00
Allocate new pvc using provisioner
This commit is contained in:
parent
8a01ced215
commit
fe2694112b
@ -33,3 +33,16 @@ spec:
|
||||
requests:
|
||||
storage: 50Gi
|
||||
volumeName: jenkins-pv
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: jenkins-storage-nfs
|
||||
namespace: jenkins
|
||||
spec:
|
||||
storageClassName: nfs-client
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
@ -30,9 +30,14 @@ spec:
|
||||
volumeMounts:
|
||||
- name: jenkins-vol
|
||||
mountPath: /var/jenkins_home
|
||||
- name: jenkins-vol.new
|
||||
mountPath: /var/jenkins_home.new
|
||||
volumes:
|
||||
- name: jenkins-vol
|
||||
persistentVolumeClaim:
|
||||
claimName: jenkins-storage
|
||||
- name: jenkins-vol.new
|
||||
persistentVolumeClaim:
|
||||
claimName: jenkins-storage-nfs
|
||||
strategy:
|
||||
type: Recreate
|
||||
|
||||
Loading…
Reference in New Issue
Block a user