All three contact APIs were still running the pre-F13 tree: unbounded per-IP _hits deque and an unvalidated X-Real-IP limit key. - siriusdevops-contact:467b087 (CI run 64 at the F13 merge 467b087) - sirius-growth-contact:97cfa4f (main head = F13 merge 3042edc + the deploy-contact buildx fix f3a9cae; run 126 job 2074) - phs-contact:0446be8 (main head = F13 merge bd64105 + buildx fix 0d6d5e3 + the phs Telegram HTML fix 64f1b5b; run 126 job 2075) The two latter merge shas had no image: their build failed on 'could not obtain buildx' until the workflow fix, so the pinned tags are the current heads, which contain the F13 tree.
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: siriusdevops-contact
|
|
namespace: siriusdevops
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: siriusdevops-contact
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: siriusdevops-contact
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: forgejo-pull
|
|
tolerations:
|
|
- key: dedicated
|
|
operator: Exists
|
|
effect: PreferNoSchedule
|
|
nodeSelector:
|
|
kubernetes.io/hostname: siriussec
|
|
containers:
|
|
- name: contact-api
|
|
image: forgejo.siriusdevops.com/sirius/siriusdevops-contact:467b0875c24af2c69962fc246fd31044d3f666be
|
|
imagePullPolicy: IfNotPresent
|
|
command: ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8090"]
|
|
ports:
|
|
- containerPort: 8090
|
|
name: http
|
|
env:
|
|
- name: TG_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: siriusdevops-contact
|
|
key: TG_TOKEN
|
|
- name: TG_CHAT
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: siriusdevops-contact
|
|
key: TG_CHAT
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8090
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 128Mi
|
|
limits:
|
|
memory: 256Mi
|