1
0
Fork 0
forked from infra/ansible
ansible/roles/openshift-apps/mote/templates/mote-dc.yml.j2
Ryan Lerch aeb540999e mote - rename yml templates to .j2
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-14 08:37:31 +10:00

74 lines
1.8 KiB
Django/Jinja

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: mote
labels:
app: mote
annotations:
image.openshift.io/triggers: >-
[{"from":{"kind":"ImageStreamTag","name":"mote:latest","namespace":"mote"},"fieldPath":"spec.template.spec.containers[?(@.name==\"mote\")].image","pause":"false"}]
spec:
replicas: 1
revisionHistoryLimit: 5
selector:
matchLabels:
app: mote
template:
metadata:
labels:
app: mote
spec:
containers:
- image: image-registry.openshift-image-registry.svc:5000/mote/mote
name: mote
imagePullPolicy: IfNotPresent
env:
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: redis-password
key: password
volumeMounts:
- mountPath: /srv
name: meetbot
- mountPath: /opt/app/mote/config.py
name: mote-config
readOnly: true
subPath: config.py
resources:
limits:
cpu: 100m
memory: 500Mi
requests:
cpu: '0'
memory: 50Mi
readinessProbe:
httpGet:
path: /
port: 9696
scheme: HTTP
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 30
successThreshold: 1
failureThreshold: 3
livenessProbe:
httpGet:
path: /
port: 9696
scheme: HTTP
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 30
successThreshold: 1
failureThreshold: 3
volumes:
- name: meetbot
persistentVolumeClaim:
claimName: meetbot-storage
- configMap:
defaultMode: 420
name: mote
name: mote-config
restartPolicy: Always