Try binding the persistant storage on nuancier
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
ade7d1882a
commit
ba293d4ce5
3 changed files with 23 additions and 0 deletions
|
@ -15,15 +15,22 @@
|
|||
appowners:
|
||||
- cverna
|
||||
- pingou
|
||||
|
||||
- role: openshift/object
|
||||
app: nuancier
|
||||
template: imagestream.yml
|
||||
objectname: imagestream.yml
|
||||
|
||||
- role: openshift/object
|
||||
app: nuancier
|
||||
template: buildconfig.yml
|
||||
objectname: buildconfig.yml
|
||||
|
||||
- role: openshift/object
|
||||
app: mdapi
|
||||
file: storage.yml
|
||||
objectname: storage.yml
|
||||
|
||||
- role: openshift/object
|
||||
app: nuancier
|
||||
template: configmap.yml
|
||||
|
|
|
@ -40,6 +40,8 @@ spec:
|
|||
- name: config-volume
|
||||
mountPath: /opt/app-root/config/
|
||||
readOnly: true
|
||||
- name: data-volume
|
||||
mountPath: /var/cache/nuancier/
|
||||
readinessProbe:
|
||||
timeoutSeconds: 1
|
||||
initialDelaySeconds: 5
|
||||
|
@ -56,6 +58,9 @@ spec:
|
|||
- name: config-volume
|
||||
configMap:
|
||||
name: nuancier-configmap
|
||||
- name: data-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: nuancier-storage
|
||||
|
||||
triggers:
|
||||
- type: ConfigChange
|
||||
|
|
11
roles/openshift-apps/nuancier/files/storage.yml
Normal file
11
roles/openshift-apps/nuancier/files/storage.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: nuancier-storage
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 20Gi
|
||||
storageClassName: ""
|
Loading…
Add table
Add a link
Reference in a new issue