Skip to content

Instantly share code, notes, and snippets.

@lvthillo
Created April 3, 2018 17:40
Show Gist options
  • Save lvthillo/59bc55df0658dd6e295d1ebdf4788221 to your computer and use it in GitHub Desktop.
Save lvthillo/59bc55df0658dd6e295d1ebdf4788221 to your computer and use it in GitHub Desktop.
Create persistent volume for jenkins in minikube
apiVersion: v1
kind: PersistentVolume
metadata:
name: jenkins-pv
namespace: jenkins-project
spec:
storageClassName: jenkins-pv
accessModes:
- ReadWriteOnce
capacity:
storage: 20Gi
persistentVolumeReclaimPolicy: Retain
hostPath:
path: /data/jenkins-volume/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment