review-stats: add Persistent Volume Claim
Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
parent
2f07d57c5a
commit
4d77ef00ec
3 changed files with 20 additions and 2 deletions
|
@ -28,6 +28,9 @@
|
|||
app: review-stats
|
||||
template: configmap.yml
|
||||
objectname: configmap.yml
|
||||
- role: openshift/object
|
||||
app: review-stats
|
||||
template: pvc.yml
|
||||
- role: openshift/start-build
|
||||
app: review-stats
|
||||
buildname: builder-build
|
||||
|
|
|
@ -16,15 +16,19 @@ spec:
|
|||
- name: build
|
||||
image: docker-registry.default.svc:5000/review-stats/builder:latest
|
||||
env:
|
||||
- name: BUILD_ENV
|
||||
value: "{{ env_short }}"
|
||||
volumeMounts:
|
||||
- name: review-stats-config
|
||||
mountPath: /etc/review-stats
|
||||
readOnly: true
|
||||
- name: build-output
|
||||
mountPath: /review-stats
|
||||
readOnly: false
|
||||
restartPolicy: Never
|
||||
startingDeadlineSeconds: 600
|
||||
volumes:
|
||||
- name: review-stats-config
|
||||
configMap:
|
||||
name: review-stats-configmap
|
||||
- name: build-output
|
||||
persistentVolumeClaim:
|
||||
claimName: openshift-{{env_short}}-reviewstats
|
||||
|
|
11
roles/openshift-apps/review-stats/templates/pvc.yml
Normal file
11
roles/openshift-apps/review-stats/templates/pvc.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: openshift-{{env_short}}-reviewstats
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
storageClassName: ""
|
Loading…
Add table
Add a link
Reference in a new issue