mirror of
https://github.com/thejimnicholson/jenkins.git
synced 2025-12-06 03:30:43 +00:00
REmove old pvc
This commit is contained in:
parent
26d3a13384
commit
ccdeda27ee
@ -1,40 +1,5 @@
|
||||
---
|
||||
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
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: jenkins-storage-nfs
|
||||
|
||||
@ -29,14 +29,9 @@ spec:
|
||||
containerPort: 50000
|
||||
volumeMounts:
|
||||
- name: jenkins-vol
|
||||
mountPath: /var/jenkins_home
|
||||
- name: jenkins-vol-new
|
||||
mountPath: /var/jenkins_home.new
|
||||
mountPath: /var/jenkins_home
|
||||
volumes:
|
||||
- name: jenkins-vol
|
||||
persistentVolumeClaim:
|
||||
claimName: jenkins-storage
|
||||
- name: jenkins-vol-new
|
||||
persistentVolumeClaim:
|
||||
claimName: jenkins-storage-nfs
|
||||
strategy:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user