33 lines
619 B
YAML
33 lines
619 B
YAML
---
|
|
|
|
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
|
|
|
|
...
|