mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Replace hardcoded staging conditional logic with `env_suffix` template variable Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
58 lines
1.3 KiB
Django/Jinja
58 lines
1.3 KiB
Django/Jinja
---
|
|
apiVersion: apps.openshift.io/v1
|
|
kind: DeploymentConfig
|
|
metadata:
|
|
name: mdapi
|
|
labels:
|
|
app: mdapi
|
|
service: mdapi
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
app: mdapi
|
|
service: mdapi
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: mdapi
|
|
service: mdapi
|
|
spec:
|
|
containers:
|
|
- name: mdapi
|
|
image: registry/mdapi:latest
|
|
command: ["/metasource/meta"]
|
|
args: ["-location", "/var/tmp", "-loglevel", "info", "dispense", "-hostname", "mdapi{{ env_suffix }}.fedoraproject.org"]
|
|
ports:
|
|
- containerPort: 8080
|
|
volumeMounts:
|
|
- name: data-volume
|
|
mountPath: /var/tmp/
|
|
readinessProbe:
|
|
timeoutSeconds: 5
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 60
|
|
httpGet:
|
|
path: /
|
|
port: 8080
|
|
livenessProbe:
|
|
timeoutSeconds: 15
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 60
|
|
httpGet:
|
|
path: /
|
|
port: 8080
|
|
resources:
|
|
volumes:
|
|
- name: data-volume
|
|
persistentVolumeClaim:
|
|
claimName: mdapi-storage
|
|
triggers:
|
|
- type: ImageChange
|
|
imageChangeParams:
|
|
automatic: true
|
|
containerNames:
|
|
- "mdapi"
|
|
from:
|
|
kind: ImageStreamTag
|
|
name: mdapi:latest
|