bullish/k8s/app/rqscheduler.yaml
Ameya Shenoy d1e5d96fcf
fix: move secrets to a k8s secret
Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
2021-02-13 09:37:06 +05:30

33 lines
623 B
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: bullish-scheduler
spec:
selector:
matchLabels:
app: bullish-scheduler
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
template:
metadata:
labels:
app: bullish-scheduler
spec:
containers:
- name: bullish-backend
image: codingcoffee/bullish-backend
command:
- "/bin/sh"
- "-c"
- "python manage.py rqscheduler"
envFrom:
- secretRef:
name: bullish-secret
...