1
0
Fork 0
forked from infra/ansible

add mirrormanager deployment

Signed-off-by: Pedro Moura <pmoura@redhat.com>
This commit is contained in:
Pedro Moura 2026-02-16 18:12:49 -03:00 committed by Kevin Fenzi
commit a633985c58

View file

@ -0,0 +1,42 @@
{% from "_macros.yml.j2" import common_volume_mounts, common_volumes, common_env, security_context with context %}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
labels:
app: mirrormanager
spec:
replicas: 1
selector:
matchLabels:
app: mirrormanager
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
template:
metadata:
labels:
app: mirrormanager
annotations:
image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"mirrormanager2:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"mirrormanager\")].image"}]'
spec:
containers:
- name: mirrormanager
image: mirrormanager2:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: APP_MODULE
value: "deploy.wsgi"
- name: APP_CONFIG
value: "/etc/mirrormanager/gunicorn.conf.py"
{{ common_env() }}
volumeMounts:
{{ common_volume_mounts() }}
volumes:
{{ common_volumes() }}
{{ security_context() }}