mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-27 03:52:09 +08:00
Try binding the persistant storage on nuancier
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
@@ -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: ""
|
||||
Reference in New Issue
Block a user