Files
dancefinder-app/k8s/deploy.yaml
T
argoyle 2abfd08018
dancefinder-app / build (push) Successful in 1m4s
dancefinder-app / deploy-prod-frostmoln (push) Successful in 1m18s
feat: deploy to Frostmoln production (#3100)
Part of the dancefinder.unbound.se cutover to Frostmoln Production (infra: unboundsoftware/infra#1896, already applied).

- Replaces the AWS `deploy-prod` job (failing since CI left AWS) with `deploy-prod-frostmoln` (`deploy prod-frostmoln -n dancefinder`), as schemas did.
- Restricted securityContext (runAsNonRoot, drop ALL, seccomp RuntimeDefault) and `imagePullSecrets: oci-registry` (Platform registry).
- Switches to `nginxinc/nginx-unprivileged` (same pin as schemas-app), listening on 8080 as uid 101; the Service keeps port 80. Traefik Ingress for `/`, PDB, HPA moved to `-prod-frostmoln`; ALB Ingress dropped; Service ClusterIP.

Merging deploys to Frostmoln only; DNS still points at AWS until the cutover.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01H6eVuR4Yt3m7TbDTDwyZJi
Reviewed-on: #3100
2026-10-16 08:32:02 +00:00

83 lines
1.9 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: dancefinder-app
labels:
app.kubernetes.io/name: dancefinder-app
annotations:
kubernetes.io/change-cause: "${TIMESTAMP} Deployed commit id: ${COMMIT}"
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
minReadySeconds: 30
selector:
matchLabels:
app.kubernetes.io/name: dancefinder-app
template:
metadata:
labels:
app.kubernetes.io/name: dancefinder-app
spec:
imagePullSecrets:
- name: oci-registry
securityContext:
runAsNonRoot: true
runAsUser: 101
seccompProfile:
type: RuntimeDefault
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: "app.kubernetes.io/name"
operator: In
values:
- dancefinder-app
topologyKey: kubernetes.io/hostname
containers:
- name: dancefinder-app
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
readinessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 5
imagePullPolicy: Always
image: ${IMAGE}
ports:
- containerPort: 8080
resources:
requests:
cpu: 10m
memory: 10Mi
limits:
memory: 300Mi
---
apiVersion: v1
kind: Service
metadata:
name: dancefinder-app
labels:
app.kubernetes.io/name: dancefinder-app
spec:
selector:
app.kubernetes.io/name: dancefinder-app
ports:
- port: 80
targetPort: 8080