Files
k3s-homelab/apps/playmat/web-deployment.yaml
T
2026-11-19 19:13:29 -07:00

61 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: web
namespace: playmat
spec:
replicas: 1
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
enableServiceLinks: false
securityContext:
seccompProfile:
type: RuntimeDefault
containers:
- name: web
image: ghcr.io/arcanite24/playmat-web:master
imagePullPolicy: Always
ports:
- name: http
containerPort: 80
env:
- name: DOMAIN
value: playmat.aleshym.co
- name: TLS_MODE
value: external
- name: UPSTREAM_PROXIES
value: 10.42.0.0/16
- name: XMAGE_GATEWAY
value: off
- name: XMAGE_ALLOWED_ORIGINS
value: https://playmat.aleshym.co
- name: XMAGE_PUBLIC_URL
value: https://playmat.aleshym.co
- name: CADDY_IP
value: 127.0.0.1
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
periodSeconds: 30
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 256Mi