Update UAT deployment with RQ worker and latest code

Specify a different RQ_QUEUE so that the worker does not attempt to run
jobs for the staging environment (since they share the same redis
connection).
This commit is contained in:
Patrick Smith 2018-10-31 16:08:54 -04:00
parent 4bbb55a06e
commit 67b14921d6
2 changed files with 47 additions and 1 deletions

View File

@ -8,3 +8,4 @@ data:
FLASK_ENV: dev
OVERRIDE_CONFIG_FULLPATH: /opt/atat/atst/atst-overrides.ini
UWSGI_CONFIG_FULLPATH: /opt/atat/atst/uwsgi-config.ini
RQ_QUEUES: atat-uat

View File

@ -24,7 +24,7 @@ spec:
fsGroup: 101
containers:
- name: atst
image: registry.atat.codes:443/atst-prod:76854ac
image: registry.atat.codes:443/atst-prod:3a01b36d
resources:
requests:
memory: "2500Mi"
@ -125,6 +125,51 @@ spec:
emptyDir:
medium: Memory
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: atst
name: atst-worker
namespace: atat-uat
spec:
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: atst
spec:
securityContext:
fsGroup: 101
containers:
- name: atst-worker
image: registry.atat.codes:443/atst-prod:3a01b36d
args: ["/bin/bash", "-c", "/opt/atat/atst/script/rq_worker"]
resources:
requests:
memory: "500Mi"
envFrom:
- configMapRef:
name: atst-envvars
- configMapRef:
name: atst-worker-envvars
volumeMounts:
- name: atst-config
mountPath: "/opt/atat/atst/atst-overrides.ini"
subPath: atst-overrides.ini
imagePullSecrets:
- name: regcred
volumes:
- name: atst-config
secret:
secretName: atst-config-ini
items:
- key: override.ini
path: atst-overrides.ini
mode: 0644
---
apiVersion: v1
kind: Service
metadata: