2023-10-19 14:30:59 +00:00
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: hedgedoc
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: hedgedoc
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: hedgedoc
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: hedgedoc
|
|
|
|
image: hedgedoc
|
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: hedgedoc-base-config
|
|
|
|
- secretRef:
|
|
|
|
name: hedgedoc-secret-config
|
|
|
|
ports:
|
|
|
|
- containerPort: 3000
|
|
|
|
protocol: TCP
|
|
|
|
name: web
|
2023-11-08 20:28:51 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: upload-tmp
|
|
|
|
mountPath: /tmp
|
2023-10-19 14:30:59 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: "168Mi"
|
|
|
|
cpu: "50m"
|
|
|
|
limits:
|
|
|
|
memory: "256Mi"
|
|
|
|
cpu: "500m"
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
capabilities:
|
|
|
|
drop:
|
|
|
|
- ALL
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 1000
|
|
|
|
runAsGroup: 1000
|
2023-11-08 20:28:51 +00:00
|
|
|
runAsNonRoot: true
|
|
|
|
volumes:
|
|
|
|
- name: upload-tmp
|
|
|
|
emptyDir:
|
|
|
|
sizeLimit: 500Mi
|