Files
geo-service/k8s/deploy.yaml
T
argoyle b98ec2b96a
geo-service / build (push) Successful in 15s
geo-service / deploy-prod-frostmoln (push) Successful in 20s
feat: deploy to Frostmoln production (#417)
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).
- Listens on 8080 (`PORT`) as uid 65534. MAPS_API_KEY comes from the namespace's SecretStore (Frostmoln Secret `dancefinder`).

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: https://gitea.unbound.se/dancefinder/geo-service/pulls/417
2026-10-16 08:32:28 +00:00

80 lines
1.9 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: geo-service
name: geo-service
annotations:
kubernetes.io/change-cause: "${TIMESTAMP} Deployed commit id: ${COMMIT}"
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: geo-service
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app.kubernetes.io/name: geo-service
spec:
imagePullSecrets:
- name: oci-registry
securityContext:
runAsNonRoot: true
runAsUser: 65534
seccompProfile:
type: RuntimeDefault
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: "app.kubernetes.io/name"
operator: In
values:
- geo-service
topologyKey: kubernetes.io/hostname
containers:
- name: geo-service
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
resources:
limits:
memory: "100Mi"
requests:
memory: "100Mi"
imagePullPolicy: Always
image: ${IMAGE}
ports:
- containerPort: 8080
name: http
env:
- name: PORT
value: "8080"
envFrom:
- secretRef:
name: geo-service
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: geo-service
spec:
ports:
- port: 80
name: http
protocol: TCP
targetPort: 8080
selector:
app.kubernetes.io/name: geo-service
type: ClusterIP