ansible/roles/openshift-apps/mote/templates/fedmsg-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

56 lines
1.4 KiB
Django/Jinja

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fedmsg
labels:
app: fedmsg
annotations:
image.openshift.io/triggers: >-
[{"from":{"kind":"ImageStreamTag","name":"mote:latest","namespace":"mote"},"fieldPath":"spec.template.spec.containers[?(@.name==\"fedmsg\")].image","pause":"false"}]
spec:
replicas: 1
selector:
matchLabels:
app: fedmsg
template:
metadata:
labels:
app: fedmsg
spec:
containers:
- image: image-registry.openshift-image-registry.svc:5000/mote/mote
name: fedmsg
command:
- python
- -m
- mote.consume
env:
- name: REDIS_URL
value: "redis://redis.mote.svc.cluster.local"
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: redis-password
key: password
- name: FLASK_CACHE_TYPE
value: RedisCache
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /etc/fedora-messaging/config.toml
name: fedmsg-config
readOnly: true
subPath: config.toml
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: '0'
memory: 50Mi
volumes:
- configMap:
defaultMode: 420
name: fedora-messaging
name: fedmsg-config
restartPolicy: Always