Commit f4ba910f authored by Luca Cinquini's avatar Luca Cinquini
Browse files

Using dynamic volume provisioning for Solr pod.

parent 519f45dc
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -31,3 +31,20 @@ spec:
    - ReadWriteOnce
  hostPath:
    path: /esg/data
---
# volume holding Solr index
apiVersion: v1
kind: PersistentVolume
metadata:
  name: solr-index-pv
  labels:
    type: local
    stack: esgf
    app: solr
spec:
  capacity:
    storage: 1Gi
  accessModes:
    - ReadWriteOnce
  hostPath:
    path: /esg/solr-index
+16 −1
Original line number Diff line number Diff line
@@ -21,6 +21,20 @@ spec:
    stack: esgf
    app: solr
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: solr-index-pvc
  labels:
    stack: esgf
    app: solr
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
@@ -44,4 +58,5 @@ spec:
          mountPath: /esg/solr-index
      volumes:
      - name: solr-index
        emptyDir: {}
        persistentVolumeClaim:
          claimName: solr-index-pvc