41 lines
1,004 B
YAML
41 lines
1,004 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: privatebin
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: privatebin
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: privatebin
|
|
spec:
|
|
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
|
# PAPERLESS_PORT as their own setting and crash.
|
|
enableServiceLinks: false
|
|
securityContext:
|
|
# The image runs as nobody:www-data (65534:82).
|
|
fsGroup: 82
|
|
containers:
|
|
- name: privatebin
|
|
image: privatebin/nginx-fpm-alpine:2.0.6
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /srv/data
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 32Mi
|
|
limits:
|
|
memory: 128Mi
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: privatebin-data
|