forked from infra/ansible
74 lines
1.8 KiB
Django/Jinja
74 lines
1.8 KiB
Django/Jinja
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: mote
|
|
labels:
|
|
app: mote
|
|
annotations:
|
|
image.openshift.io/triggers: >-
|
|
[{"from":{"kind":"ImageStreamTag","name":"mote:latest","namespace":"mote"},"fieldPath":"spec.template.spec.containers[?(@.name==\"mote\")].image","pause":"false"}]
|
|
spec:
|
|
replicas: 1
|
|
revisionHistoryLimit: 5
|
|
selector:
|
|
matchLabels:
|
|
app: mote
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: mote
|
|
spec:
|
|
containers:
|
|
- image: image-registry.openshift-image-registry.svc:5000/mote/mote
|
|
name: mote
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: REDIS_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: redis-password
|
|
key: password
|
|
volumeMounts:
|
|
- mountPath: /srv
|
|
name: meetbot
|
|
- mountPath: /opt/app/mote/config.py
|
|
name: mote-config
|
|
readOnly: true
|
|
subPath: config.py
|
|
resources:
|
|
limits:
|
|
cpu: 100m
|
|
memory: 500Mi
|
|
requests:
|
|
cpu: '0'
|
|
memory: 50Mi
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 9696
|
|
scheme: HTTP
|
|
initialDelaySeconds: 5
|
|
timeoutSeconds: 1
|
|
periodSeconds: 30
|
|
successThreshold: 1
|
|
failureThreshold: 3
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 9696
|
|
scheme: HTTP
|
|
initialDelaySeconds: 5
|
|
timeoutSeconds: 1
|
|
periodSeconds: 30
|
|
successThreshold: 1
|
|
failureThreshold: 3
|
|
volumes:
|
|
- name: meetbot
|
|
persistentVolumeClaim:
|
|
claimName: meetbot-storage
|
|
- configMap:
|
|
defaultMode: 420
|
|
name: mote
|
|
name: mote-config
|
|
restartPolicy: Always
|