forked from infra/ansible
add mirrormanager deployment
Signed-off-by: Pedro Moura <pmoura@redhat.com>
This commit is contained in:
parent
9d6c4314b3
commit
a633985c58
1 changed files with 42 additions and 0 deletions
|
|
@ -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() }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue