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
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
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