ansible/roles/openshift-apps/maubot/files/deploymentconfig.yml
Ryan Lerch 2e35cec0c1 maubot: acutally define the persistant storage
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2023-08-16 15:19:10 +10:00

58 lines
1.3 KiB
YAML

---
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
name: maubot
labels:
app: maubot
spec:
replicas: 1
selector:
app: maubot
deploymentconfig: maubot
strategy:
type: Rolling
activeDeadlineSeconds: 21600
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
template:
metadata:
creationTimestamp: null
labels:
app: maubot
deploymentconfig: maubot
spec:
containers:
- name: maubot
image: registry/maubot:latest
ports:
- containerPort: 8080
volumeMounts:
- name: config
mountPath: /config
readOnly: true
- name: maubot-storage
mountPath: /maubot
readinessProbe:
timeoutSeconds: 1
initialDelaySeconds: 5
httpGet:
path: /
port: 8080
livenessProbe:
timeoutSeconds: 1
initialDelaySeconds: 20
httpGet:
path: /
port: 8080
volumes:
- name: config
configMap:
name: config
- name: maubot-storage
persistentVolumeClaim:
claimName: maubot-storage