review-stats: add Persistent Volume Claim

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2020-03-21 13:03:43 +01:00 committed by Pierre-Yves Chibon
parent 2f07d57c5a
commit 4d77ef00ec
3 changed files with 20 additions and 2 deletions

View file

@ -28,6 +28,9 @@
app: review-stats app: review-stats
template: configmap.yml template: configmap.yml
objectname: configmap.yml objectname: configmap.yml
- role: openshift/object
app: review-stats
template: pvc.yml
- role: openshift/start-build - role: openshift/start-build
app: review-stats app: review-stats
buildname: builder-build buildname: builder-build

View file

@ -16,15 +16,19 @@ spec:
- name: build - name: build
image: docker-registry.default.svc:5000/review-stats/builder:latest image: docker-registry.default.svc:5000/review-stats/builder:latest
env: env:
- name: BUILD_ENV
value: "{{ env_short }}"
volumeMounts: volumeMounts:
- name: review-stats-config - name: review-stats-config
mountPath: /etc/review-stats mountPath: /etc/review-stats
readOnly: true readOnly: true
- name: build-output
mountPath: /review-stats
readOnly: false
restartPolicy: Never restartPolicy: Never
startingDeadlineSeconds: 600 startingDeadlineSeconds: 600
volumes: volumes:
- name: review-stats-config - name: review-stats-config
configMap: configMap:
name: review-stats-configmap name: review-stats-configmap
- name: build-output
persistentVolumeClaim:
claimName: openshift-{{env_short}}-reviewstats

View file

@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: openshift-{{env_short}}-reviewstats
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
storageClassName: ""