Files
argocd-test/privatebin/base/privatebin-deployment.yaml
2025-07-25 12:22:01 +02:00

70 lines
1.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: privatebin
labels:
app: privatebin
spec:
replicas: 1
selector:
matchLabels:
app: privatebin
template:
metadata:
labels:
app: privatebin
spec:
securityContext:
runAsUser: 65534
runAsGroup: 82
fsGroup: 82
containers:
- name: privatebin
image: 'privatebin/nginx-fpm-alpine:stable'
ports:
- name: web
containerPort: 8080
env:
- name: TZ
value: Europe/Amsterdam
- name: PHP_TZ
value: Europe/Amsterdam
securityContext:
readOnlyRootFilesystem: true
privileged: false
allowPrivilegeEscalation: false
livenessProbe:
httpGet:
path: /
port: 8080
readinessProbe:
httpGet:
path: /
port: 8080
volumeMounts:
- mountPath: /srv/data
name: privatebin-data
readOnly: false
- mountPath: /run
name: run
readOnly: false
- mountPath: /tmp
name: tmp
readOnly: false
- mountPath: /var/lib/nginx/tmp
name: nginx-cache
readOnly: false
volumes:
- name: privatebin-data
persistentVolumeClaim:
claimName: privatebin-data-pvc
- name: run
emptyDir:
medium: Memory
- name: tmp
emptyDir:
medium: Memory
- name: nginx-cache
emptyDir:
medium: Memory