This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
homelab/kubernetes/apps/production/flyimg/deployment.yaml
Liam f7aac46e00
All checks were successful
Check Kubernetes YAMLs / scan (push) Successful in 21s
app(flyimg): prefer avif over webp
2024-09-23 21:10:26 +01:00

38 lines
840 B
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: flyimg
namespace: public-services
spec:
replicas: 1
selector:
matchLabels:
app: flyimg
template:
metadata:
labels:
app: flyimg
spec:
containers:
- name: flyimg-container
image: flyimg/flyimg:1.4.12
securityContext:
allowPrivilegeEscalation: false
ports:
- containerPort: 80
resources:
requests:
cpu: 50m
memory: 100Mi
limits:
cpu: 1000m # 1 vCPU
memory: 200Mi
volumeMounts:
- name: flyimg-storage
mountPath: /var/www/html/web/uploads
volumes:
- name: flyimg-storage
persistentVolumeClaim:
claimName: flyimg-pvc