www/manifest/deployment.yaml
Xe Iaso 7c6effc66e
Some checks failed
Gitea Actions CI / Build and deploy (push) Failing after 57s
Tests / Build and deploy (push) Failing after 16s
updates
Signed-off-by: Xe Iaso <me@xeiaso.net>
2025-01-12 12:32:08 -05:00

53 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: techaro-lol
annotations:
operator.1password.io/auto-restart: "true"
spec:
replicas: 1
template:
spec:
securityContext:
fsGroup: 1000
volumes:
- name: temp
persistentVolumeClaim:
claimName: techaro-lol-temp
containers:
- name: main
image: reg.xeiaso.net/techaro/www:latest
imagePullPolicy: "Always"
resources:
limits:
cpu: "2"
memory: "1Gi"
requests:
cpu: "500m"
memory: "512Mi"
envFrom:
- secretRef:
name: techaro-lol
volumeMounts:
- name: temp
mountPath: /app/.next/cache
subPath: "cache"
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
livenessProbe:
httpGet:
path: /healthz
port: 3000
httpHeaders:
- name: user-agent
value: "healthz"
initialDelaySeconds: 3
periodSeconds: 3