1
0
Fork 0
forked from infra/ansible

datanommer: moved deploymentconfig.yml to deployment.yml

Signed-off-by: Pedro Moura <pmoura@redhat.com>
This commit is contained in:
Pedro Moura 2026-04-16 18:17:32 -03:00 committed by Kevin Fenzi
commit 6f7b1a7043

View file

@ -0,0 +1,67 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: datanommer
labels:
app: Datanommer
spec:
replicas: 1
selector:
matchLabels:
app: Datanommer
strategy:
type: Recreate
template:
metadata:
labels:
app: Datanommer
annotations:
image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"datanommer:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"datanommer\")].image"}]'
spec:
initContainers:
- name: alembic-upgrade
image: image-registry.openshift-image-registry.svc:5000/datanommer/datanommer:latest
command: ["/opt/app-root/bin/alembic", "-c", "/etc/fedora-messaging/alembic.ini", "upgrade", "head"]
volumeMounts:
- name: fedora-messaging-config-volume
mountPath: "/etc/fedora-messaging"
readOnly: true
containers:
- name: datanommer
image: image-registry.openshift-image-registry.svc:5000/datanommer/datanommer:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
limits:
memory: 2Gi
volumeMounts:
- name: fedora-messaging-config-volume
mountPath: "/etc/fedora-messaging"
readOnly: true
- name: fedora-messaging-ca-volume
mountPath: /etc/pki/fedora-messaging/cacert.pem
subPath: cacert.pem
readOnly: true
- name: fedora-messaging-crt-volume
mountPath: /etc/pki/fedora-messaging/datanommer-cert.pem
subPath: datanommer-cert.pem
readOnly: true
- name: fedora-messaging-key-volume
mountPath: /etc/pki/fedora-messaging/datanommer-key.pem
subPath: datanommer-key.pem
readOnly: true
volumes:
- name: fedora-messaging-config-volume
configMap:
name: fedora-messaging-config
- name: fedora-messaging-ca-volume
secret:
secretName: fedora-messaging-ca
- name: fedora-messaging-crt-volume
secret:
secretName: fedora-messaging-crt
- name: fedora-messaging-key-volume
secret:
secretName: fedora-messaging-key