Remove xpost from k8s

This commit is contained in:
Mark Smith 2020-04-27 11:16:02 -07:00
parent 84cfef03ac
commit a8e7b56322
2 changed files with 5 additions and 40 deletions

View File

@ -1,39 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: worker-xpost
spec:
replicas: 1
selector:
matchLabels:
app: worker-xpost
template:
metadata:
labels:
app: worker-xpost
type: worker
annotations:
ad.datadoghq.com/worker-xpost.logs: '[{"source":"worker","service":"xpost"}]'
spec:
containers:
- image: 194396987458.dkr.ecr.us-east-1.amazonaws.com/dreamwidth/worker:latest
name: worker-xpost
command: ["bash"]
args: ["/opt/startup-prod.sh", "bin/worker/xpost", "-v"]
resources:
requests:
cpu: 50m
memory: 300M
volumeMounts:
- name: config
mountPath: /dw/etc
readOnly: true
env:
- name: DOGSTATSD_HOST_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
volumes:
- name: config
secret:
secretName: dw-config

View File

@ -40,11 +40,15 @@ my %workers = (
'sphinx-copier' => [ 3, 5, '300M', '50m', undef ],
'sphinx-search-gm' => [ 1, 1, '300M', '50m', undef ],
'synsuck' => [ 10, 15, '300M', '100m', undef ],
'xpost' => [ 1, 1, '300M', '50m', undef ],
# Misc site utilities
'codebuild-notifier' => [ 1, 1, '300M', '50m', undef ],
'metrics-emitter' => [ 1, 1, '300M', '50m', undef ],
# DO NOT run these in k8s... until we have some way of having a dedicated IP,
# we keep getting banned by LJ.
# 'xpost' => [ 1, 1, '300M', '50m', undef ],
# importers...
);
foreach my $worker (keys %workers) {