homek8s/apps/base/piedmont/deployment-api.yaml
Sirius DevOps 0e738be671 contact APIs: pin the images carrying the F13 bounded _hits fix
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.
2026-11-27 00:57:17 -05:00

56 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: piedmont-contact
namespace: piedmont
spec:
replicas: 1
selector:
matchLabels:
app: piedmont-contact
template:
metadata:
labels:
app: piedmont-contact
spec:
imagePullSecrets:
- name: forgejo-pull
tolerations:
- key: dedicated
operator: Exists
effect: PreferNoSchedule
nodeSelector:
kubernetes.io/hostname: siriussec
containers:
- name: contact-api
# Built and pushed by sirius/websites/.forgejo/workflows/deploy-phs-contact.yml
# as :$sha (see docs/site-image-pinning.md).
image: forgejo.siriusdevops.com/sirius/phs-contact:0446be8fbc443f59b72eabc54652972d9edd51cd
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: piedmont-contact
key: TG_TOKEN
- name: TG_CHAT
valueFrom:
secretKeyRef:
name: piedmont-contact
key: TG_CHAT
readinessProbe:
httpGet:
path: /health
port: 8090
initialDelaySeconds: 5
periodSeconds: 10
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
memory: 256Mi