homek8s/apps/base/piedmont/deployment-api.yaml
Lance Walters 5c6c8b71c0 apps: re-pin the contact APIs to their new :sha tags
Both contact APIs now have amd64 build+push pipelines:
sirius-growth/.forgejo/workflows/deploy-contact.yml (contact-api/)
and sirius/websites/.forgejo/workflows/deploy-phs-contact.yml
(phs-contact-api/). Each printed the tag for its first run, so the
@sha256: pins (which existed only because there was no build path)
become ordinary :<sha> tags an operator can bump.

docs/site-image-pinning.md: drop the 'no CI build path' section and
record the two workflows in the pins table.
2026-11-02 18:09:48 -05:00

54 lines
1.5 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:
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:5035443abb62913362e416ab7030a64726886886
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