maubot: acutally define the persistant storage

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
Ryan Lercho 2023-08-16 15:19:10 +10:00
parent b414a3e238
commit 2e35cec0c1
3 changed files with 9 additions and 4 deletions

View file

@ -26,6 +26,11 @@
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/start-build - role: openshift/start-build
app: maubot app: maubot
buildname: maubot-build buildname: maubot-build

View file

@ -35,7 +35,7 @@ spec:
- name: config - name: config
mountPath: /config mountPath: /config
readOnly: true readOnly: true
- name: data - name: maubot-storage
mountPath: /maubot mountPath: /maubot
readinessProbe: readinessProbe:
timeoutSeconds: 1 timeoutSeconds: 1
@ -53,6 +53,6 @@ spec:
- name: config - name: config
configMap: configMap:
name: config name: config
- name: data - name: maubot-storage
persistentVolumeClaim: persistentVolumeClaim:
claimName: data claimName: maubot-storage

View file

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: data name: maubot-storage
spec: spec:
accessModes: accessModes:
- ReadWriteMany - ReadWriteMany