bullish/k8s/app/rqworker.yaml

34 lines
619 B
YAML
Raw Normal View History

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