Open InfoSec812 opened 6 years ago
The PVC definition would look like:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
volume.beta.kubernetes.io/storage-class: glusterfs-storage
volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/glusterfs
name: maven-cache
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 5Gi
status:
accessModes:
- ReadWriteMany
capacity:
storage: 5Gi
@InfoSec812 why are you enforcing the use of Gluster for this backend? Also hardcoding the storageclass name is not a good idea, we should leave this open as we do for other templates so the user can use their existing default storageclass if this exist or use any available PV
@haithamshahin333 FYI
Add a PVC to the CI/CD project which can be used as part of a containerTemplate in a Jenkinsfile so that Maven and OWASP Dependency Check data can be cached to improve build performance.
The Jenkinsfile changes would look like: