Files
fedora-infra_ansible/roles/openshift-apps/discourse2fedmsg/templates/deploymentconfig.yml
Patrick Uiterwijk 2440575647 Add discourse2fedmsg secret
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-06-20 13:15:26 +02:00

56 lines
1.2 KiB
YAML

---
apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: discourse2fedmsg
service: discourse2fedmsg
name: discourse2fedmsg
spec:
replicas: 2
selector:
app: discourse2fedmsg
deploymentconfig: discourse2fedmsg
strategy:
resources: {}
template:
metadata:
labels:
app: discourse2fedmsg
deploymentconfig: discourse2fedmsg
spec:
containers:
- image: discourse2fedmsg:latest
name: discourse2fedmsg
env:
- name: APP_MODULE
value: "discourse2fedmsg:app"
- name: DISCOURSE2FEDMSG_SECRET
value: "{{ discourse2fedmsg_secret }}"
ports:
- containerPort: 8080
protocol: TCP
readinessProbe:
timeoutSeconds: 1
initialDelaySeconds: 5
httpGet:
path: /
port: 8080
livenessProbe:
timeoutSeconds: 1
initialDelaySeconds: 30
httpGet:
path: /
port: 8080
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- discourse2fedmsg
from:
kind: ImageStreamTag
name: discourse2fedmsg:latest