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:
|
appowners:
|
||||||
- cverna
|
- cverna
|
||||||
- pingou
|
- pingou
|
||||||
|
|
||||||
- role: openshift/object
|
- role: openshift/object
|
||||||
app: nuancier
|
app: nuancier
|
||||||
template: imagestream.yml
|
template: imagestream.yml
|
||||||
objectname: imagestream.yml
|
objectname: imagestream.yml
|
||||||
|
|
||||||
- role: openshift/object
|
- role: openshift/object
|
||||||
app: nuancier
|
app: nuancier
|
||||||
template: buildconfig.yml
|
template: buildconfig.yml
|
||||||
objectname: buildconfig.yml
|
objectname: buildconfig.yml
|
||||||
|
|
||||||
|
- role: openshift/object
|
||||||
|
app: mdapi
|
||||||
|
file: storage.yml
|
||||||
|
objectname: storage.yml
|
||||||
|
|
||||||
- role: openshift/object
|
- role: openshift/object
|
||||||
app: nuancier
|
app: nuancier
|
||||||
template: configmap.yml
|
template: configmap.yml
|
||||||
|
|
|
@ -40,6 +40,8 @@ spec:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /opt/app-root/config/
|
mountPath: /opt/app-root/config/
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: data-volume
|
||||||
|
mountPath: /var/cache/nuancier/
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
|
@ -56,6 +58,9 @@ spec:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: nuancier-configmap
|
name: nuancier-configmap
|
||||||
|
- name: data-volume
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: nuancier-storage
|
||||||
|
|
||||||
triggers:
|
triggers:
|
||||||
- type: ConfigChange
|
- 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